/* ID Submissions — BASE styles. This is the generic/default look, used as-is
   by any form that hasn't had its own bespoke design pass yet (currently
   Project and Article — see project.css/article.css). Product has its own
   full theme in product.css; Login/Register/Forgot/Reset/My Account have
   theirs in auth.css. Colors/spacing here come from the designer's pass on
   archennews.com; do not fold Product- or Auth-specific rules back in here. */

.idsub-form-wrap,
.idsub-form-wrap h1.idsub-form-title,
.idsub-form-wrap .idsub-form,
.idsub-form-wrap .idsub-form label,
.idsub-form-wrap .idsub-form input,
.idsub-form-wrap .idsub-form select,
.idsub-form-wrap .idsub-form textarea,
.idsub-form-wrap .idsub-form button,
.idsub-form-wrap .idsub-hint,
.idsub-form-wrap .idsub-file-status,
.idsub-form-wrap .idsub-hint-list,
.idsub-form-wrap .idsub-btn,
.idsub-form-wrap .idsub-auth-links,
.idsub-form-wrap .idsub-alert {
	font-family: inherit !important;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) {
	width: 100%;
	max-width: none;
	margin: 8px 0 28px;
	padding: 41px;
	border: 1px solid #e6e6e6;
	background: #ffffff;
	box-sizing: border-box;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap):not(.idsub-project-form):not(.idsub-article-form) h1.idsub-form-title {
	font-weight: 700;
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	text-align: center !important;
	color: #111111;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap):not(.idsub-project-form):not(.idsub-article-form) .idsub-form label{
	display: block;
	font-weight: 400;
	margin: 24px 0 0;
	padding: 0 0 5px;
	color: #777777 !important;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap):not(.idsub-project-form) .idsub-form label.idsub-sub {
	font-weight: 400;
	margin: 12px 0 0;
	padding: 0 0 5px;
	color: #777777 !important;
}

.idsub-form input,
.idsub-form select,
.idsub-form textarea,
.idsub-form button {
	box-sizing: border-box;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form .req {
	color: #d83936;
	font-weight: 400;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form input[type="text"],
.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form input[type="email"],
.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form input[type="tel"],
.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form input[type="url"],
.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form input[type="number"],
.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form input[type="password"],
.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form input[type="date"],
.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form select,
.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 20px;
	border: 1px solid #c4bee1;
	border-radius: 2px;
	line-height: 1.4;
	background: #fff;
	color: #111;
	box-shadow: none;
	font-size: 15px;
}

.idsub-form input::placeholder,
.idsub-form textarea::placeholder {
	color: #b5b5b5;
	opacity: 1;
}

.idsub-form select {
	appearance: auto;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form input[type="date"],
.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form input.idsub-date {
	width: 200px !important;
	max-width: 100%;
}

.idsub-phone-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}

.idsub-phone-wrap .idsub-country-select {
	padding: 10px 28px 10px 12px;
	background: #fff url('data:image/svg+xml;utf8,<svg fill="%23666" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 6px center !important;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: 1px solid #ccc;
	border-radius: 0;
	cursor: pointer;
	font-size: inherit;
	width: auto;
	min-width: 72px;
	height: auto;
}

.idsub-form textarea {
	resize: vertical;
}

.idsub-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.idsub-hint {
	color: #777777;
	margin: 6px 0 0;
	line-height: 1.5;
}

.idsub-limit {
	text-align: right;
	margin-top: 4px;
}

.idsub-hint-list {
	margin: 4px 0 0 18px;
	padding: 0;
	color: #777777;
	line-height: 1.5;
}

.idsub-file-status {
	color: #777777;
	margin: 8px 0 0;
	line-height: 1.5;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap):not(.idsub-project-form):not(.idsub-article-form) .idsub-file-drop {
	border: 1px solid #ccc;
	padding: 12px 20px;
	text-align: left;
	background: #fff !important;
	border-radius: 0;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap):not(.idsub-project-form):not(.idsub-article-form) .idsub-file-drop input[type="file"] {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 4px 0;
	background: transparent !important;
	border: 0;
	color: #333;
	cursor: pointer;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap):not(.idsub-project-form):not(.idsub-article-form) .idsub-file-drop input[type="file"]::file-selector-button,
.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap):not(.idsub-project-form):not(.idsub-article-form) .idsub-file-drop input[type="file"]::-webkit-file-upload-button {
	background: #efefef;
	color: #111;
	border: 1px solid #767676;
	padding: 4px 12px;
	font-weight: 400;
	border-radius: 2px;
	cursor: pointer;
	margin-right: 12px;
}

