/* ==========================================================================
   Sky INTERIORS — CONSULTATION PAGE STYLES
   Matches the existing editorial/layered luxury design language.
   Uses the same CSS variables defined in style.css.
   ========================================================================== */

/* --- Page body override: no dot-grid texture from why-us section --- */
.consultation-page {
    background-color: var(--color-bg);
}

/* --- Active CTA in navbar --- */
.navbar__cta--active {
    background-color: var(--color-primary) !important;
    color: var(--color-secondary-light) !important;
    box-shadow: var(--shadow-soft) !important;
}
.navbar__cta--active::after {
    display: none !important;
}
.navbar__cta--active:hover {
    background-color: var(--color-secondary) !important;
    color: var(--color-white) !important;
}

/* ========================================================================
   HERO
   ======================================================================== */
.consult-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    padding: calc(var(--header-height) + var(--space-xl)) 6vw var(--space-xl);
    text-align: center;
    background-color: var(--color-primary);
    overflow: hidden;
    isolation: isolate;
}

/* Decorative radial glow matching the CTA section's treatment */
.consult-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184,147,91,0.20), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.consult-hero::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(184,147,91,0.12), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.consult-hero__content {
    position: relative;
    z-index: 1;
    max-width: 660px;
    animation: fadeUp 1s cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.consult-hero__eyebrow {
    justify-content: center;
    color: var(--color-secondary-light);
    margin-bottom: var(--space-md);
}

.consult-hero__heading {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.consult-hero__heading em {
    font-style: italic;
    color: var(--color-secondary-light);
}

.consult-hero__subtitle {
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 300;
    color: rgba(248, 248, 248, 0.72);
    line-height: 1.85;
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

.consult-hero__line {
    width: 60px;
    height: 2px;
    background: var(--color-secondary);
    margin: 0 auto;
    animation: heroLineGrow 1.2s 0.6s cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

@keyframes heroLineGrow {
    from { width: 0; opacity: 0; }
    to { width: 60px; opacity: 1; }
}

/* ========================================================================
   FORM SECTION CONTAINER
   ======================================================================== */
.consult-form-section {
    position: relative;
    padding: var(--space-xl) 6vw var(--space-2xl);
    background-color: var(--color-bg);
    overflow: clip;
}

/* Subtle decorative orb */
.consult-form-section::before {
    content: "";
    position: absolute;
    top: -160px;
    left: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(184,147,91,0.08), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.consult-form {
    position: relative;
    z-index: 1;
    max-width: 740px;
    margin: 0 auto;
}

/* ========================================================================
   FORM SECTION BLOCKS
   ======================================================================== */
.form-section {
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 0.84, 0.24, 1),
                transform 0.8s cubic-bezier(0.16, 0.84, 0.24, 1);
}

.form-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger each section's reveal */
.form-section:nth-child(1) { transition-delay: 0s; }
.form-section:nth-child(2) { transition-delay: 0.06s; }
.form-section:nth-child(3) { transition-delay: 0.12s; }
.form-section:nth-child(4) { transition-delay: 0.18s; }
.form-section:nth-child(5) { transition-delay: 0.24s; }
.form-section:nth-child(6) { transition-delay: 0.30s; }

.form-section__header {
    margin-bottom: var(--space-lg);
}

.form-section__number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-secondary-dark);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.form-section__line {
    width: 50px;
    height: 2px;
    background: var(--color-secondary);
}

.form-section__description {
    font-size: 0.93rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

/* ========================================================================
   FORM ROW (2-column grid)
   ======================================================================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md) var(--space-lg);
}

/* ========================================================================
   FORM GROUP
   ======================================================================== */
.form-group {
    margin-bottom: var(--space-md);
}

.group-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.03em;
    margin-bottom: var(--space-sm);
}

/* ========================================================================
   FLOATING LABEL INPUTS
   ======================================================================== */
.input-field {
    position: relative;
}

.input-field input {
    width: 100%;
    padding: 1.5rem 0 0.6rem;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--color-border);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 400;
    outline: none;
    transition: border-color 0.4s ease;
    caret-color: var(--color-secondary);
}

.input-field input:focus {
    border-bottom-color: transparent;
}

/* Expanding gold underline */
.focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary-dark), var(--color-secondary), var(--color-secondary-dark));
    transition: width 0.5s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.input-field input:focus ~ .focus-line {
    width: 100%;
}

/* Floating label */
.input-field label {
    position: absolute;
    left: 0;
    top: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 400;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.22, 0.8, 0.2, 1);
    transform-origin: left center;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label {
    top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-secondary-dark);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Error state */
.form-group.has-error .input-field input {
    border-bottom-color: #c0392b;
}

.form-group.has-error .focus-line {
    background: #c0392b;
}

.form-group.has-error .input-field input:focus + label,
.form-group.has-error .input-field input:not(:placeholder-shown) + label {
    color: #c0392b;
}

