/* =============================================================
   Leveredge Media — contact.css
   Loaded on the Contact page only.
   FAQ accordion item styles live in base.css.
   v1.0.0
============================================================= */


/* ── SECTION BACKGROUNDS ────────────────────────────────────── */

#contact-hero  { background: var(--ink); }
#contact-main  { background: var(--ink); padding: 80px 24px; }
#contact-faq   { background: var(--ink-2); padding: 80px 24px; }


/* ============================================================
   CONTACT HERO
============================================================= */

#contact-hero {
    padding: 148px 24px 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.contact-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%);
    pointer-events: none;
}

.contact-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% -5%, rgba(255, 95, 31, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.contact-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 72px;
    align-items: center;
}

.contact-hero-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 18px;
}

.contact-hero-sub {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 480px;
}

/* Response chips */
.response-chips { display: flex; gap: 9px; flex-wrap: wrap; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: 100px;
    padding: 8px 15px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}
.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.chip-green .chip-dot {
    background: var(--green);
    box-shadow: 0 0 0 3px var(--green-soft);
}
.chip-orange .chip-dot { background: var(--orange); }

/* Quick contact card (right column) */
.hero-contact-card {
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    padding: 32px 28px;
}

.hcc-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 20px;
    display: block;
}

.hcc-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.hcc-row:last-child { border-bottom: none; padding-bottom: 0; }

.hcc-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--orange-soft);
    border: 1px solid var(--orange-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hcc-text h4 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
}
.hcc-text p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.hcc-text a { color: var(--orange); font-size: 13px; font-weight: 600; }
.hcc-text a:hover { opacity: 0.8; }


/* ============================================================
   CONTACT MAIN LAYOUT
============================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 52px;
    align-items: start;
    max-width: var(--max);
    margin: 0 auto;
}


/* ============================================================
   FORM BLOCK
============================================================= */

.form-block {
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    padding: 40px 36px;
}

.form-header { margin-bottom: 28px; }
.form-header h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: 8px;
}
.form-header p { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* Progress bar */
.form-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 30px;
}
.progress-step {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: var(--border-2);
    transition: background 0.3s;
}
.progress-step.active { background: var(--orange); }
.progress-step.done   { background: rgba(34, 197, 94, 0.5); }

/* Form layout helpers */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.form-group { margin-bottom: 14px; }
.form-group:last-of-type { margin-bottom: 0; }

.form-section-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 14px;
    display: block;
}
.form-divider {
    height: 1px;
    background: var(--border);
    margin: 22px 0;
}

/* Labels */
label {
    display: block;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}
.req { color: var(--orange); margin-left: 2px; }
.form-optional {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted-2);
}

/* Input, select, textarea */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 13px 15px;
    background: var(--ink);
    border: 1px solid var(--border-2);
    border-radius: 9px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--white);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
input::placeholder,
textarea::placeholder { color: var(--muted-2); }
input:focus,
select:focus,
textarea:focus { border-color: var(--orange-border); background: var(--card-2); }
input.error,
select.error,
textarea.error { border-color: rgba(239, 68, 68, 0.55); }

/* Select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23505060' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 38px;
    cursor: pointer;
}
select option { background: var(--card); color: var(--white); }

/* Textarea */
textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.65;
}

/* Field footer (char count + hint) */
.field-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}
.field-hint { font-size: 12px; color: var(--muted-2); }
.char-count  { font-family: var(--font-display); font-size: 12px; color: var(--muted-2); }
.char-count.warn { color: var(--orange); }


/* ── CUSTOM CHECKBOXES ───────────────────────────────────────── */

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.checkbox-item { position: relative; }
.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--ink);
    border: 1px solid var(--border-2);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    user-select: none;
    text-transform: none;
    letter-spacing: 0;
}
.checkbox-label:hover {
    border-color: var(--border-2);
    background: var(--card-2);
    color: var(--white);
}
.checkbox-item input:checked + .checkbox-label {
    border-color: var(--orange-border);
    background: var(--orange-soft);
    color: var(--white);
}
.check-box {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 1.5px solid var(--muted-2);
    border-radius: 4px;
    position: relative;
    transition: all 0.18s;
}
.checkbox-item input:checked + .checkbox-label .check-box {
    background: var(--orange);
    border-color: var(--orange);
}
.checkbox-item input:checked + .checkbox-label .check-box::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 5px;
    height: 8px;
    border: 1.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}


/* ── BUDGET RADIO BUTTONS ────────────────────────────────────── */

.budget-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.budget-item { position: relative; }
.budget-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.budget-label {
    display: block;
    text-align: center;
    padding: 10px 8px;
    background: var(--ink);
    border: 1px solid var(--border-2);
    border-radius: 9px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.18s;
    line-height: 1.4;
    user-select: none;
}
.budget-label:hover { border-color: var(--border-2); color: var(--white); background: var(--card-2); }
.budget-item input:checked + .budget-label {
    border-color: var(--orange-border);
    background: var(--orange-soft);
    color: var(--white);
}
.budget-num {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: inherit;
}


/* ── FORM SUBMIT + SUCCESS ───────────────────────────────────── */

.form-submit-area { margin-top: 26px; }

