/* Nomad — concierge quote form (CF7) + flatpickr calendar, styled to brand.
   The CF7 form is wrapped in .nm-quote inside the dark .nm-quote-card.
   One card is shared by the home hero and the /quote/ page (identical). */

.nm-quote-card {
	background: #1D1D1B;
	color: #E6DCCB;
	padding: 36px;
	max-width: 460px;
	width: 100%;
	position: relative;
	font-family: inherit;
}
.nm-quote-head { text-align: center; margin-bottom: 22px; }
.nm-quote-eyebrow {
	font-size: 10px; color: rgba(230,220,203,0.55);
	letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 12px;
}
.nm-quote-title {
	font-size: 30px; font-weight: 500; letter-spacing: -0.02em;
	line-height: 1.1; color: #fff; font-style: italic;
}
.nm-quote-sub { font-size: 12px; color: rgba(230,220,203,0.65); margin-top: 8px; line-height: 1.5; }

/* progress dots */
.nm-quote-dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.nm-quote-dot { width: 8px; height: 8px; display: inline-block; background: rgba(230,220,203,0.22); transition: background .2s ease; }
.nm-quote-dot.is-active, .nm-quote-dot.is-current { background: #E6DCCB; }

/* steps */
.nm-quote .wpcf7-form { margin: 0; }
.nm-step { display: flex; flex-direction: column; gap: 10px; }
.nm-step[hidden] { display: none !important; }
.nm-step-nav { display: flex; gap: 10px; margin-top: 22px; align-items: stretch; }

/* field boxes (the <label class="nm-fld"> holds a small caption + the CF7 control) */
.nm-fld {
	display: block; padding: 12px 16px; background: #26241F;
	border: 1px solid rgba(230,220,203,0.22); position: relative;
}
/* the date field is a touch taller in the design + carries a › chevron */
.nm-fld-date { padding-top: 14px; padding-bottom: 14px; }
.nm-fld-date::after {
	content: '\203A'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
	color: rgba(230,220,203,0.65); font-size: 14px; pointer-events: none;
}
.nm-fld-l {
	display: block; font-family: 'Montserrat', sans-serif; font-size: 9px;
	color: rgba(230,220,203,0.65); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 3px;
}
.nm-quote .wpcf7-form-control-wrap { display: block; }
.nm-quote input.wpcf7-form-control,
.nm-quote select.wpcf7-form-control {
	width: 100%; border: none; background: transparent; outline: none;
	font-family: inherit; font-size: 14px; padding: 0; color: #fff; line-height: 1.3;
}
.nm-quote input::placeholder { color: rgba(230,220,203,0.4); }
.nm-quote input[type="date"].nm-date { color-scheme: dark; }
/* flatpickr's visible alt-input must inherit the dark field styling */
.nm-quote input.nm-altdate,
.nm-quote input.nm-altdate.active,
.nm-quote input.flatpickr-input,
.nm-quote input.flatpickr-input.active {
	width: 100%; background: transparent !important; color: #fff !important;
	border: none !important; outline: none !important; box-shadow: none !important;
	font-family: inherit; font-size: 14px; padding: 0; height: auto; cursor: pointer;
}
.nm-quote input.nm-altdate::placeholder,
.nm-quote input.flatpickr-input::placeholder { color: rgba(230,220,203,0.45); }
.nm-quote select.wpcf7-form-control { appearance: none; -webkit-appearance: none; cursor: pointer; }
.nm-quote select.wpcf7-form-control option { background: #26241F; color: #fff; }
.nm-fld.nm-sel::after {
	content: '▾'; position: absolute; right: 16px; bottom: 13px;
	color: rgba(230,220,203,0.65); font-size: 12px; pointer-events: none;
}

/* premium-effects.js tags every control .nm-input (focus glow → white bg).
   In the dark concierge card that would hide white text, so neutralise it. */
.nm-quote .nm-input,
.nm-quote .nm-input:focus,
.nm-quote input.nm-input,
.nm-quote select.nm-input,
.nm-quote textarea.nm-input,
.nm-quote input.nm-altdate:focus {
	background: transparent !important;
	color: #fff !important;
	box-shadow: none !important;
}
/* subtle focus indicator on the field box instead */
.nm-quote .nm-fld:focus-within { border-color: rgba(230,220,203,0.55); }

/* buttons — cream primary, matching the design's concierge card */
.nm-btn {
	flex: 1 1 0%; padding: 14px 22px; background: #E6DCCB; color: #1D1D1B; border: none;
	cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700;
	letter-spacing: 0.2em; text-transform: uppercase; transition: opacity .2s ease, background .2s ease;
}
.nm-btn:hover { background: #f3ecdd; }
/* disabled / step-not-yet-valid → dimmed like the design */
.nm-btn:disabled, .nm-btn[disabled], .nm-btn.is-disabled { opacity: 0.4; cursor: not-allowed; }
.nm-btn:disabled:hover, .nm-btn[disabled]:hover, .nm-btn.is-disabled:hover { background: #E6DCCB; }
.nm-btn-ghost {
	padding: 14px 18px; background: transparent; color: #E6DCCB; border: 1px solid rgba(230,220,203,0.3);
	cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700;
	letter-spacing: 0.2em; text-transform: uppercase; transition: border-color .2s ease;
}
.nm-btn-ghost:hover { border-color: rgba(230,220,203,0.6); }

/* or-call footer */
.nm-quote-call {
	display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
	padding: 14px 0; margin-top: 16px; border-top: 1px solid rgba(230,220,203,0.18);
	border-bottom: 1px solid rgba(230,220,203,0.18); font-size: 11px; font-weight: 600;
	letter-spacing: 0.18em; text-transform: uppercase;
}
.nm-quote-call span:first-child { color: rgba(230,220,203,0.6); }
.nm-quote-call span:last-child { color: #fff; }

/* validation + response (CF7) */
.nm-fld.nm-field-error, .nm-quote .nm-fld:has(.wpcf7-not-valid) { border-color: #c2566a; }
.nm-quote .wpcf7-not-valid-tip { color: #e89aa6; font-size: 11px; margin-top: 5px; display: block; }
.nm-quote .wpcf7-response-output {
	margin: 16px 0 0 !important; padding: 10px 14px; font-size: 12px; line-height: 1.5;
	border: 1px solid rgba(230,220,203,0.3) !important; color: #E6DCCB;
}
/* Let CF7 control the spinner's visibility (hidden until submitting); just recolour it. */
.nm-quote .wpcf7-spinner { background-color: rgba(230,220,203,0.5); margin: 0 auto; }
.nm-quote-card .nm-field-err { color: #e89aa6; }

/* ── Contact form (CF7, light card) ─────────────────────────────────────── */
.nm-contact .wpcf7-form-control-wrap { display: block; }
.nm-contact-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.nm-contact-row { margin-bottom: 12px; }
.nm-contact .wf-label { display: block; margin-bottom: 6px; }
.nm-contact .wf-input, .nm-contact .wf-select { width: 100%; }
.nm-contact .wpcf7-submit.wf-btn { width: 100%; margin-top: 4px; }
.nm-contact .wpcf7-not-valid-tip { color: #a3242f; font-size: 11px; margin-top: 5px; display: block; }
.nm-contact .wf-input.wpcf7-not-valid, .nm-contact .wf-select.wpcf7-not-valid { border-color: #a3242f; }
.nm-contact .wpcf7-response-output {
	margin: 16px 0 0 !important; padding: 10px 14px; font-size: 13px; line-height: 1.5;
	border: 1px solid var(--line) !important; background: var(--surface-2); color: var(--ink);
}
@media (max-width: 600px) { .nm-contact-grid2 { grid-template-columns: 1fr; } }

/* flatpickr — brand theme (cream/graphite/maroon) */
.flatpickr-calendar { background: #1D1D1B; border: 1px solid rgba(230,220,203,0.22); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after { border-bottom-color: #1D1D1B; }
.flatpickr-calendar.arrowBottom:before, .flatpickr-calendar.arrowBottom:after { border-top-color: #1D1D1B; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month input.cur-year, .flatpickr-monthDropdown-months { color: #F4EEE1; fill: #F4EEE1; }
.flatpickr-months .flatpickr-prev-month svg, .flatpickr-months .flatpickr-next-month svg { fill: #F4EEE1; }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: #fff; }
.flatpickr-calendar span.flatpickr-weekday { color: rgba(244,238,225,0.7) !important; font-weight: 600; }
/* Selectable days: near-white so the month reads clearly on the dark card. */
.flatpickr-day { color: #F4EEE1 !important; border-radius: 0; font-weight: 500; }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: rgba(244,238,225,0.55) !important; }
/* Hover / focus on any selectable day → maroon fill, white text.
   !important + prev/next-month selectors beat flatpickr's white defaults. */
.flatpickr-day:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day.today:hover {
	background: #6A1C28 !important;
	border-color: #6A1C28 !important;
	color: #fff !important;
}
.flatpickr-day.today { border-color: #6A1C28; color: #fff; }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus {
	background: #6A1C28 !important; border-color: #6A1C28 !important; color: #fff !important;
}
/* Disabled (past) days: muted, no maroon fill on hover. */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
	color: rgba(244,238,225,0.45) !important;
	background: transparent !important;
	border-color: transparent !important;
	cursor: default;
}
.flatpickr-monthDropdown-months .flatpickr-monthDropdown-month { background: #1D1D1B; }

/* ── Light (cream) variant ───────────────────────────────────────────────────
   Same CF7 form + stepper as the dark card, recoloured for the "Begin the
   conversation" CTA band (cream card, dark text, maroon button). */
.nm-quote-card--light { background: #E6DCCB; color: #1D1D1B; border: 1px solid #C8BCA4; }
.nm-quote-card--light .nm-quote-eyebrow { color: #6A1C28; }
.nm-quote-card--light .nm-quote-title { color: #1D1D1B; }
.nm-quote-card--light .nm-quote-sub { color: #807D78; }
.nm-quote-card--light .nm-quote-dot { background: #C8BCA4; }
.nm-quote-card--light .nm-quote-dot.is-active,
.nm-quote-card--light .nm-quote-dot.is-current { background: #6A1C28; }

/* field boxes */
.nm-quote-card--light .nm-fld { background: #F0E9DC; border-color: #C8BCA4; }
.nm-quote-card--light .nm-fld-l { color: #807D78; }
.nm-quote-card--light .nm-fld-date::after,
.nm-quote-card--light .nm-fld.nm-sel::after { color: #807D78; }
.nm-quote-card--light .nm-quote input.wpcf7-form-control,
.nm-quote-card--light .nm-quote select.wpcf7-form-control { color: #1D1D1B; }
.nm-quote-card--light .nm-quote input::placeholder { color: #B8B3AB; }
.nm-quote-card--light .nm-quote select.wpcf7-form-control option { background: #F0E9DC; color: #1D1D1B; }
.nm-quote-card--light .nm-fld:focus-within { border-color: rgba(106,28,40,0.55); }

/* flatpickr alt-input + premium-effects .nm-input neutraliser → dark text on cream */
.nm-quote-card--light .nm-quote .nm-input,
.nm-quote-card--light .nm-quote .nm-input:focus,
.nm-quote-card--light .nm-quote input.nm-input,
.nm-quote-card--light .nm-quote select.nm-input,
.nm-quote-card--light .nm-quote textarea.nm-input,
.nm-quote-card--light .nm-quote input.nm-altdate,
.nm-quote-card--light .nm-quote input.nm-altdate.active,
.nm-quote-card--light .nm-quote input.nm-altdate:focus,
.nm-quote-card--light .nm-quote input.flatpickr-input,
.nm-quote-card--light .nm-quote input.flatpickr-input.active { color: #1D1D1B !important; }
.nm-quote-card--light .nm-quote input.nm-altdate::placeholder,
.nm-quote-card--light .nm-quote input.flatpickr-input::placeholder { color: #B8B3AB; }

/* buttons: maroon primary, dark ghost */
.nm-quote-card--light .nm-btn { background: #6A1C28; color: #fff; }
.nm-quote-card--light .nm-btn:hover { background: #571521; }
.nm-quote-card--light .nm-btn:disabled,
.nm-quote-card--light .nm-btn[disabled],
.nm-quote-card--light .nm-btn.is-disabled { background: #6A1C28; opacity: 0.4; }
.nm-quote-card--light .nm-btn:disabled:hover,
.nm-quote-card--light .nm-btn[disabled]:hover,
.nm-quote-card--light .nm-btn.is-disabled:hover { background: #6A1C28; }
.nm-quote-card--light .nm-btn-ghost { color: #1D1D1B; border-color: rgba(29,29,27,0.3); }
.nm-quote-card--light .nm-btn-ghost:hover { border-color: rgba(29,29,27,0.6); }

/* or-call footer */
.nm-quote-card--light .nm-quote-call { border-color: #C8BCA4; }
.nm-quote-card--light .nm-quote-call span:first-child { color: #807D78; }
.nm-quote-card--light .nm-quote-call span:last-child { color: #1D1D1B; }

/* validation on cream */
.nm-quote-card--light .nm-fld.nm-field-error,
.nm-quote-card--light .nm-quote .nm-fld:has(.wpcf7-not-valid) { border-color: #a3242f; }
.nm-quote-card--light .nm-quote .wpcf7-not-valid-tip,
.nm-quote-card--light .nm-quote-card .nm-field-err,
.nm-quote-card--light .nm-quote .wpcf7-response-output { color: #8a1f29; }
.nm-quote-card--light .nm-quote .wpcf7-response-output { border-color: #C8BCA4 !important; }