/* Validation message */
.validation-msg {
    display: block;
    min-height: 1.3em;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 500;
    color: #c0392b;
    padding-top: 0.35rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.validation-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================================
   RADIO CARDS
   ======================================================================== */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.radio-card {
    cursor: pointer;
    user-select: none;
}

.radio-card input {
    display: none;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.3rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--color-text-muted);
    background: var(--color-card);
    transition: all 0.35s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.radio-card:hover .radio-content {
    border-color: rgba(184,147,91,0.45);
    color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(184,147,91,0.08);
}

.radio-card input:checked + .radio-content {
    border-color: var(--color-secondary);
    color: var(--color-secondary-dark);
    background: rgba(184,147,91,0.06);
    box-shadow: 0 4px 20px rgba(184,147,91,0.12);
}

.radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.radio-card:hover .radio-dot {
    border-color: rgba(184,147,91,0.5);
}

.radio-card input:checked + .radio-content .radio-dot {
    border-color: var(--color-secondary);
}

.radio-card input:checked + .radio-content .radio-dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--color-secondary);
    animation: dotPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dotPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Error state for radio groups */
.form-group.has-error .radio-card .radio-content {
    border-color: rgba(192,57,43,0.35);
}

/* ========================================================================
   CHECKBOX TAGS (Pill-shaped)
   ======================================================================== */
.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.checkbox-tag {
    cursor: pointer;
    user-select: none;
}

.checkbox-tag input {
    display: none;
}

.checkbox-content {
    display: inline-block;
    padding: 0.55rem 1.15rem;
    border: 1.5px solid var(--color-border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
    background: var(--color-card);
    transition: all 0.3s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.checkbox-tag:hover .checkbox-content {
    border-color: rgba(184,147,91,0.4);
    color: var(--color-primary);
}

.checkbox-tag input:checked + .checkbox-content {
    border-color: var(--color-secondary);
    color: var(--color-secondary-dark);
    background: rgba(184,147,91,0.06);
}

/* ========================================================================
   SELECT DROPDOWN
   ======================================================================== */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 1rem 2.5rem 1rem 1.2rem;
    background: var(--color-card);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.select-wrapper select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 16px rgba(184,147,91,0.10);
}

.select-wrapper select option {
    background: var(--color-card);
    color: var(--color-primary);
    padding: 0.5rem;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--color-secondary);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.select-wrapper:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
}

.select-wrapper select:invalid {
    color: var(--color-text-muted);
}

/* ========================================================================
   TEXTAREA
   ======================================================================== */
.textarea-field textarea {
    width: 100%;
    padding: 1.15rem 1.2rem;
    background: var(--color-card);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    outline: none;
    resize: vertical;
    min-height: 140px;
    line-height: 1.75;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    caret-color: var(--color-secondary);
}

.textarea-field textarea:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 16px rgba(184,147,91,0.10);
}

.textarea-field textarea::placeholder {
    color: var(--color-text-muted);
    font-weight: 300;
}

/* ========================================================================
   SUBMIT BUTTON
   ======================================================================== */
.form-section--submit {
    text-align: center;
    padding-top: var(--space-sm);
}

.consult-submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.15rem 2.8rem;
    background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary), var(--color-secondary-light));
    background-size: 200% 200%;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.22, 0.8, 0.2, 1);
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.consult-submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(184,147,91,0.30),
        0 2px 8px rgba(184,147,91,0.15);
}

.consult-submit-btn:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.consult-submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Ripple */
.consult-submit-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* Loading state */
.consult-submit-btn.loading {
    pointer-events: none;
}

.consult-submit-btn.loading .btn-text,
.consult-submit-btn.loading .btn-icon {
    opacity: 0;
}

.consult-submit-btn .spinner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255,255,255,0.25);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    opacity: 0;
    transition: opacity 0.2s;
}

.consult-submit-btn.loading .spinner {
    opacity: 1;
}

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

.submit-note {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-top: var(--space-sm);
}

/* ========================================================================
   TOAST NOTIFICATION
   ======================================================================== */
.consult-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 0.9rem 1.8rem;
    background: var(--color-primary);
    border: 1px solid #c0392b;
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow: var(--shadow-elevated);
}

.consult-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 860px) {
    .consult-hero {
        min-height: 45vh;
        padding: calc(var(--header-height) + var(--space-lg)) 6vw var(--space-lg);
    }

    .consult-form-section {
        padding: var(--space-lg) 6vw var(--space-xl);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .radio-group {
        flex-direction: column;
    }

    .form-section {
        margin-bottom: var(--space-lg);
    }
}

@media (max-width: 640px) {
    .consult-hero__heading {
        font-size: 2rem;
    }

    .consult-hero__subtitle {
        font-size: 0.95rem;
    }

    .consult-submit-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .radio-content {
        padding: 0.75rem 1rem;
        font-size: 0.88rem;
    }

    .checkbox-content {
        padding: 0.5rem 0.95rem;
        font-size: 0.8rem;
    }
}

/* ========================================================================
   REDUCED MOTION
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
    .form-section,
    .consult-hero__content,
    .consult-hero__line,
    .validation-msg,
    .consult-toast {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}