.registration-modal-wrapper {
    display: flex;
    background-color: var(--avoxa-anthrazit);
    background-image: url("../images/AdobeStock_961563422.png");
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 200px;
    user-select: none;
}

/* Centered Registration Modal */
.registration-modal {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 979px;
    margin: 40px auto;
    /* Center the modal properly */
    background: var(--white);
    box-shadow: 0px 20px 26px var(--custom-shadow-color);
    border-radius: 10px;
    text-align: left;
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-self: center;
    align-items: center; /* center H1/brand while description can override */
    margin-top: 40px;

    width: 90%;
}

.modal-header .logo svg {
    width: 100%;
    height: auto;
    display: block;
}

.modal-header .logo {
    align-self: center;
    display: flex;
    width: 100%;
    height: auto;
    justify-self: center;
    justify-content: center;
    max-width: 300px; /* allow the brand text more room */
}

.modal-header h2 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--avoxa-anthrazit);
}

.modal-header .brand-text {
    font-size: 28px; 
    font-weight: 700;
    color: var(--avoxa-anthrazit);
    margin-bottom: 10px;
}

.modal-header h1 {
    font-size: 40px; 
    font-weight: bold;
    margin-bottom: 16px; 
    color: var(--avoxa-anthrazit);
}

.modal-header h2.custom-h2 {
    font-size: 32px;
}

.modal-header h3.custom-h3 {
    font-size: 24px;
}

.modal-header .description {
    font-size: 16px;
    color: var(--avoxa-anthrazit);
    margin-bottom: 30px;
    width: 90%;
    align-self: center;
    text-align: left;
}

/* Form Layout */
.registration-form {
    display: flex;
    flex-direction: column;
    align-self: center;
    width: 90%;
}

.form-columns {
    display: flex;
    justify-content: space-between;
    color: var(--avoxa-anthrazit);
    font-size: 14px;
}

