/* ==========================================================================
   Contact page - homepage (orange) theme
   Scoped to body.ct-page. Light is default; body.dark-theme flips tokens.
   ========================================================================== */

body.ct-page {
    --ct-bg: #fffaf3;
    --ct-bg-alt: #ffffff;
    --ct-surface: #ffffff;
    --ct-border: #eee6da;
    --ct-border-strong: #e2d6c6;
    --ct-text: #1a1a1a;
    --ct-body: #3f3f46;
    --ct-muted: #71717a;
    --ct-orange: #fd7e14;
    --ct-amber: #f59e0b;
    --ct-ink: #c2570a;                       /* readable orange for small text */
    --ct-tint: rgba(253, 126, 20, 0.08);
    --ct-tint-border: rgba(253, 126, 20, 0.25);
    --ct-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 10px 30px rgba(24, 16, 4, 0.06);
    --ct-shadow-hover: 0 18px 44px rgba(253, 126, 20, 0.14), 0 0 0 1px rgba(253, 126, 20, 0.25);
    --ct-field: #fffcf8;
    --ct-dark: #18181b;
    background-color: var(--ct-bg) !important;
    color: var(--ct-body);
}
body.ct-page.dark-theme {
    --ct-bg: #0e0e0f;
    --ct-bg-alt: #131315;
    --ct-surface: #1a1a1d;
    --ct-border: #2a2a2e;
    --ct-border-strong: #3a3a40;
    --ct-text: #f4f4f5;
    --ct-body: #d4d4d8;
    --ct-muted: #a1a1aa;
    --ct-ink: #fb923c;
    --ct-tint: rgba(253, 126, 20, 0.1);
    --ct-tint-border: rgba(253, 126, 20, 0.3);
    --ct-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --ct-shadow-hover: 0 18px 44px rgba(253, 126, 20, 0.12), 0 0 0 1px rgba(253, 126, 20, 0.35);
    --ct-field: #121214;
    --ct-dark: #1a1a1d;
}

.ct-page .ct-section { padding: 100px 0; position: relative; }
@media (max-width: 767.98px) { .ct-page .ct-section { padding: 64px 0; } }

.ct-page .ct-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ct-ink);
    background: var(--ct-tint);
    border: 1px solid var(--ct-tint-border);
    margin-bottom: 16px;
}
.ct-page .ct-title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.2;
    font-weight: 600;
    color: var(--ct-text);
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}
.ct-page .ct-lead { font-size: 1.05rem; line-height: 1.7; color: var(--ct-muted); margin: 0; }

/* Buttons (match homepage: orange primary, near-black secondary) */
.ct-page .ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.ct-page .ct-btn-orange { background: var(--ct-orange); color: #fff; }
.ct-page .ct-btn-orange:hover {
    color: #fff;
    background: #f06f05;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(253, 126, 20, 0.35);
}
.ct-page .ct-btn-dark { background: #212529; color: #f8f9fa; }
.ct-page .ct-btn-dark:hover { color: #fff; background: #000; transform: translateY(-2px); }
body.ct-page.dark-theme .ct-btn-dark { background: #f4f4f5; color: #18181b; }
body.ct-page.dark-theme .ct-btn-dark:hover { background: #fff; color: #000; }

/* ---------- Hero ---------- */
.ct-page .ct-hero {
    position: relative;
    overflow: hidden;
    padding: 170px 0 0;
    text-align: center;
}
.ct-page .ct-hero::before {
    content: '';
    position: absolute;
    top: -220px;
    left: 50%;
    width: 900px;
    height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(253, 126, 20, 0.12) 0%, transparent 65%);
    pointer-events: none;
}
.ct-page .ct-hero .container { position: relative; z-index: 1; }
.ct-page .ct-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 16px 4px 4px;
    border-radius: 999px;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    box-shadow: var(--ct-shadow);
    font-size: 15px;
    font-weight: 500;
    color: var(--ct-body);
}
.ct-page .ct-pill b {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--ct-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.ct-page .ct-hero h1 {
    font-size: clamp(2.3rem, 5.2vw, 4rem);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ct-text);
    margin: 28px auto 20px;
    max-width: 880px;
}
.ct-page .ct-hero h1 .gradient-text-orange { font-weight: 700; }
.ct-page .ct-hero-lead {
    font-size: 1.125rem;
    line-height: 1.75;
    font-weight: 500;
    color: var(--ct-body);
    max-width: 640px;
    margin: 0 auto 32px;
}
.ct-page .ct-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 575.98px) {
    .ct-page .ct-hero { padding-top: 130px; }
    .ct-page .ct-hero-actions .ct-btn { width: 100%; }
    .ct-page .ct-pill { font-size: 13px; }
}

/* Info cards under hero */
.ct-page .ct-info-row { padding: 64px 0 0; }
.ct-page .ct-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--ct-shadow);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ct-page a.ct-info:hover,
.ct-page .ct-info:hover {
    transform: translateY(-6px);
    box-shadow: var(--ct-shadow-hover);
    border-color: transparent;
}
.ct-page .ct-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct-ink);
    background: var(--ct-tint);
    border: 1px solid var(--ct-tint-border);
    margin-bottom: 22px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.ct-page .ct-icon svg { width: 22px; height: 22px; }
.ct-page .ct-info:hover .ct-icon {
    color: #fff;
    background: var(--ct-orange);
    border-color: var(--ct-orange);
    transform: scale(1.05);
}
.ct-page .ct-info h2 { font-size: 1.2rem; font-weight: 600; color: var(--ct-text); margin: 0 0 8px; }
.ct-page .ct-info p { font-size: 15px; line-height: 1.6; color: var(--ct-muted); margin: 0 0 18px; }
.ct-page .ct-info .ct-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--ct-ink);
}

