/* =====================================================================
   CONTACT US PAGE — scoped entirely under .contact-page
   Does not touch header, footer, or any other page/section styles.
   Reuses design tokens from the site's dark-navy automation section.
   ===================================================================== */

:root {
    --cp-bg: #050E24;
    --cp-bg-2: #081A3E;
    --cp-card: #0A1B3D;
    --cp-card-2: #0E294F;
    --cp-border: rgba(120, 170, 255, .14);
    --cp-border-hover: rgba(120, 170, 255, .32);
    --cp-blue: #3B6FF6;
    --cp-blue-soft: #5B8CFF;
    --cp-white: #F5F8FF;
    --cp-muted: #9FB2D9;
    --cp-muted-2: #7C8FB8;
}

.contact-page {
    background: var(--cp-bg);
}


/* ---------------------------------------------------------------------
   HERO
--------------------------------------------------------------------- */
.cp-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 56px;
    text-align: center;
    background: var(--cp-bg);
}

.cp-hero::before {
    content: "";
    position: absolute;
    width: 640px;
    height: 640px;
    left: 50%;
    top: -420px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 111, 246, .22), rgba(59, 111, 246, .05) 55%, transparent 72%);
    pointer-events: none;
}

.cp-hero .wrap {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.cp-eyebrow {
    color: var(--cp-blue-soft);
}

.cp-title {
    font-size: clamp(2.1rem, 4.6vw, 3.1rem);
    color: var(--cp-white);
    margin: 14px 0 18px;
}

.cp-sub {
    font-size: 1.06rem;
    color: var(--cp-muted);
    max-width: 620px;
    margin: 0 auto;
}

/* ---------------------------------------------------------------------
   CONTENT / GRID
--------------------------------------------------------------------- */
.cp-content {
    padding: 20px 0 100px;
    background: var(--cp-bg);
    position: relative;
}

.cp-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 26px;
    align-items: stretch;
}

/* ---------------------------------------------------------------------
   LEFT — INFO PANEL
--------------------------------------------------------------------- */
.cp-info {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--cp-card-2), var(--cp-card));
    border: 1px solid var(--cp-border);
    border-radius: 24px;
    box-shadow: 0 24px 50px -28px rgba(0, 4, 16, .75);
}

.cp-info-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 111, 246, .18), transparent 68%);
    pointer-events: none;
}

.cp-info-inner {
    position: relative;
    z-index: 1;
    padding: 40px 36px;
}

.cp-eyebrow-alt {
    color: var(--cp-blue-soft);
}

.cp-info-inner h2 {
    font-family: 'Sora', sans-serif;
    color: var(--cp-white);
    font-size: 1.9rem;
    margin: 12px 0 12px;
}

.cp-info-desc {
    color: var(--cp-muted);
    font-size: .96rem;
    line-height: 1.7;
    max-width: 420px;
}

.cp-benefits {
    list-style: none;
    margin: 30px 0 6px;
    padding: 0;
}

.cp-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(120, 170, 255, .1);
}

.cp-benefits li:last-child {
    border-bottom: 0;
}

.cp-b-ico {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(59, 111, 246, .14);
    border: 1px solid rgba(120, 170, 255, .22);
    color: var(--cp-blue-soft);
}

.cp-b-ico svg {
    width: 20px;
    height: 20px;
}

.cp-benefits b {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: .94rem;
    color: var(--cp-white);
    margin-bottom: 2px;
}

.cp-benefits span {
    font-size: .84rem;
    color: var(--cp-muted-2);
    line-height: 1.5;
}

.cp-direct {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid rgba(120, 170, 255, .1);
}

.cp-direct-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--cp-white);
    transition: color .15s ease;
}

.cp-direct-item svg {
    width: 18px;
    height: 18px;
    color: var(--cp-blue-soft);
    flex: none;
}

.cp-direct-item:hover {
    color: var(--cp-blue-soft);
}

