/* =========================
   BACKDROP / OVERLAY
========================= */

body {
    font-family: 'Oswald', Helvetica, sans-serif !important;
    background-color: black;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

p {
    color: white;
    text-align: center;
    font-size: 18px;
}

/* =========================
   STEP 1 HEADLINE
   ========================= */
#step1-headline {
    text-align: center;
    padding-top: 60px;
    font-size: 61px;
    line-height: 1.3;
    margin: 30px 0;
}

#step1-headline .step-number {
    font-size: 0.9em;
    color: rgb(165, 163, 163);
    font-weight: 200;
    margin-right: 8px;
}

#step1-headline .step-text {
    font-size: 1.2em;
    color: white;
    font-weight: 900;
}

#subtext2 {
    color: white;
}

#openModal {
    font-size: 31px;
}


/* =========================
   VIDEO SECTION
   ========================= */
#video-section {
    display: flex;
    justify-content: center;
    padding: 0 10px;
}

.video-inner {
    width: 100%;
    max-width: 720px;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 12px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================
   BUTTON
   ========================= */
#button-section {
    text-align: center;
    margin: 20px auto;
    max-width: 640px;
}

.custom-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 20px auto;
    width: fit-content;
    max-width: 300px;

    padding: 10px 14px;
    font-family: 'Oswald', Helvetica, sans-serif !important;

    color: #FEFEFE;
    background-color: rgb(54, 96, 162);

    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;

    transition: background-color 0.25s ease;
}

.custom-button:hover {
    background-color: rgb(62, 87, 123);
}

/* =========================
   CALENDLY SECTION
   ========================= */
.custom-calendly-container {
    max-width: 800px;
    width: 90%;
    margin: 40px auto;
    box-sizing: border-box;
    text-align: center;
}

.calendly-heading {
    font-size: clamp(28px, 3vw, 42px);
    font-family: Raleway, Helvetica, sans-serif !important;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: white;
}

#calendly-heading {
    font-weight: normal;
}

.calendly-subtext {
    font-size: 18px;
    line-height: 1.4;
    color: #275ea7;
    font-family: "Fira Sans", Helvetica, sans-serif !important;
    text-align: center;
    margin: 0 0 10px 0;
}

/* =========================
   MODAL OVERLAY
   JS opens it by setting style="display:flex"
========================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
    font-family: 'Oswald', Helvetica, sans-serif;
}

/* =========================
   MODAL BOX (DESKTOP)
========================= */
.modal {
    background: #fff;
    max-width: 420px;
    width: 90%;
    padding: 30px 25px;
    border-radius: 15px;
    position: relative;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Raleway', Helvetica, sans-serif;
    overflow: hidden;
}

/* =========================
   CLOSE BUTTON
========================= */
.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #888;
}

.modal-close:hover {
    color: #000;
}

/* =========================
   PROGRESS BAR
========================= */
.modal-progress {
    width: 100%;
    height: 24px;
    background: #eee;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.modal-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(270deg, #1e50a0, #3b567f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

#progressText {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 2;
}

/* =========================
   MODAL TITLE
========================= */
.modal h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 900;
    color: #1e50a0;
}

/* =========================
   MODAL INPUTS
========================= */
.modal input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.modal input::placeholder {
    color: #aaa;
}

/* =========================
   MODAL SUBMIT BUTTON
========================= */
.modal button {
    width: 100%;
    padding: 14px;
    background: #1e50a0;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.25s ease;
}

.modal button:hover {
    background-color: #3b567f;
}

/* =========================
   MODAL FOOTER TEXT
========================= */
.modal small {
    display: block;
    margin-top: 12px;
    font-size: 11px;
    color: #888;
    text-align: center;
}

.cta-text {
    text-align: center;
    margin: 25px auto;
    max-width: 600px;
    padding: 0 15px;
}

.cta-main {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 6px 0;
}

.cta-sub {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
}

/* =========================
   MOBILE OPTIMIZATION (tablets & large phones)
========================= */
@media only screen and (max-width: 770px) {

    .video-inner {
        width: 100%;
    }

    .custom-button {
        font-size: 16px;
        padding: 5px 9px 9px;
    }

    .custom-calendly-container {
        width: 95%;
    }

    .calendly-subtext {
        font-size: 16px;
    }

    .calendly-widget-wrapper {
        min-height: 900px;
    }

    .calendly-inline-widget {
        height: 900px !important;
        min-height: 900px !important;
    }
}

/* =========================
   PHONE OPTIMIZATION (iPhone, Samsung Galaxy, ~360–430px)
========================= */
@media only screen and (max-width: 480px) {

    #step1-headline {
        font-size: 8vw;
        padding-top: 36px;
        margin: 16px 10px;
    }

    .calendly-heading {
        font-size: 7vw;
        line-height: 1.3;
    }

    .custom-button {
        font-size: 5vw;
        padding: 14px 20px;
        max-width: 85%;
        width: 85%;
    }

    #underline-text {
        font-size: 4.5vw;
        color: white;
        text-align: center;
        padding: 0 16px;
        line-height: 1.6;
    }

    .modal-overlay {
        align-items: flex-end;
    }

    .modal {
        width: 100%;
        max-width: 100%;
        height: 92dvh;
        border-radius: 20px 20px 0 0;
        padding: 50px 24px 36px;
        overflow-y: auto;
    }

    .modal h2 {
        font-size: 8vw;
        margin-bottom: 24px;
    }

    .modal input {
        font-size: 5vw;
        padding: 4.5vw 3.5vw;
        margin: 10px 0;
        border-radius: 12px;
    }

    .modal button {
        font-size: 6vw;
        padding: 5vw;
        margin-top: 16px;
        border-radius: 14px;
    }

    .modal small {
        font-size: 3.5vw;
        margin-top: 14px;
    }

    .modal-close {
        font-size: 9vw;
        top: 16px;
        right: 18px;
    }
}