/* ============================================
   Contact Support (Get In Touch)
   ============================================ */

.cs-page { background: #F7F8FA; }

.cs-hero {
    background-image: url('/assets/CalcBg.png');
    background-color: #0B1533;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: clamp(110px, 12vw, 150px) 20px clamp(120px, 13vw, 165px);
    text-align: center;
    box-sizing: border-box;
}

.cs-hero-title {
    margin: 0 0 14px;
    font-family: 'Bricolage Grotesque', 'Bricolage Grotesque Fallback', sans-serif;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.15;
    font-weight: 700;
}
.cs-hero-title .l1 { color: #A7BFE9; font-weight: 500; }
.cs-hero-title .l2 { color: #ffffff; }

.cs-hero-subtitle {
    margin: 0;
    font-family: 'Geist', 'Geist Fallback', sans-serif;
    font-size: clamp(13px, 1.1vw, 15px);
    color: rgba(255, 255, 255, 0.72);
}

/* Card pulled up so it overlaps the hero, as in the design. */
.cs-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px clamp(56px, 7vw, 88px);
    margin-top: clamp(-100px, -9vw, -70px);
}

.cs-card {
    background: #ffffff;
    border: 1px solid #ECEFF4;
    border-radius: 16px;
    padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.8vw, 38px) clamp(26px, 3vw, 38px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.cs-card-title {
    margin: 0 0 22px;
    font-family: 'Geist', 'Geist Fallback', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0a1330;
}

.cs-error {
    margin: 0 0 20px;
    padding: 12px 16px;
    background: #FEF2F2;
    border: 1px solid #FBD5D5;
    border-radius: 8px;
    font-family: 'Geist', 'Geist Fallback', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #B42318;
}

.cs-row { margin-bottom: 18px; }
.cs-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.cs-field { display: flex; flex-direction: column; }

.cs-field label {
    font-family: 'Geist', 'Geist Fallback', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #55617A;
    margin-bottom: 8px;
}
.cs-req { color: #E5484D; }

.cs-field input,
.cs-field textarea {
    width: 100%;
    box-sizing: border-box;
    background: #F7F8FA;
    border: 1px solid #E6E9EF;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: 'Geist', 'Geist Fallback', sans-serif;
    font-size: 15px;
    color: #0a1330;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.cs-field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }

.cs-field input::placeholder,
.cs-field textarea::placeholder { color: #A3ACBD; }

.cs-field input:focus,
.cs-field textarea:focus { border-color: #2C4FD4; background: #ffffff; }

/* Field-level error state */
.cs-field input.is-invalid,
.cs-field textarea.is-invalid {
    border-color: #E5484D;
    background: #FFF7F7;
}
.cs-field input.is-invalid:focus,
.cs-field textarea.is-invalid:focus { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12); }
.cs-field-error {
    display: none;
    margin: 6px 0 0;
    font-family: 'Geist', 'Geist Fallback', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #D92D20;
}
.cs-field-error:not(:empty) { display: block; }

.cs-captcha-img { margin: 4px 0 14px; }
.cs-captcha-img img { height: 54px; width: auto; display: block; }

/* Buttons */
.cs-btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 15px 20px;
    font-family: 'Geist', 'Geist Fallback', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.cs-btn-submit {
    margin-top: 8px;
    color: #ffffff;
    background: linear-gradient(180deg, #2C4FD4 0%, #16308F 100%);
}
.cs-btn-submit:disabled {
    background: #EFF1F5;
    color: #A3ACBD;
    cursor: not-allowed;
}

/* Success state */
/* Two classes so the 24px survives the .cs-card radius override in the mobile block. */
.cs-card.cs-card-success { padding: 0; overflow: hidden; border-radius: 24px; }
.cs-success-inner {
    background-image: url('/assets/OverlaySuccess.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    background-color: #ffffff;
    padding: clamp(38px, 5vw, 60px) 24px clamp(34px, 4.5vw, 54px);
    text-align: center;
}
.cs-success-icon { width: clamp(76px, 8vw, 104px); height: auto; display: block; margin: 0 auto 22px; }
.cs-success-text {
    margin: 0 auto 22px;
    max-width: 560px;
    font-family: 'Geist', 'Geist Fallback', sans-serif;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.35;
    color: #0a1330;
}
.cs-ticket {
    margin: -8px auto 20px;
    font-family: 'Geist', 'Geist Fallback', sans-serif;
    font-size: 14px;
    color: #55617A;
}
.cs-btn-back {
    max-width: 340px;
    margin: 0 auto;
    color: #ffffff;
    background: linear-gradient(180deg, #2C4FD4 0%, #16308F 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .cs-hero { padding: 96px 16px 120px; }
    .cs-wrap { padding: 0 16px 44px; margin-top: -86px; }
    .cs-card { padding: 20px 18px 24px; border-radius: 14px; }
    .cs-row-2 { grid-template-columns: 1fr; gap: 18px; }
    .cs-field input, .cs-field textarea { padding: 13px 14px; font-size: 14.5px; }
    .cs-field textarea { min-height: 130px; }
    .cs-btn { padding: 14px 18px; font-size: 14.5px; }
    .cs-captcha-img img { height: 48px; }
}
