/* 1. FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Plus+Jakarta+Sans:wght@500;600;700&family=Poppins:wght@600&display=swap');

:root {
    --primary-blue: #2665ce;
    --primary-hover: #1f56b3;
    --text-dark: #0a1b33;
    --text-muted: #6e6e75;
    --border-gray: #cad6e1;
    --bg-hover: #f0f7ff;
    --white: #ffffff;
    --success-green: #28a745;
    --success-bg: #e6f4ea;
}

* {
    box-sizing: border-box;
}

/* --- BASE --- */
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
    min-height: 100vh; /* THIS is key */
}
.main-content {
    padding: 0 20px;
    flex: 1;
}
/* --- NAVBAR --- */
.navbar {
    background-color: var(--primary-blue);
    height: 70px;
    width: 100%;
}


.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 5fr auto 0fr; 
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo-wrapper {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.nav-logo {
    width: 150px;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.disclosures {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    opacity: 0.9;
}

.disclosures:hover {
    opacity: 1;
}

/* --- PROGRESS BAR (Functional) --- */
.progress-wrapper {
    width: 180px;
    height: 8px;
    background-color: #eef2f6;
    border-radius: 10px;
    margin: 0 auto 30px auto;
    overflow: hidden;
}

.progress-bar {
    width: 10%; /* Initial state controlled by JS */
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), #4a8cff);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- CONTAINERS --- */
.container, .thank-you-container {
    max-width: 1100px; 
    margin: 40px auto 80px auto;
    padding: 0;
    text-align: center;
}

.container { 
    max-width: 600px; 
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* --- STEP TRANSITIONS (Crucial for JS) --- */
.form-step {
    display: none;
    opacity: 0;
    transform: translateY(15px);
}

.form-step.active {
    display: block;
    animation: fadeSlide 0.35s ease forwards;
}
/* --- INPUTS --- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--border-gray);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    background-color: var(--white);
}

input:focus, select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(38, 101, 206, 0.1); /* Subtle blue glow */
}

/* --- CHECKBOX & LABELS --- */
label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-top: 15px;
    cursor: pointer;
}

input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}
@keyframes fadeSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HEADINGS --- */
h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(32px, 5vw, 44px);
    margin-bottom: 25px;
    line-height: 1.2;
}

.thanks-page-heading {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(36px, 8vw, 65px);
}

/* --- SUCCESS ICON ANIMATION --- */
.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--success-bg);
    color: var(--success-green);
    font-size: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- TWO COLUMN LAYOUT (Thank You Page) --- */
.two-col-row {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    align-items: flex-start;
    text-align: left;
}

.col-left {
    flex: 1;
    background: var(--white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-gray);
}

.col-right {
    flex: 1.5;
    width: 100%;
}

/* --- CALENDLY FIX (No Scrollbars) --- */
.col-right .calendly-inline-widget {
    width: 100%;
    height: 750px !important; 
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-gray);
}

/* --- FORM ELEMENTS --- */
.type-btn, .submit-btn {
    width: 100%;
    padding: 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-btn {
    background: var(--white);
    border: 2px solid var(--border-gray);
    margin-bottom: 12px;
}

.type-btn:hover {
    border-color: var(--primary-blue);
    background-color: var(--bg-hover);
    transform: translateY(-2px);
}

.submit-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    margin-top: 20px;
}

/* --- CONTACT BAR --- */
.contact-info-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    font-weight: 600;
}

.contact-item a { color: var(--primary-blue); text-decoration: none; }
/* --- FOOTER --- */
.footer {
    width: 100%;
    padding: 0px 0;
    background: #fff;
    text-align: center;
}

.footer-links a {
    margin: 0 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.disclaimer {
    font-size: 12px;
    margin-top: 10px;
    padding: 20px 20px;
    color: #777;
    border-top: 1px solid #eee;
}
.thank-you-container {
    max-width: 1000px; /* Widened to fit Calendar and Text side-by-side */
    margin: 60px auto 120px auto;
    padding: 0 ;
    text-align: center;
}
.thank-row{
    padding: 0 20px;
}
/* --- RE
.thank-rowSPONSIVE DESIGN --- */
.checkbox-label {
    display: flex;
    align-items: flex-start; /* important */
    gap: 10px;
    margin-top: 15px;
    text-align: justify;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}
.checkbox-label a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--primary-hover);
}

.checkbox-label input {
    margin-top: 4px; /* aligns checkbox with first line */
    transform: scale(1.1);
    flex-shrink: 0;
}

.checkbox-label span {
    display: block;
}

.prev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;
    font-size: 16px;
    font-weight: 500;

    background-color: white;
    color: #333;
    border: none;
    border-radius: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;

    width: fit-content;
    max-width: 100%;
}

/* Hover effect */
.prev-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

/* Active (click) effect */
.prev-btn:active {
    transform: scale(0.98);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .prev-btn {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .prev-btn {
        font-size: 15px;
        padding: 12px;
        border-radius: 10px;
    }
}
@media (max-width: 992px) {
    .two-col-row { flex-direction: column; align-items: center; }
    .col-left, .col-right { width: 100%; max-width: 650px; }
}

@media (max-width: 600px) {
    .thanks-page-heading { font-size: 32px; }
    .col-right .calendly-inline-widget { height: 950px !important; }
    .contact-info-bar { flex-direction: column; align-items: center; gap: 10px; }
    .footer-links a { font-size: 16px; }
    .disclaimer { text-align: justify; font-size: 12.8; }
    .nav-logo{ width: 112px; }
    /* .logo-wrapper { top: 0%; } */
    .disclosures{ font-size: 14px; }
    .type-btn, .submit-btn{ font-size: 13px; }
    .checkbox-label { font-size: 12px; }
    .navbar-container { grid-template-columns: 6fr auto 0fr; }
    .navbar { height: 60px; }
    h1{ font-size: 1.5rem; margin: 0; padding: 0; margin-bottom: 15px; }
    .progress-wrapper { margin: 0 auto 10px auto; }
}