.form-disclaimer {
    font-size: 13px;
    color: var(--muted-2);
    line-height: 1.55;
    margin-top: 12px;
    text-align: center;
}
.form-disclaimer a { color: var(--orange); }

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 52px 24px;
}
.success-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--green-soft);
    border: 1px solid var(--green-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.form-success h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.form-success p  { font-size: 15px; color: var(--muted); line-height: 1.68; max-width: 380px; margin: 0 auto 24px; }

/* Error toast */
.cf-error-toast {
    background: var(--red-soft);
    border: 1px solid var(--red-border);
    border-radius: 9px;
    padding: 13px 16px;
    font-size: 14px;
    color: #fca5a5;
    margin-bottom: 16px;
    display: none;
    animation: fade-up 0.3s ease;
}
.cf-error-toast.visible { display: block; }


/* ============================================================
   CONTACT SIDEBAR
============================================================= */

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    padding: 28px 24px;
}
.sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    letter-spacing: -0.015em;
}
.sidebar-card > p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Step list (what happens next) */
.step-list { display: flex; flex-direction: column; }
.step-item { display: flex; gap: 14px; padding-bottom: 20px; }
.step-item:last-child { padding-bottom: 0; }

.step-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--orange-soft);
    border: 1px solid var(--orange-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    flex-shrink: 0;
    z-index: 1;
}
.step-line {
    width: 1px;
    flex: 1;
    background: var(--border-2);
    margin-top: 5px;
    min-height: 14px;
}
.step-body { padding-top: 4px; }
.step-body h4 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.step-body p { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* Direct contact rows */
.direct-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.direct-contact-row:last-child { border-bottom: none; padding-bottom: 0; }

.dc-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--orange-soft);
    border: 1px solid var(--orange-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dc-text h5 {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}
.dc-text a { font-size: 14px; color: var(--orange); font-weight: 500; }
.dc-text a:hover { opacity: 0.8; }
.dc-response { font-size: 14px; color: var(--white); font-weight: 600; margin-bottom: 2px; }
.dc-text p { font-size: 12px; color: var(--muted-2); margin: 2px 0 0; line-height: 1.5; }

/* Working hours */
.hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.hours-row:last-of-type { border-bottom: none; }
.hours-day   { color: var(--muted-2); }
.hours-time  { font-family: var(--font-display); font-weight: 600; color: var(--white); }
.hours-time.closed { color: var(--muted-2); font-weight: 400; }
.hours-note  {
    font-size: 12px;
    color: var(--muted-2);
    line-height: 1.55;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}


/* ============================================================
   CONTACT FAQ
============================================================= */

.contact-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: var(--max);
    margin: 0 auto;
}


/* ── MATH CHALLENGE FIELD ────────────────────────────────── */

.form-group--math {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-2);
    border-radius: var(--r);
}
.form-group--math label {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
    margin: 0;
    flex: 1;
    cursor: default;
}
.form-group--math input[type="number"] {
    width: 96px;
    flex-shrink: 0;
    padding: 10px 13px;
    background: var(--card-2);
    border: 1px solid var(--border-2);
    border-radius: calc(var(--r) - 2px);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}
.form-group--math input[type="number"]::-webkit-outer-spin-button,
.form-group--math input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.form-group--math input[type="number"]:focus  { border-color: var(--orange-border); }
.form-group--math input[type="number"].error  { border-color: rgba(239, 68, 68, 0.55); }
.form-hint {
    font-size: 12px;
    color: var(--muted-2);
    white-space: nowrap;
}


/* ============================================================
   RESPONSIVE
============================================================= */

/* ============================================================
   RESPONSIVE — MOBILE-FIRST CONTACT EXPERIENCE
   On mobile the form is the primary focus. The hero simplifies
   to a title and short description. Sidebar info moves below
   the form. Progress bar and multi-step feel collapse into a
   clean single-scroll experience.
============================================================= */

@media (max-width: 1080px) {
    .contact-hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .contact-layout     { grid-template-columns: 1fr; }
    .contact-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    /* Hero: cut the large top padding, simplify */
    #contact-hero   { padding: 96px 20px 48px; }
    #contact-main   { padding: 40px 20px; }
    #contact-faq    { padding: 40px 20px; }

    /* Hero text: smaller, tighter */
    .contact-hero-title { font-size: clamp(26px, 7vw, 42px); }
    .contact-hero-sub   { font-size: 15px; }

    /* Form block: reduce padding, remove card shadow on mobile */
    .form-block {
        padding: 24px 16px;
        border-radius: var(--r);
        box-shadow: none;
    }

    /* Progress bar steps: shrink labels */
    .progress-steps { gap: 4px; }
    .step-label     { font-size: 10px; }
    .step-circle    { width: 26px; height: 26px; font-size: 11px; }
}

@media (max-width: 780px) {
    .contact-faq-grid { grid-template-columns: 1fr; }
    .contact-sidebar  { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    /* Form inputs: full-width single column on phones */
    .form-row      { grid-template-columns: 1fr; gap: 12px; }
    .checkbox-grid { grid-template-columns: 1fr; gap: 8px; }
    .budget-options { grid-template-columns: 1fr 1fr; gap: 8px; }

    /* Math challenge: stack vertically on very small screens */
    .form-group--math {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }
    .form-group--math input[type="number"] { width: 100%; }

    /* Hide the decorative sidebar info items on the smallest screens */
    .contact-sidebar { display: none; }

    /* Simplify the hero strip to just the title */
    .contact-hero-eyebrow { display: none; }
}
