/* ============================================================
   ENQUIRE.CSS — synappro workshop enquiry form
   Load order: reset.css → styles.css → header.css → footer.css → enquire.css

   TYPE SCALE (4 sizes — strictly enforced):
     Heading  var(--text-2xl)  = 32px   Step questions
     Body     var(--text-base) = 16px   Option labels, field labels, descriptions, button text, nav notes
     Label    var(--text-sm)   = 14px   Step counter ONLY (purely decorative meta)

   COLOUR CONTRAST (WCAG AA — 4.5:1 minimum):
     #39393A on #ffffff                = 11.4:1 ✓
     #666667 on #ffffff                =  5.0:1 ✓
     #ffffff on #39393A                = 11.4:1 ✓
     rgba(255,255,255,0.7) on #39393A  ~  8.5:1 ✓
     #39393A on #FFC247 (yellow)       =  7.3:1 ✓
   ============================================================ */


/* ── PROGRESS BAR ── */

.eq-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--color-accent);
    transition: width 0.4s ease;
    z-index: 1000;
}


/* ── BREADCRUMB ── */

.eq-breadcrumb {
    max-width: var(--wrap-max);
    margin-inline: auto;
    padding-top: var(--space-md);
    margin-bottom: var(--space-xs);
}


/* ── OUTER CARD ── */

.eq-card {
    max-width: var(--wrap-max);
    margin-inline: auto;
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
}


/* ── HEADER BAR (step counter only — back button is at the bottom) ── */

.eq-header {
    display: flex;
    align-items: center;
    padding: var(--space-lg) var(--space-2xl);
    border-bottom: 1px solid rgba(57, 57, 58, 0.08);
}

.eq-step-counter {
    font-family: var(--font-heading);
    font-size: var(--text-sm);          /* Label — the only 14px element on this page */
    color: #666667;
    letter-spacing: 0.05em;
}


/* ── STEP BODY (full width of card, no centring constraint) ── */

.eq-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-2xl);
}

.eq-step {
    display: none;
    flex-direction: column;
    flex: 1;
}

.eq-step.active {
    display: flex;
}

.eq-question {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);         /* Heading */
    color: var(--color-text);
    line-height: 1.25;
    margin: 0 0 var(--space-sm) 0;
    max-width: 680px;
}

.eq-hint {
    font-size: var(--text-base);        /* Body */
    color: #666667;
    margin: 0 0 var(--space-xl) 0;
    line-height: 1.5;
}


/* ── OPTIONS GRID (side by side) ── */

.eq-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.eq-option {
    border: 1.5px solid rgba(57, 57, 58, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background: none;
    text-align: left;
    font-family: inherit;
}

.eq-option:hover {
    border-color: var(--color-text);
    background: rgba(57, 57, 58, 0.03);
}

.eq-option.selected {
    border-color: var(--color-text);
    background: var(--color-text);
}

.eq-option-label {
    font-family: var(--font-heading);
    font-size: var(--text-base);        /* Body */
    color: var(--color-text);
    transition: color 0.2s;
}

.eq-option.selected .eq-option-label { color: #ffffff; }

.eq-option-desc {
    font-size: var(--text-base);        /* Body */
    color: #666667;
    line-height: 1.5;
    transition: color 0.2s;
}

.eq-option.selected .eq-option-desc { color: rgba(255, 255, 255, 0.7); }


/* ── TEXT INPUTS ── */

.eq-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Single-column override for steps with only one field */
.eq-inputs--single {
    grid-template-columns: 1fr;
}

/* Field that should span all grid columns */
.eq-field--full {
    grid-column: 1 / -1;
}

.eq-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.eq-field label {
    font-family: var(--font-heading);
    font-size: var(--text-base);        /* Body */
    color: var(--color-text);
}

.req {
    color: #c0392b;
    margin-left: 2px;
}

.eq-field input,
.eq-field textarea {
    font-size: var(--text-base);        /* Body */
    color: var(--color-text);
    border: 1.5px solid rgba(57, 57, 58, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    background: none;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.eq-field input:focus,
.eq-field textarea:focus {
    border-color: var(--color-text);
}

.eq-field input::placeholder,
.eq-field textarea::placeholder {
    color: rgba(57, 57, 58, 0.35);
}

.eq-field textarea {
    resize: vertical;
    min-height: 100px;
}


/* ── NAVIGATION (always at bottom of step) ── */

.eq-nav {
    margin-top: auto;
    padding-top: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* .eq-continue-btn and .eq-back-btn button styles are in styles.css */

.eq-nav-note {
    font-size: var(--text-base);        /* Body */
    color: #666667;
}


/* ── SUMMARY STEP (step 8) ── */

.eq-summary {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.eq-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(57, 57, 58, 0.08);
}

.eq-summary-row:last-child {
    border-bottom: none;
}

.eq-summary-key {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: #666667;
    white-space: nowrap;
}

.eq-summary-val {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: var(--color-text);
    text-align: right;
}


/* ── LOADING STATE ── */

.eq-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex: 1;
}

.eq-loading.active {
    display: flex;
}

.eq-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(57, 57, 58, 0.12);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: eq-spin 0.75s linear infinite;
}

@keyframes eq-spin {
    to { transform: rotate(360deg); }
}

.eq-loading-label {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: #666667;
    letter-spacing: 0.02em;
}


/* ── SUCCESS STATE ── */

.eq-success {
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-lg);
    padding: var(--space-2xl);
}

.eq-success.active { display: flex; }

.eq-success-icon {
    width: 64px;
    height: 64px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eq-success-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-text);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eq-success h2 {
    font-size: var(--text-2xl);         /* Heading */
    color: var(--color-text);
    margin: 0;
}

.eq-success p {
    font-size: var(--text-base);        /* Body */
    color: #666667;
    max-width: 420px;
    line-height: 1.6;
    margin: 0;
}


/* ── RESPONSIVE ── */

@media (max-width: 767px) {
    .eq-header  { padding: var(--space-md) var(--space-lg); }
    .eq-body    { padding: var(--space-xl) var(--space-lg); }
    .eq-options { grid-template-columns: 1fr; }
    .eq-inputs  { grid-template-columns: 1fr; }
    .eq-question { font-size: var(--text-xl); }
    .eq-nav     { flex-wrap: wrap; }
}
