/* ==========================================================
   CONTACT PAGE — v2
   Same token system as about.css / hero.css so this page
   feels native to the site instead of bolted on.
========================================================== */
:root {
    --ink: #0b1130;
    --muted: #5b6178;
    --blue: #2e5af8;
    --violet: #7b2ff7;
    --violet-deep: #5a1fd6;
    --bg-soft: #f6f5ff;
    --bg-card: #ffffff;
    --line: #e4e1fa;
    --grad: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
    --grad-soft: linear-gradient(135deg, rgba(46, 90, 248, 0.08), rgba(123, 47, 247, 0.08));
    --shadow-lg: 0 30px 60px -20px rgba(90, 31, 214, 0.25);
    --shadow-sm: 0 10px 25px -10px rgba(11, 17, 48, 0.12);
    --font-display: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

.cts {
    background: var(--bg-soft);
    color: var(--ink);
    font-family: var(--font-body);
    overflow-x: clip;
}

.cts h1,
.cts h2,
.cts h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    margin: 0;
}

/* reuse the same reveal-on-scroll mechanism as about.js */
.cts [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(.16, .8, .3, 1), transform 0.7s cubic-bezier(.16, .8, .3, 1);
}

.cts [data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .cts [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================
   HERO
========================== */
.cts-hero,
.cts .cts-hero[data-reveal] {
    position: relative;
    max-width: 1200px;
    height: 340px;
    margin: 0 auto;
    padding: 24px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    box-sizing: border-box;
    overflow: hidden;
}

.cts-glow-a {
    position: absolute;
    width: 480px;
    height: 480px;
    top: -180px;
    right: -160px;
    background: var(--grad);
    filter: blur(120px);
    opacity: 0.22;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.cts-glow-b {
    position: absolute;
    width: 380px;
    height: 380px;
    bottom: -160px;
    left: -140px;
    background: var(--blue);
    filter: blur(120px);
    opacity: 0.14;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.cts-eyebrow {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--violet-deep);
    text-transform: uppercase;
    background: var(--grad-soft);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cts-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.18);
}

.cts-hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 680px;
}

.cts-grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cts-hero p {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
    max-width: 560px;
}

/* quick contact chips */
.cts-chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.cts-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 13.5px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cts-chip:hover {
    transform: translateY(-2px);
    border-color: var(--violet);
    box-shadow: 0 12px 24px -10px rgba(90, 31, 214, 0.25);
}

.cts-chip i {
    color: var(--violet);
    font-size: 14px;
}

/* ==========================
   MAIN GRID: info + form
========================== */
.cts-main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 60px 100px;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: start;
}

/* ---- Left: info column ---- */
.cts-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cts-info-head h2 {
    font-size: 26px;
    font-weight: 700;
}

.cts-info-head p {
    color: var(--muted);
    font-size: 15px;
    margin-top: 8px;
    line-height: 1.6;
}

.cts-method {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cts-method:hover {
    transform: translateY(-4px);
    border-color: var(--violet);
    box-shadow: var(--shadow-lg);
}

.cts-method-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--grad-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: var(--violet);
}

.cts-method strong {
    display: block;
    font-family: var(--font-display);
    font-size: 15.5px;
}

.cts-method small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.cts-method i.cts-arrow {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.cts-method:hover i.cts-arrow {
    transform: translateX(4px);
    color: var(--violet-deep);
}

/* socials row */
.cts-socials {
    display: flex;
    gap: 12px;
}

.cts-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    text-decoration: none;
    transition: 0.25s;
}

