﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-family), sans-serif;
    font-size: var(--font-size);
    font-weight: var(--font-weight);
    color: var(--text-color);
    background: transparent;
    position: relative;
    overflow: hidden;
    background-color: var(--page-color-alternate);
    display: flex;
    flex-direction: column; /* Make the body a flex container in column direction */
    min-height: 100vh; /* Ensure the body takes up the full height of the viewport*/
}

/* Header Styles */
h1 {
    text-align: center;
    font-size: 40px;
    margin-top: 0px;
    padding: 10px;
    color: var(--font-color-h1, #ffffff);
    background-color: var(--primary-color);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

    h1 .highlight {
        color: var(--highlight-color);
    }

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scroll-bar-color);
}

/* For Firefox */
.scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-bar-color) var(--scroll-bar-color);
}


.error-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.warning-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    font-size: 16px;
    text-align: justify;
}

/* Loader Styles */
.loader-overlay-ab {
    position: absolute;
    width: 100%;
    background-color: transparent;
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0 auto;
}

.loader {
    border: 3px solid rgba(0, 0, 0, 0.5);
    border-top: 3px solid var(--cta-text-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 2s linear infinite;
    position: relative;
    /*top: 40%;
    left: 48%;*/
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
}

/* Show the loader when loading */
button.loading .loader {
    display: block; /* Show loader */
}

/* When the button is loading, hide the button text */
/*button.loading span {*/
/*content: 'Processing...';*/
/*visibility: hidden;
}*/

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.check-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    width: var(--subscription-management-checkbox-width)
}

    .check-box input {
        width: auto !important;
        font-size: 1.2em;
    }

.grecaptcha-badge {
    visibility: hidden !important;
}


/* Modern Select Styling */
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path fill="%23ccc" d="M0 0l5 5 5-5H0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

    select:focus {
        border-color: var(--primary-color);
        outline: none;
    }

.grecaptcha-badge {
    visibility: hidden !important;
}

.red {
    color: red !important;
}

.centered-text {
    text-align: center;
}

.centered-container {
    display: flex;
    justify-content: center;
}

.icon {
    line-height: 1.45;
    background: #c31b4c;
    border: 1px solid #c31b4c;
    border-radius: 100%;
    padding: 10px;
    box-shadow: 0 0 0 5px #fff inset;
    box-sizing: border-box;
}

    .icon a, .icon span {
        display: flex
    }

    .icon .icon-svg {
        border: 1px solid #c31b4c;
        box-shadow: 0 0 0 2px #fff inset;
        width: 35px;
        line-height: 35px;
        font-size: 20px; /* Control the size using font-size */
        text-align: center;
        background: #c31b4c;
        color: white !important;
        width: 1em; /* Width based on font size */
        height: 1em;
        border-radius: 100%;
        padding: 6.5px;
    }

        .icon .icon-svg svg {
            position: relative;
            bottom: 3.5px;
            right: 0;
        }

#payment-info h1 {
    font-size: var(--payment-info-form-h1-size) !important;
    text-align: var(--payment-info-form-text-align) !important;
}

.img-header-left {
    display: none;
    height: var(--header-images-size);
}

.img-header-right {
    display: none;
    height: var(--header-images-size);
}

.img-footer-left {
    display: none;
    bottom: 0;
    height: 140px;
}

.img-footer-right {
    display: none;
    bottom: 0;
    height: 140px;
}

.img-footer {
    width: 100%;
    display: none;
    bottom: 0;
}


.two-img-bar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: var(--header-container-height);
}

.img-header-single {
    background-image: var(--header-background-image);
    width: 100%;
    height: var(--header-background-image-height);
}

.two-img-bar-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: var(--two-img-bar-footer-position);
    bottom: var(--two-img-bar-footer-bottom);
    left: var(--two-img-bar-footer-left);
    width: var(--two-img-bar-footer-width);
    z-index: var(--two-img-bar-footer-zindex);
    pointer-events: var(--two-img-bar-footer-pointer-events);
}

.div-footer-single {
    background-color: #262262;
    height: 60px;
    width: 100%;
}