.idsub-checkbox {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400 !important;
}

.idsub-checkbox input {
	margin-top: 3px;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap) .idsub-form hr {
	border: none;
	border-top: 1px solid #e2e2e2;
	margin: 28px 0;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap):not(.idsub-project-form):not(.idsub-article-form) .idsub-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 28px;
}

.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap):not(.idsub-project-form):not(.idsub-article-form) .idsub-btn {
	display: block;
	width: 100% !important;
	box-sizing: border-box;
	padding: 14px 20px;
	font-weight: 400;
	border-radius: 0;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	line-height: 1.2;
}

.idsub-btn-solid {
	background: #111111 !important;
	color: #ffffff !important;
	border: 0 !important;
}

.idsub-btn-solid:hover {
	background: #333333 !important;
	color: #ffffff !important;
}

.idsub-btn-outline {
	background: #ffffff !important;
	color: #333333 !important;
	border: 1px solid #ccc !important;
}

.idsub-btn-outline:hover {
	background: #f7f7f7 !important;
	color: #111111 !important;
}

.idsub-alert {
	padding: 12px 16px;
	margin-bottom: 20px;
	border-radius: 2px;
	font-size: 14px;
}


.idsub-alert-error {
	background: #fdecea;
	border: 1px solid #f5c6cb;
	color: #c0392b;
}

.idsub-alert-success {
	background: #e9f7ef;
	border: 1px solid #b7e4c7;
	color: #2e7d32;
}

.idsub-login-gate {
	max-width: 520px;
	width: calc(100% - 40px);
	margin: 40px auto;
	text-align: center;
	box-sizing: border-box;
}

.idsub-login-gate > p {
	color: #777777;
	line-height: 1.55;
	margin: 0 0 16px;
}

/* Badge is shared across Dashboard AND My Account (verification status),
   so it lives here rather than in dashboard.css. */
.idsub-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 3px;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	margin-left: 5px;
}

@media (max-width: 600px) {
	.idsub-row {
		grid-template-columns: 1fr;
	}
	.idsub-form-wrap:not(.idsub-product-form):not(.idsub-auth-wrap),
	.idsub-dashboard {
		padding: 20px;
	}
}
/* ---- Read-only submission view ---- */
.idsub-ro-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.idsub-ro-fieldset[disabled] input,
.idsub-ro-fieldset[disabled] select,
.idsub-ro-fieldset[disabled] textarea { opacity: 1 !important; cursor: default; color: inherit; }
.idsub-ro-fieldset[disabled] .idsub-file-drop { display: none; }
.idsub-readonly-banner { background: #f5f5f5; border: 1px solid #ddd; margin-bottom: 20px; }
.idsub-readonly-files { margin-top: 24px; }
.idsub-readonly-files ul { margin: 6px 0 6px 18px; }

/* ---- Green notice (e.g. "file already uploaded") ---- */
.idsub-notice { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; padding: 10px 14px; border-radius: 3px; border: 1px solid; }
.idsub-notice p { margin: 0; font-size: 14px; line-height: 1.5; }
.idsub-notice-icon { flex: 0 0 auto; display: inline-flex; margin-top: 2px; }
.idsub-notice-success { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }
.idsub-notice-success p { color: #1b5e20; }

/* ---- Submit / Save Draft: loader while the request is in flight ---- */
@keyframes idsub-spin { to { transform: rotate( 360deg ); } }
.idsub-btn.idsub-btn-loading::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: idsub-spin 0.7s linear infinite; }