.cts-socials a:hover {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

/* mini FAQ accordion */
.cts-faq {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cts-faq-item {
    border-bottom: 1px solid var(--line);
}

.cts-faq-item:last-child {
    border-bottom: none;
}

.cts-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: none;
    text-align: left;
    padding: 16px 18px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    cursor: pointer;
}

.cts-faq-q i {
    color: var(--violet);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.cts-faq-item.open .cts-faq-q i {
    transform: rotate(45deg);
}

.cts-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cts-faq-item.open .cts-faq-a {
    max-height: 200px;
}

.cts-faq-a p {
    padding: 0 18px 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

/* ---- Right: form card ---- */
.cts-form-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 44px;
    box-shadow: var(--shadow-lg);
}

.cts-form-head h2 {
    font-size: 26px;
    font-weight: 700;
}

.cts-form-head p {
    color: var(--muted);
    font-size: 15px;
    margin-top: 8px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cts-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.cts-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cts-field label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.cts-field label .cts-optional {
    font-weight: 400;
    color: var(--muted);
    font-size: 12.5px;
}

.cts-field input,
.cts-field textarea,
.cts-field select {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-body);
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    background: #fbfaff;
    color: var(--ink);
    transition: 0.25s;
    resize: none;
}

.cts-field input::placeholder,
.cts-field textarea::placeholder {
    color: #a3a2c2;
}

.cts-field input:focus,
.cts-field textarea:focus,
.cts-field select:focus {
    border-color: var(--violet);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.12);
}

.cts-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-height: 52px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--violet) 50%),
        linear-gradient(135deg, var(--violet) 50%, transparent 50%),
        linear-gradient(to right, transparent, transparent);
    background-position:
        calc(100% - 20px) calc(1.1em + 2px),
        calc(100% - 15px) calc(1.1em + 2px),
        100% 0;
    background-size:
        6px 6px,
        6px 6px,
        2.5em 2.5em;
    background-repeat: no-repeat;
    padding-right: 44px;
    cursor: pointer;
}

.cts-field select::-ms-expand {
    display: none;
}

.cts-msg-foot {
    display: flex;
    justify-content: flex-end;
}

.cts-msg-count {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-mono);
}

.cts-submit-btn {
    margin-top: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15.5px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.cts-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -12px rgba(90, 31, 214, 0.45);
}

.cts-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.cts-note {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 4px;
}

/* success state */
.cts-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding: 48px 24px;
    width: 100%;
    margin: 0 auto;
}

.cts-success.show {
    display: flex;
}

.cts-form.hide {
    display: none;
}

.cts-success-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--grad-soft);
    color: var(--violet);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ctsPop 0.4s cubic-bezier(.16, .8, .3, 1) both;
}

@keyframes ctsPop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cts-success h3 {
    font-size: 21px;
}

.cts-success p {
    color: var(--muted);
    font-size: 14.5px;
    max-width: 320px;
}

.cts-success-reset {
    margin-top: 6px;
    background: none;
    border: none;
    color: var(--violet-deep);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

/* ==========================
   BOTTOM CTA BANNER
========================== */
.cts-banner {
    max-width: 1180px;
    margin: 0 auto 100px;
    padding: 0 60px;
}

.cts-banner-inner {
    background: var(--grad);
    border-radius: 24px;
    padding: 44px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cts-banner-inner::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    top: -100px;
    right: -60px;
}

.cts-banner-text h3 {
    font-size: 24px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cts-banner-text p {
    margin-top: 6px;
    opacity: 0.9;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.cts-banner-btn {
    flex-shrink: 0;
    background: #fff;
    color: var(--violet-deep);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease;
}

.cts-banner-btn:hover {
    transform: translateY(-3px);
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 980px) {
    .cts-main {
        grid-template-columns: 1fr;
        padding: 20px 24px 70px;
    }

    .cts-hero {
        padding: 90px 24px 50px;
    }

    .cts-hero h1 {
        font-size: 38px;
    }

    .cts-form-card {
        padding: 30px 24px;
    }

    .cts-row {
        grid-template-columns: 1fr;
    }

    .cts-banner {
        padding: 0 24px;
    }

    .cts-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 36px 26px;
    }
}

/* Honeypot spam-trap field: visually hidden, still focusable-avoidant */
.cts-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}