/**
 * INTAJ SPORTS — Native Form Styles
 * assets/css/intaj-forms.css
 *
 * Covers: contact, newsletter, RFQ forms.
 * Two surface variants: default (light) and --dark.
 * No !important except where overriding inherited WooCommerce/theme resets.
 */

/* ================================================================
   BASE FORM
   ================================================================ */

.intaj-form {
	position: relative;
}

/* ── Fieldset ────────────────────────────────────────────────── */
.intaj-form-fieldset {
	border: none;
	padding: 0;
	margin: 0 0 28px;
}

.intaj-form-legend {
	display: block;
	width: 100%;
	font-size: 10px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	font-weight: 700;
	color: #b8922a;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(184, 146, 42, .2);
}

/* ── Rows ────────────────────────────────────────────────────── */
.intaj-form-row {
	display: grid;
	gap: 16px;
	margin-bottom: 0;
}

.intaj-form-row--2col {
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
	.intaj-form-row--2col {
		grid-template-columns: 1fr;
	}
}

/* ── Group ───────────────────────────────────────────────────── */
.intaj-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.intaj-form-group:last-child {
	margin-bottom: 0;
}

/* ── Label ───────────────────────────────────────────────────── */
.intaj-form-label {
	font-size: 11px;
	letter-spacing: .5px;
	text-transform: uppercase;
	font-weight: 600;
	color: #555;
	line-height: 1.3;
}

.intaj-form-req {
	color: #e8293a;
}

/* ── Inputs ──────────────────────────────────────────────────── */
.intaj-form-input {
	width: 100%;
	padding: 11px 14px;
	font-size: 14px;
	font-family: inherit;
	color: #1a1a1a;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 0;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.intaj-form-input:focus {
	border-color: #b8922a;
	box-shadow: 0 0 0 3px rgba(184, 146, 42, .12);
}

.intaj-form-input.is-error {
	border-color: #e8293a;
	box-shadow: 0 0 0 3px rgba(232, 41, 58, .10);
}

.intaj-form-input::placeholder {
	color: #aaa;
	font-style: italic;
}

.intaj-form-textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.6;
}

.intaj-form-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	cursor: pointer;
}

/* ── Inline error ────────────────────────────────────────────── */
.intaj-form-error {
	display: none;
	font-size: 12px;
	color: #e8293a;
	line-height: 1.4;
}

.intaj-form-error.is-visible {
	display: block;
}

/* ── Consent row ─────────────────────────────────────────────── */
.intaj-form-group--consent {
	margin-top: 8px;
}

.intaj-form-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #555;
	cursor: pointer;
	line-height: 1.5;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

.intaj-form-checkbox {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	accent-color: #b8922a;
	cursor: pointer;
}

.intaj-form-checkbox-label a {
	color: #b8922a;
	text-decoration: underline;
}

/* ── Spam widget ─────────────────────────────────────────────── */
.intaj-form-spam-wrap {
	margin-bottom: 16px;
}

.intaj-form-spam-wrap:empty {
	display: none;
}

/* ── Footer ──────────────────────────────────────────────────── */
.intaj-form-footer {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 24px;
}

/* ── Submit button ───────────────────────────────────────────── */
.intaj-form-submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 28px;
	font-family: var(--ff-display, inherit);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	background: #e8293a;
	border: none;
	cursor: pointer;
	transition: background .2s, gap .25s;
	white-space: nowrap;
}

.intaj-form-submit:hover:not(:disabled) {
	background: #c0001a;
	gap: 14px;
}

.intaj-form-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

/* Gold variant — newsletter */
.intaj-form-submit--gold {
	background: #b8922a;
	color: #0d0d0d;
}

.intaj-form-submit--gold:hover:not(:disabled) {
	background: #d4aa4a;
}

/* ── Privacy note ────────────────────────────────────────────── */
.intaj-form-privacy {
	font-size: 11px;
	color: #999;
	margin: 0;
	line-height: 1.5;
}

.intaj-form-privacy a {
	color: #b8922a;
	text-decoration: underline;
}