/* Small devices (phones, max-width: 576px) */
@media only screen and (max-width: 576px) {
    .img-header-left, .img-header-right {
        max-width: var(--media-small-img-header-max-width);
        max-height: var(--media-small-img-header-max-height);
    }

    .img-footer-left {
        max-height: var(--media-small-img-footer-left-max-height);
    }

    .img-footer-right {
        max-height: var(--media-small-img-footer-right-max-height);
    }

    .button-left {
        position: unset !important;
        left: unset !important;
    }

    .toggle-skip-container {
        flex-direction: column !important;
        gap: var(--media-small-toggle-skip-container-gap, 1em);
        border-bottom-left-radius: var(--media-small-toggle-skip-container-border-bottom-left-radius) !important;
    }

    .toggle-label-callout {
        font-size: var(--media-small-toggle-label-callout-font-size, 12px) !important;
    }

    .button-right {
        position: unset !important;
        right: unset !important;
    }

    .two-img-bar-header {
        height: var(--calculated-small-container-height);
    }

    .button-float-left {
        float: unset !important;
        margin-left: unset !important;
    }

    #confirm-enrollment {
        padding: 40px !important;
    }

    .container {
        padding-left: var(--media-small-product-container-padding-left, 20px) !important;
        padding-right: var(--media-small-product-container-padding-right, 20px) !important;
    }

    iframe {
        width: 350px;
    }

    .form-action {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .product .caption {
        width: var(--card-caption-small-width);
    }

    .form-main-container {
        flex-direction: column;
        align-items: center;
    }

        .form-main-container .form-left-content-container {
            width: var(--media-small-form-left-container-width) !important;
        }

        .form-main-container .form-right-content-container {
            width: var(--media-small-form-right-container-width) !important;
        }

    .form-left-content-container h1 {
        margin-top: 50px !important;
    }

    .enrollment-form-container {
        width: var(--media-small-enrollment-form-container) !important;
    }

    .blocked-message {
        height: 22% !important;
        font-size: 14px !important;
        padding: 15px !important;
    }

        .blocked-message span {
            width: 60% !important;
        }

        .blocked-message button {
            width: 35% !important;
            font-size: 14px !important;
        }

    .toggle-button {
        color: var(--media-small--toggle-font-color) !important;
    }

        .toggle-button.active {
            color: var(--toggle-selected-font-color) !important;
        }

    .product-selection-step .centered-container p {
        color: var(--media-small--header-text-color) !important;
    }
}

/* Medium devices (tablets, min-width: 577px and max-width: 992px) */
@media only screen and (min-width: 577px) and (max-width: 992px) {
    .img-header-left, .img-header-right {
        max-width: var(--media-medium-img-header-max-width) !important;
        max-height: var(--media-medium-img-header-max-height) !important;
    }

    .img-footer-left {
        max-height: var(--media-medium-img-footer-left-max-height);
    }

    .img-footer-right {
        max-height: var(--media-medium-img-footer-right-max-height);
    }

    .container {
        padding-left: var(--media-medium-product-container-padding-left, 40px) !important;
        padding-right: var(--media-medium-product-container-padding-right, 40px) !important;
    }

    .button-float-left {
        float: unset !important;
        margin-left: unset !important;
    }

    #confirm-enrollment {
        padding: 40px !important;
    }

    .toggle-skip-container {
        flex-direction: column !important;
        gap: var(--media-medium-toggle-skip-container-gap, 1em);
        margin-bottom: 50px !important;
    }

    .button-right {
        position: unset !important;
        right: unset !important;
    }

    .button-left {
        position: unset !important;
        left: unset !important;
    }

    .product .caption {
        /*padding: 5px 10px !important;
        top: calc(var(--text-caption-top) + 10px);*/
        width: var(--card-caption-medium-width);
    }

    .form-main-container {
        flex-direction: column;
        align-items: center;
    }

        .form-main-container .form-left-content-container {
            width: var(--media-medium-form-left-container-width) !important;
        }

        .form-main-container .form-right-content-container {
            width: var(--media-medium-form-right-container-width) !important;
        }

    .form-left-content-container h1 {
        margin-top: 75px !important;
    }

    .blocked-message {
        height: 15% !important;
        padding: 15px !important;
    }

        .blocked-message span {
            width: 60% !important;
        }

        .blocked-message button {
            width: 30% !important;
        }
}


/* Large devices (tablets, min-width: 577px and max-width: 992px) */
@media only screen and (min-width: 993px) and (max-width: 1205px) {

    .product .caption {
        /*padding: 4px 10px !important;*/
        width: var(--card-caption-large-width);
    }

    .form-main-container {
        width: 85% !important;
        padding-left: 10%;
    }

        .form-main-container .form-left-content-container {
            width: var(--media-large-form-left-container-width) !important;
        }

        .form-main-container .form-right-content-container {
            width: var(--media-large-form-right-container-width) !important;
        }

    .form-left-content-container h1 {
        margin-top: 125px !important;
    }

    .blocked-message {
        height: 10% !important;
    }

        .blocked-message span {
            width: 75% !important;
        }

        .blocked-message button {
            width: 20% !important;
        }
}

/* Large devices (tablets, min-width: 577px and max-width: 992px) */
@media only screen and (min-width: 1026px) and (max-width: 1421px) {
    .form-main-container {
        width: 85% !important;
        padding-left: 10%;
    }

        .form-main-container .form-left-content-container {
            width: var(--media-xlarge-form-left-container-width) !important;
        }

        .form-main-container .form-right-content-container {
            width: var(--media-xlarge-form-right-container-width) !important;
        }

    .blocked-message span {
        width: 80% !important;
    }

    .blocked-message button {
        width: 15% !important;
    }
}

@media only screen and (min-width: 1422px) and (max-width: 1800px) {
    .blocked-message span {
        width: 80% !important;
    }

    .blocked-message button {
        width: 15% !important;
    }
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* One column on mobile */
@media (max-width: 500px) {
    .form-row {
        flex-direction: column;
        width: 100%;
    }
}

/* Grid layout */
.enroll-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns by default */
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .enroll-grid {
        grid-template-columns: 1fr; /* Stack on small screens */
    }
}

/* Input styling */
#enrollmentForm .input-group input,
#enrollmentForm .input-group select,
#enrollmentForm .input-group textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #CDD7EC;
    box-sizing: border-box;
}

* {
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}