.left-column,
.right-column {
    width: 47%;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.input-group label {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.input-group input,
.input-group select,
input[name="captcha"] {
    width: 100%;
    padding-left: 20px;
    border: none;
    border-radius: 15px;
    background-color: var(--avoxa-background-color) !important;
    height: 51px;
    font-size: 16px;
}

/* Submit Button */
.submit-button {
    background-color: var(--avoxa-red);
    color: var(--white);
    border: none;
    width: 98px;
    height: 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    align-self: flex-end;
    margin: 42px 0;
    transition: background-color 0.33s ease;
}

.submit-button:hover {
    background: var(--avoxa-anthrazit);
}

.custom-dropdown {
    position: relative;
    width: 100%;
    background-color: var(--avoxa-background-color);
    border: none;
    border-radius: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    font-size: 16px;
    height: 51px;
    cursor: pointer;
}

.custom-dropdown.open {
    /* border: 1px solid #4d90fe;*/
    /* Change border color when open */
    box-shadow: inset 0px 3px 5px var(--custom-shadow-color);
}

.dropdown-selected {
    width: 100%;
    height: 100%;
    display: flex;

    align-items: center;
    /* Centers vertically */
    padding-left: 30px;
}

.dropdown-options {
    margin-top: 10px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--avoxa-background-color);
    border-radius: 20px;
    box-shadow: 0px 20px 35px var(--custom-shadow-color);
    border: 1px var(--avoxa-gray-4) solid;
    z-index: 2;
    max-height:420px;
    overflow-y: auto;

    scrollbar-width: thin; /* Firefox */
    scrollbar-color: gray var(--avoxa-background-color); /* Firefox */
}

.dropdown-option {
    padding: 12px 42px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-option:hover {
    background-color: var(--custom-dropdown-hover-bg);
    color: var(--black);
    border-radius: 20px;
}

.custom-dropdown.open .dropdown-options {
    display: block;
}
.dropdown-group-label {
    font-weight: bold;
    padding: 0 25px;
    padding-top: 20px;
    font-size: 14px;
    color: var(--avoxa-anthrazit);
    
    cursor: default;
    user-select: none;
}
/*tooltip css*/
.info-icon {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid var(--avoxa-gray-dark);
    z-index: 1;
    color: var(--avoxa-gray-dark);
}

.info-icon .infoTextLeft,
.info-icon .infoTextRight {
    visibility: hidden;
    width: 200px;
    background-color: var(--tooltip-color);
    color: var(--white);
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    left: 25px;
    min-height: 50px;
    align-content: center;
    text-align: left;
    padding: 12px;
    font-size: 12px;
    line-height: 14px;
}

.info-icon .infoTextRight {
    right: -10px;
    left: unset;
    top: 30px;
}

.info-icon:hover .infoTextLeft,
.info-icon:hover .infoTextRight {
    visibility: visible;
}
.info-icon:hover {
    z-index: 3;
}
.info-icon .infoTextLeft::after {
    /*Arrow*/
    content: " ";
    position: absolute;
    top: 50%;
    right: 100%;
    /* To the left of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent var(--tooltip-color) transparent transparent;
}

.info-icon .infoTextRight::after {
    content: " ";
    position: absolute;
    /* To the left of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    top: -4px;
    left: 87.8%;
    border-color: transparent transparent var(--tooltip-color) transparent;
}

.password-group {
    position: relative;
}

.password-group input {
    padding-right: 94px;
}

.toggle-password {
    position: absolute;
    right: 40px;
    top: 70%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}

.eye-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.eye-hidden {
    display: none;
}

/*fixes issue where autofilled fields were blue color..*/
input:-webkit-autofill {
    background-color: var(--white) !important;
    color: var(--black);
    transition: background-color 5000s ease-in-out 0s;
    /* Prevents flicker */
}

input:-moz-autofill {
    background-color: var(--white) !important;
    /* for Firefox */
    color: var(--black);
}

input:-ms-autofill {
    background-color: var(--white) !important;
    /* for Edge */
    color: var(--black);
}

.captchaIMG {
    display: flex;
    margin-top: 0;
    margin-bottom: 5px;
    border-radius: 10px;
}

.product-teaser {
    width: 100%;
    margin: 0 auto 30px auto;
}

.product-teaser-content {
    display: block !important;
    width: 100%;
    color: var(--avoxa-anthrazit);
    text-align: left;
}

.product-teaser-content::after {
    content: "";
    display: table;
    clear: both;
}

.product-image {
    float: right;
    width: 150px;
    height: auto;
    margin: 0 0 10px 20px;
    order: initial;
    flex: initial;
}

.product-teaser-text {
    display: block;
    overflow: visible;
}

/* Global content text styling */
.product-teaser-text p,
.product-teaser-text ul,
.product-teaser-text li,
.ckeditorcontent p,
.ckeditorcontent ul,
.ckeditorcontent li {
    font-size: 18px !important;
}

.product-teaser-text a,
.ckeditorcontent a {
    color: var(--avoxa-red) !important;
    text-decoration: underline;
}

.modal-header h1 {
    text-align: center;
}

.product-image {
    order: 2;
    flex: 0 0 150px;
    width: 150px;
    height: auto;
}

.form-columns {
    display: flex;
    justify-content: space-between;
    color: var(--avoxa-anthrazit);
    font-size: 14px;
}

.left-column {
    width: 48%;
    box-sizing: border-box;
}

.right-column {
    width: 48%;
    box-sizing: border-box;
}

.form-columns { gap: 16px; }


.row-two {
    display: flex;
    gap: 16px;
}

.row-two .half {
    width: 50%;
}
.dropdown-container {
    position: relative;
}

.select-arrow-icon {
    position: absolute;
    right: 40px; 
    top: 70%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    pointer-events: none;
    z-index: 2;
}



@media (max-width: 768px) {
    .registration-modal-wrapper {
        background-image: none;
        margin-top: 74px;
    }
    .registration-modal {
        width: 100%;
        border-radius: 0;
        flex-wrap: wrap;
        flex-direction: row;
        height: fit-content;
        margin: 0;
        box-shadow: unset;
    }
    .modal-header {
        margin-top: 0;
    }

    .left-column,
    .right-column {
        width: 85%;
    }
    .form-columns {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--avoxa-anthrazit);
        font-size: 14px;
    }
    .form-columns > .right-column { order: 0 !important; }
    .form-columns > .left-column { order: 1 !important; }

    /*tooltip css*/
    .info-icon {
        right: 10px;
        top: 70%;
    z-index: 1;
    color: var( --avoxa-gray-dark);
        width: 20px;
    height: 20px;
}
    .info-icon .infoTextLeft {
        right: -10px;
        left: unset;
        top: 30px;
    }

    .info-icon .infoTextRight {
        right: -10px;
        left: unset;
        top: 30px;
    }

    .info-icon .infoTextLeft::after {
        /*Arrow*/
        top: -4px;
        left: 87.8%;
        border-color: transparent transparent var(--tooltip-color) transparent;
    }
    .info-icon .infoTextRight::after {
        /*Arrow*/
        top: -4px;
        left: 87.8%;
        border-color: transparent transparent var(--tooltip-color) transparent;
    }
    .info-icon::before {
        content: "";
        position: absolute;
        top: -10px;
        right: -10px;
        bottom: -10px;
        left: -10px;
    }
    .modal-header {
        width: 100%;
    }

    .submit-button {
        width: 98px;
        height: 40px;

        align-self: center;
        margin-top: 70px;
        transition: background-color 0.33s ease;
        margin-bottom: 70px;
    }

    .modal-header .logo svg {
        width: 100%;
    }
    .modal-header .logo {
    margin-bottom: 30px;
    display: flex; 
    }

    .modal-header h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .modal-header .description {
        margin-bottom: 30px;
        width: 80%;
    }
    .registration-form {
        width: 100%;
    }

    input[name="captcha"] {
        /* Your styles here */
        font-size: 16px;
        border: none;
        background-color: var(--avoxa-background-color);
        border-radius: 20px;
        height: 51px;
        width: 85%;
        align-self: center;
    }
    .captchaIMG {
        display: flex;
        margin-top: 0;
        margin-bottom: 5px;
        border-radius: 10px;
        width: 85%;
        align-self: center;
    }

    .product-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    align-self: center;
    min-height: 269px;
    margin-bottom: 45px;
    }

    .product-content-left {
    width: 85%;
    flex: 1;
    text-align: center;
    margin-right: unset;
    }

    .product-content-right {
        margin-top: 20px;
        width: 85%;
        flex: 1;
        display: flex;
        justify-content: flex-end;
        padding: 0;
        margin-left: unset;
    }
    .product-image {
        width: 100%;
    }

    .product-teaser {
        width: 80%;
    }

    .product-teaser-content {
        flex-direction: column;
        align-items: center;
    }
    .product-teaser-content .product-image {
        order: 0;
        width: 100%;
        max-width: none;
        margin-bottom: 12px;
    }

    .dropdown-options {
        max-height:calc(42vw + 220px);    
    }


    .product-teaser-content,
    .product-teaser {
        display: block !important;
        overflow: visible !important;
    }

   
    .product-image {
        float: right;
        width: 140px;        
        max-width: 30%;
        height: auto;
        margin: 0 0 10px 20px; 
    }


    .product-teaser-text {
        display: block;
    }
}