/* ---------------------------------------------------------------------
   RIGHT — FORM CARD
--------------------------------------------------------------------- */
.cp-form-card {
    background: var(--cp-card);
    border: 1px solid var(--cp-border);
    border-radius: 24px;
    padding: 40px 38px;
    box-shadow: 0 24px 50px -28px rgba(0, 4, 16, .75);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.cp-form-card:hover {
    border-color: var(--cp-border-hover);
    box-shadow: 0 30px 60px -26px rgba(29, 90, 240, .28), 0 0 0 1px rgba(120, 170, 255, .1);
}

.cp-form-title {
    font-family: 'Sora', sans-serif;
    color: var(--cp-white);
    font-size: 1.32rem;
    margin-bottom: 6px;
}

.cp-form-sub {
    color: var(--cp-muted-2);
    font-size: .9rem;
    margin-bottom: 26px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-field label {
    display: block;
    font-size: .86rem;
    font-weight: 600;
    color: #DCE7FF;
    margin-bottom: 8px;
}

.contact-field input {
    width: 100%;
    border: 1px solid var(--cp-border);
    border-radius: 12px;
    padding: 13px 15px;
    font-family: 'Inter', sans-serif;
    font-size: .94rem;
    color: var(--cp-white);
    background: rgba(255, 255, 255, .03);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.contact-field input::placeholder {
    color: #5E7099;
}

.contact-field input:focus {
    outline: none;
    border-color: var(--cp-blue-soft);
    background: rgba(59, 111, 246, .06);
    box-shadow: 0 0 0 3px rgba(59, 111, 246, .18);
}

.contact-field input:focus-visible {
    outline: none;
}

.contact-phone-input {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--cp-border);
    border-radius: 12px;
    padding: 0 15px;
    background: rgba(255, 255, 255, .03);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.contact-phone-input:focus-within {
    border-color: var(--cp-blue-soft);
    background: rgba(59, 111, 246, .06);
    box-shadow: 0 0 0 3px rgba(59, 111, 246, .18);
}

.contact-phone-input .phone-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.contact-phone-input .phone-code {
    font-size: .92rem;
    color: var(--cp-white);
    font-weight: 600;
    padding-right: 8px;
    border-right: 1px solid var(--cp-border);
}

.contact-phone-input input {
    border: 0;
    background: transparent;
    padding: 13px 0 13px 8px;
    flex: 1;
}

.contact-phone-input input:focus {
    box-shadow: none;
    background: transparent;
}

.cp-submit {
    justify-content: center;
    width: 100%;
    margin-top: 6px;
    padding: 15px 24px;
}

.cp-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none !important;
}

/* ---------------------------------------------------------------------
   TOAST
--------------------------------------------------------------------- */
.cp-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(14px);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0A1B3D;
    border: 1px solid var(--cp-border-hover);
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 20px 44px -18px rgba(0, 4, 16, .8);
    color: var(--cp-white);
    font-size: .9rem;
    font-weight: 600;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    max-width: 90vw;
}

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

.cp-toast-icon {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .78rem;
}

.cp-toast.success .cp-toast-icon {
    background: rgba(46, 196, 130, .18);
    color: #4ADE9C;
}

.cp-toast.error .cp-toast-icon {
    background: rgba(225, 71, 71, .18);
    color: #FF8A8A;
}

/* ---------------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------------- */
@media (max-width: 991px) {
    .cp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cp-info-inner,
    .cp-form-card {
        padding: 32px 28px;
    }

    .cp-hero {
        padding: 70px 0 46px;
    }
}

@media (max-width: 640px) {

    .cp-info-inner,
    .cp-form-card {
        padding: 26px 20px;
    }

    .cp-title {
        font-size: 1.9rem;
    }

    .cp-toast {
        left: 16px;
        right: 16px;
        bottom: 18px;
        transform: translateY(14px);
        max-width: none;
    }

    .cp-toast.show {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-form-card:hover {
        transform: none;
    }
}