/* ---------- Form section ---------- */
.ct-page .ct-panel {
    height: 100%;
    background: #18181b;
    border-radius: 24px;
    padding: 44px 40px;
    color: #e4e4e7;
    position: relative;
    overflow: hidden;
}
.ct-page .ct-panel::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    top: -160px;
    right: -160px;
    background: radial-gradient(circle, rgba(253, 126, 20, 0.22), transparent 70%);
    pointer-events: none;
}
body.ct-page.dark-theme .ct-panel { background: #1a1a1d; border: 1px solid var(--ct-border); }
.ct-page .ct-panel > * { position: relative; }
.ct-page .ct-panel .ct-eyebrow { color: #fdba74; background: rgba(253, 126, 20, 0.14); border-color: rgba(253, 126, 20, 0.35); }
.ct-page .ct-panel h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.2; color: #fff; margin: 0 0 12px; }
.ct-page .ct-panel > p { color: #a1a1aa; line-height: 1.7; margin: 0 0 28px; }
.ct-page .ct-dept {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}
.ct-page .ct-dept:hover strong { color: #fdba74; }
.ct-page .ct-dept-icon {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fd7e14;
    background: rgba(253, 126, 20, 0.12);
    border: 1px solid rgba(253, 126, 20, 0.3);
}
.ct-page .ct-dept strong { display: block; color: #fff; font-weight: 600; font-size: 16px; transition: color 0.2s ease; }
.ct-page .ct-dept div span { display: block; color: #a1a1aa; font-size: 14px; line-height: 1.5; }
.ct-page .ct-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}
.ct-page .ct-stat {
    text-align: center;
    padding: 16px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.ct-page .ct-stat b { display: block; font-size: 1.6rem; font-weight: 600; color: #fff; line-height: 1.1; }
.ct-page .ct-stat span { display: block; font-size: 12.5px; color: #a1a1aa; margin-top: 4px; }
@media (max-width: 575.98px) {
    .ct-page .ct-panel { padding: 32px 22px; }
}

.ct-page .ct-form {
    height: 100%;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 24px;
    padding: 44px 40px;
    box-shadow: var(--ct-shadow);
}
@media (max-width: 575.98px) { .ct-page .ct-form { padding: 30px 20px; } }
.ct-page .ct-form h3 { font-size: 1.6rem; font-weight: 600; color: var(--ct-text); margin: 0 0 6px; }
.ct-page .ct-form > p { color: var(--ct-muted); margin: 0 0 28px; }
.ct-page .ct-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ct-text); margin-bottom: 8px; }
.ct-page .ct-form label em { font-style: normal; font-weight: 400; color: var(--ct-muted); }
.ct-page .ct-form .form-control,
.ct-page .ct-form .form-select {
    background-color: var(--ct-field);
    border: 1px solid var(--ct-border-strong);
    color: var(--ct-text);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15.5px;
    min-height: 50px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ct-page .ct-form .form-control::placeholder { color: var(--ct-muted); opacity: 0.75; }
.ct-page .ct-form .form-control:focus,
.ct-page .ct-form .form-select:focus {
    border-color: var(--ct-orange);
    box-shadow: 0 0 0 4px var(--ct-tint);
    background-color: var(--ct-field);
    color: var(--ct-text);
}
.ct-page .ct-form .form-select:disabled { opacity: 0.6; background-color: var(--ct-field); }
.ct-page .ct-form textarea.form-control { min-height: 130px; resize: vertical; }
.ct-page .ct-form .ct-btn { width: 100%; padding: 16px 26px; }
.ct-page .ct-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--ct-muted);
}
.ct-page #formResult .alert { border-radius: 10px; margin: 0; }

/* ---------- FAQ ---------- */
.ct-page .ct-faq-wrap { background: var(--ct-bg-alt); border-top: 1px solid var(--ct-border); }
.ct-page .ct-faq .accordion-item {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border) !important;
    border-radius: 14px !important;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ct-page .ct-faq .accordion-item + .accordion-item { margin-top: 12px; }
.ct-page .ct-faq .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: var(--ct-tint-border) !important;
    box-shadow: var(--ct-shadow);
}
.ct-page .ct-faq .accordion-button {
    background: transparent !important;
    color: var(--ct-text) !important;
    font-size: 17px;
    font-weight: 600;
    padding: 20px 22px;
    box-shadow: none !important;
    gap: 14px;
}
.ct-page .ct-faq .accordion-button .ct-q {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--ct-ink);
    background: var(--ct-tint);
}
.ct-page .ct-faq .accordion-button::after {
    background-image: none;
    content: '+';
    font-size: 22px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    color: var(--ct-ink);
    transform: none;
    transition: transform 0.25s ease;
}
.ct-page .ct-faq .accordion-button:not(.collapsed)::after { transform: rotate(45deg); }
.ct-page .ct-faq .accordion-body {
    padding: 0 22px 22px 66px;
    color: var(--ct-muted);
    font-size: 15.5px;
    line-height: 1.7;
}
@media (max-width: 575.98px) { .ct-page .ct-faq .accordion-body { padding-left: 22px; } }

/* Neutralise the site-wide green accordion accent (aivon-custom.css) */
.ct-page .ct-faq .accordion-button:not(.collapsed) {
    background: var(--ct-tint) !important;
    border-left: 0 !important;
    color: var(--ct-text) !important;
}
