@media (min-width: 768px ) {
    .scrollable-container {
        overflow: auto; /* Enable scroll if content exceeds the div size */
        max-height: 832px;
        height: 80vh;
        flex: 1;
        background-color: var(--cream);
        border-radius: 24px 0 0 24px; /* Top-left, Top-right, Bottom-right, Bottom-left */
        padding: 80px 20px 20px 60px;
    }

    .fixed-width-900 { /* This applies only for large screens */
        width: 900px;
    }

    body {
        background-color: var(--white);
    }

    .btm-row-container {
        display: flex;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding-bottom: 0;
    }

    .midi-h1 {
        font-size: 36px !important;
        line-height: 120% !important;
        font-weight: 500 !important;
    }

    .midi-toast .toast {
        position: fixed;
        bottom: 90px;
        z-index: 11;
    }
}

@media (max-width: 768px) {
    .scrollable-container {
        margin-top: 20px;
        padding-left: 24px !important;
        padding-right: 24px !important;
        padding-top: 20px;
        padding-bottom: 120px !important;
        border-radius: 24px 0 0 24px; /* Top-left, Top-right, Bottom-right, Bottom-left */
    }

    .registration-container {
        margin: 0 !important;
    }

    body {
        background-color: var(--cream);
    }

    .btm-row-container {
        display: flex;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding-bottom: 16px;
    }

    .midi-h1 {
        font-size: 28px !important;
        line-height: 120% !important;
        font-weight: 500 !important;
    }

    .midi-toast .toast {
        position: fixed;
        bottom: 120px;
        z-index: 11;
    }
}

@media (max-width: 1200px) {
  .grecaptcha-badge {
    bottom: 90px !important;
  }
}
.registration-outer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.registration-container {
    display: flex;
    max-width: 944px;
    max-height: 832px;
    margin: 24px 16px;
    height: 80vh !important;
}

.registration-container .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


.btm-row-container .row {
    max-width: 980px;
    width: 100%;
    display: flex;
    align-items: center;
}

input[type="text"], .form-control {
    border-color: #B8B6B6;
}

select, option {
    text-overflow: ellipsis;
}

#sex_assigned_at_birth_info {
    position: relative;
    top: 3px;
}

.midi-textbox-top {
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.form-floating:has(.midi-textbox-top:focus-visible) + .form-floating .midi-textbox-bottom {
    border-top: 0;
}

.midi-floating-label {
    top: 2px !important;
}

.midi-input {
    padding-bottom: .1rem !important;
}

.midi-invalid-feedback {
    display: block;
    width: 100%;
    margin-top: .25rem;
    font-size: 14px;
    color: #dc3545;
}

.midi-textbox-bottom {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.form-control:focus {
    border: 1px solid var(--dark-blue); 
    box-shadow: none;
}

.form-control.is-invalid:focus {
    border: 1px solid var(--dark-blue) !important;
    box-shadow: none !important;
}

.floating-label {
    color: var(--placeholder-text-color);
    opacity: 1 !important;
    font-size: 16px;
}

.form-section-title {
    font-family: var(--body-font-bold);
    font-size: 16px;
    font-weight: 600;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-bottom: 0;
    line-height: 1.5;
}

.label-icon-right {
    padding-left: 14px;
}

.radio-box {
    display: flex;
    align-items: center;
    border: 1px solid #B8B6B6; /* Bootstrap's default border color */
    box-shadow: none;
    height: 48px;
    border-radius: 4px;
    padding: 5px;
    width: 100%;
}

.radio-box input[type="text"] {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 16px;
    height: 40px;
    color: black;
}

.radio-box .form-control:disabled {
    background-color: #fff;
}

.radio-input {
    cursor: pointer;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    margin-right: 10px !important;
    color: #B8B6B6;
}


.sticky-bottom-row .form-group {
    padding-right: 0 !important;
    padding-left: 0 !important;
}


/*=====================*/

.hero-img-parent {
    display: flex !important;
    max-height: 832px;
    height: 80vh;
}

/* Right Side (Image with text and logo) */
.hero-img {
    flex: 1;
    background-image: url("/static/images/registration-hero.b5410ca34e03.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 24px 24px 0; /* Top-left, Top-right, Bottom-right, Bottom-left */
}


/* Right Side (Image with text and logo) */
.error-img {
    flex: 1;
    background-image: url("/static/images/failure_image.36b87a5061f6.png");
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 24px 24px 0; /* Top-left, Top-right, Bottom-right, Bottom-left */
}

.text-logo-container {
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* Vertically stacked text (testimonial and author) */
.text-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-right: 12px; /* Add space between text and logo */
    text-align: center;
    margin-left: 40px; /* Add empty space equal to logo's width */
}

.testimonial {
    font-weight: 600;
    color: white;
    font-family: var(--heading-font-bold);
    font-size: 24px;
    line-height: 120%;
}

.author {
    font-size: 14px;
    color: white;
    font-family: var(--body-font-bold);
    line-height: 120%;
    letter-spacing: 2px;
}

/* Logo with padding */
.registration-logo {
    margin-left: 12px;
    margin-bottom: 1.2rem;
}

/*============================= Additional CSS to handle bootstrap-select package ========================================*/
#referred_by_sub_category-inner-div > div > button {
    border-color: #B8B6B6;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    background-color: #FFFFFF;
    /* Adding caret symbol to the selectbox */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;

}

#referred_by_sub_category-inner-div > div > button:active, #referred_by_sub_category-inner-div > div > button:focus {
    text-decoration: none;
    background-color: #fff !important;
    border-color: blue;
}

#referred_by_sub_category-inner-div > div > button:hover {
    text-decoration: none;
    background-color: #fff !important;
}

.bootstrap-select .dropdown-toggle:focus, .bootstrap-select > select.mobile-device:focus + .dropdown-toggle {
    outline: none !important;
    text-decoration: none !important;
    background-color: #fff !important;
}

/* Disable default caret symbol of selectbox added as part of bootstrap selectbox widget */
.dropdown-toggle::after {
    display: flex;
    margin-left: 0;
    vertical-align: 0;
    content: "";
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
}

.midi-pricing-card {
    border-radius: 12px;
    background-color: var(--cream-100);
    padding: 20px 16px;
}