/* ── Form-level message ──────────────────────────────────────── */
.intaj-form-message {
	display: none;
	margin-top: 20px;
	padding: 14px 18px;
	font-size: 14px;
	line-height: 1.5;
	border-left: 3px solid transparent;
}

.intaj-form-message.is-success {
	display: block;
	background: rgba(22, 163, 74, .08);
	border-color: #16a34a;
	color: #15803d;
}

.intaj-form-message.is-error {
	display: block;
	background: rgba(232, 41, 58, .06);
	border-color: #e8293a;
	color: #c0001a;
}

/* ── Loading spinner on submit ───────────────────────────────── */
.intaj-form-submit .intaj-form-spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255,255,255,.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: intaj-spin .6s linear infinite;
}

.intaj-form-submit--gold .intaj-form-spinner {
	border-color: rgba(0,0,0,.2);
	border-top-color: #0d0d0d;
}

.intaj-form-submit.is-loading .intaj-form-submit-label,
.intaj-form-submit.is-loading svg:not(.intaj-form-spinner) {
	display: none;
}

.intaj-form-submit.is-loading .intaj-form-spinner {
	display: block;
}

@keyframes intaj-spin {
	to { transform: rotate(360deg); }
}


/* ================================================================
   DARK VARIANT (.intaj-form--dark)
   Used inside .fp-nl-form-wrap and .ct-nl-form
   ================================================================ */

.intaj-form--dark .intaj-form-label {
	color: rgba(255, 255, 255, .6);
}

.intaj-form--dark .intaj-form-input {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .12);
	color: #fff;
}

.intaj-form--dark .intaj-form-input:focus {
	border-color: rgba(184, 146, 42, .6);
	box-shadow: 0 0 0 3px rgba(184, 146, 42, .12);
}

.intaj-form--dark .intaj-form-input.is-error {
	border-color: rgba(232, 41, 58, .7);
}

.intaj-form--dark .intaj-form-input::placeholder {
	color: rgba(255, 255, 255, .25);
}

.intaj-form--dark .intaj-form-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.intaj-form--dark .intaj-form-error {
	color: #f87171;
}

.intaj-form--dark .intaj-form-privacy {
	color: rgba(255, 255, 255, .35);
}

.intaj-form--dark .intaj-form-privacy a {
	color: #d4aa4a;
}

.intaj-form--dark .intaj-form-message.is-success {
	background: rgba(22, 163, 74, .12);
	color: #86efac;
}

.intaj-form--dark .intaj-form-message.is-error {
	background: rgba(232, 41, 58, .1);
	color: #fca5a5;
}

.intaj-form--dark .intaj-form-checkbox-label {
	color: rgba(255, 255, 255, .55);
}

.intaj-form--dark .intaj-form-checkbox-label a {
	color: #d4aa4a;
}


/* ================================================================
   RFQ PAGE LAYOUT
   ================================================================ */

.rfq-form-wrap {
	max-width: 760px;
	margin: 0 auto;
}

/* Checkbox consent */
.intaj-form-group--check{margin-bottom:16px;}
.intaj-form-check-label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:13px;color:#555;line-height:1.55;}
.intaj-form-check-input{margin-top:3px;flex-shrink:0;accent-color:#b8922a;width:15px;height:15px;cursor:pointer;}
.intaj-form-check-label a{color:#b8922a;text-decoration:none;}
.intaj-form-check-label a:hover{text-decoration:underline;}

/* ── RFQ upload: inline error + file entry with remove button ── */
.rfq-upload-error {
	margin: 8px 0 0;
	padding: 10px 14px;
	font-size: 13px;
	color: #c0001a;
	background: #fff0f2;
	border-left: 3px solid #c0001a;
	line-height: 1.5;
}

.rfq-file-entry {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	padding: 6px 10px;
	background: #f5f5f5;
	border-radius: 4px;
}

.rfq-file-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #333;
}

.rfq-file-size {
	flex-shrink: 0;
	color: #999;
	font-size: 11px;
}

.rfq-file-remove {
	flex-shrink: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	color: #999;
	padding: 0 2px;
	transition: color .15s;
}

.rfq-file-remove:hover {
	color: #c0001a;
}