/* BUTTONS COMPONENTS */

.btn-pri-shadow {
    display: flex;
    gap: 10px;
    padding: 10px 18px;
    max-width: 220px;
    min-width: 145px;
    height: 48px;
    justify-content: center;
    border-radius: 12px;
    color: var(--Neutral-N0);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    background: var(--Primary-300);
    border: unset;
    border-right: 5px solid var(--Neutral-N900);
    border-bottom: 5px solid var(--Neutral-N900);
    cursor: pointer;
}

.btn-pri-bshadow {
    display: flex;
    padding: 10px 18px;
    max-width: 200px;
    min-width: 145px;
    justify-content: center;
    border-radius: 12px;
    color: var(--Neutral-N0);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    background: var(--Primary-300);
    border: 1.5px solid var(--Neutral-N900);
    border-right: 5px solid var(--Neutral-N900);
    border-bottom: 5px solid var(--Neutral-N900);
    cursor: pointer;
}

.btn-pri-wbshadow {
    display: flex;
    padding: 10px 18px;
    max-width: 210px;
    min-width: 145px;
    justify-content: center;
    border-radius: 12px;
    color: var(--Neutral-N0);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    background: var(--Neutral-N900);
    border: 1.5px solid var(--Neutral-N0);
    border-right: 5px solid var(--Neutral-N0);
    border-bottom: 5px solid var(--Neutral-N0);
    cursor: pointer;
}

.btn-pri-bshadow:hover,
.btn-pri-wbshadow:hover,
.btn-pri-shadow:hover {
    color: var(--Neutral-N0);
    border: unset;
    border-right: unset;
    border-bottom: unset;
}

.btn-pri {
    display: flex;
    padding: 10px 18px;
    max-width: 210px;
    min-width: 145px;
    gap: 10px;
    justify-content: center;
    border-radius: 12px;
    color: var(--Neutral-N0);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    background: var(--Primary-300);
    border: unset;
    border-right: 5px solid var(--Neutral-N0);
    border-bottom: 5px solid var(--Neutral-N0);
    cursor: pointer;
}

.btn-pri:hover {
    color: var(--Neutral-N0);
    border-right: unset;
    border-bottom: unset;
}

.btn-bg-n {
    display: flex;
    padding: 12px 20px;
    max-width: 210px;
    min-width: 145px;
    gap: 10px;
    justify-content: center;
    border-radius: 12px;
    color: var(--Primary-200);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
}

.btn-bg-n-sm {
    display: flex;
    padding: 14px;
    max-width: 140px;
    min-width: 48px;
    max-height: 48px;
    gap: 8px;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--Neutral-N50);
    color: var(--Neutral-N900);
    background: var(--Neutral-N0);
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
}

.btn-bg-n-sm.active {
    background: var(--Primary-300);
    color: var(--Neutral-N0);
    border: 1px solid var(--Neutral-N900);
    border-right: 5px solid var(--Neutral-N900);
    border-bottom: 5px solid var(--Neutral-N900);
}

.btn-bg-dark {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    max-width: 210px;
    min-width: 145px;
    gap: 10px;
    justify-content: center;
    border-radius: 12px;
    color: var(--Neutral-N0);
    background: var(--Neutral-N900);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
}

.btn-bg-pri {
    display: flex;
    padding: 12px 20px;
    max-width: 210px;
    min-width: 145px;
    gap: 10px;
    justify-content: center;
    border-radius: 12px;
    color: var(--Neutral-N0);
    background: var(--Primary-300);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
}

.pill-btn-pri {
    display: flex;
    padding: 4px 12px;
    max-width: 140px;
    min-width: 70px;
    gap: 10px;
    justify-content: center;
    border: unset;
    border-radius: 10px;
    color: var(--Neutral-N900);
    background: var(--Primary-300);
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
}

/* END OF BUTTONS COMPONENTS */

/* MODAL BLUR */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(37, 34, 34, 0.57);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 9999;
}

.modal-overlay.show {
    display: block;
}

/* END OF MODAL BLUR */

/* FORM MODAL COMPONENTS */
.form-modal {
    display: none;
    flex-direction: column;
    /* justify-content: center; */
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 50%;
    gap: 24px;
    transform: translate(-50%, -50%);
    width: calc(80% - 40px);
    max-width: 745px;
    min-width: 300px;
    height: auto;
    max-height: 95vh;
    overflow-x: hidden;
    padding: 25px;
    border-radius: 20px;
    background: var(--Neutral-N0);
    box-shadow: 0px 20px 24px -4px rgba(16, 24, 40, 0.08), 0px 8px 8px -4px rgba(16, 24, 40, 0.03);
}

.form-modal .head {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.form-modal .head h2 {
    color: var(--Neutral-N900);
    font-family: Montserrat;
    font-size: 30px;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
    flex: 1;
}

.form-modal .head button {
    position: absolute;
    right: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 12px;
    max-width: 140px;
    min-width: 48px;
    max-height: 48px;
    gap: 8px;
    justify-content: center;
    background: var(--Neutral-N0);
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    color: var(--Neutral-N900);
    border-radius: 12px;
    border: 1px solid var(--Neutral-N900);
    border-right: 5px solid var(--Neutral-N900);
    border-bottom: 5px solid var(--Neutral-N900);
}

.form-modal .body {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.form-modal .body form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}


/* END OF FORM MODAL COMPONENTS */

/* FORM DESIGN */
.form-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* flex-wrap: wrap; */
    width: 100%;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.select-toggle,
.form-row input,
.form-row select,
.form-row textarea {
    display: flex;
    width: 100%;
    max-width: 330px;
    height: 56px;
    padding: 16px;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    border: unset;
    background: var(--Primary-50);
    color: var(--Neutral-N900);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
}

.form-row input.wide,
.form-row select.wide,
.form-row textarea.wide {
    max-width: unset;
}

.form-row textarea {
    max-width: 100%;
    height: 185px;
}

.form-row input[type='text']::placeholder,
.form-row input[type='number']::placeholder,
.form-row input[type='email']::placeholder,
.form-row input[type='date']::placeholder,
.form-row textarea {
    /* color: var(--Grey-500); */
}

input:focus,
textarea:focus,
.nice-select:focus-within {
    border: 1px solid var(--Primary-300);
    outline: none;
}

.phone-input {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 330px;
    height: 56px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--Primary-50);
    font-family: Montserrat, sans-serif;
}

.phone-input .flag {
    font-size: 20px;
}

.phone-input .code {
    font-size: 16px;
    font-weight: 500;
    color: var(--Neutral-N900);
}

.phone-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: var(--Neutral-N900);
}

form .form-btn {
    display: flex;
    padding: 16px 28px;
    align-self: center;
    max-width: 207px;
    min-width: 145px;
    height: 60px;
    justify-content: center;
    border-radius: 12px;
    color: var(--Neutral-N0);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    background: var(--Primary-300);
    border-radius: 12px;
    border: 1px solid var(--Neutral-N900);
    border-right: 5px solid var(--Neutral-N900);
    border-bottom: 5px solid var(--Neutral-N900);
}

form .nice-select {
    display: flex;
    width: 100%;
    max-width: 330px;
    height: 56px;
    padding: 16px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 6px;
    border: unset;
    background: var(--Primary-50);
    color: var(--Neutral-N900);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

form .nice-select .current {
    white-space: normal;
}
form .nice-select .list {
    /* width: 100%; */
}

/* Overall container for the dropdown */
.dropdown-container {
    width: 330px;
    position: relative;
    /* This is key for positioning the dropdown content */
}

/* Style for the button that opens the dropdown */
.select-toggle {
    /* background-color: #333;
    color: #aaa;
    font-size: 18px;
    padding: 15px 20px;
    width: 100%;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
}

/* Container for the hidden checkbox list */
.dropdown-content {
    display: none;
    /* Initially hides the content */
    position: absolute;
    top: 100%;
    /* Positions the dropdown right below the button */
    left: 0;
    width: 100%;
    background-color: #555;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Show the dropdown content when the 'show' class is present */
.dropdown-content.show {
    display: block;
}

/* --- Styles from the previous response for the checkbox list --- */

.checkbox-list {
    padding: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #666;
    color: #fff;
}

.checkbox-item:last-child {
    border-bottom: none;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-item label {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-grow: 1;
    position: relative;
}

.checkbox-item label:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #999;
    background-color: #666;
    border-radius: 5px;
    margin-right: 15px;
    transition: all 0.2s ease-in-out;
}

/* Styling for the checked state */
.checkbox-item input[type="checkbox"]:checked+label:before {
    background-color: var(--Primary-300);
    border-color: var(--Primary-300);
}

/* New CSS to account for the HTML change */
.checkbox-item input[type="checkbox"]:checked~label:before {
    background-color: var(--Primary-300);
    border-color: var(--Primary-300);
}

/* Add a custom checkmark for the checked state */
.checkbox-item input[type="checkbox"]:checked+label:after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 15px;
    /* Adjust position for the new order */
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
}

/* New CSS for the Checkmark */
.checkbox-item input[type="checkbox"]:checked~label:after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 15px;
    /* Adjust position for the new order */
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
}

.form-col input[type="checkbox"]:checked {
    background-color: var(--Primary-300);
    border-color: var(--Primary-300);
}

/* END OF FORM DESIGN */

/* NEWSLETTER SECTION */
.newsletter-section {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 50px 100px;
}

.newsletter-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 467px;
    gap: 32px;
    align-items: center;
    background: url('../images/newsletter-bg.png'), radial-gradient(85.94% 85.94% at 90.64% 7.81%, #FF9937 0%, #FE6A2E 89.5%);
    background-size: cover;
    border-radius: 60px;
}

.newsletter-container .content,
.newsletter-container .action {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.newsletter-container .content h2 {
    color: var(--Neutral-N900);
    font-family: Clash Display;
    font-size: 42px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: -1%;
}

.newsletter-container .content p {
    color: var(--Neutral-N900);
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    max-width: 768px;
}

.newsletter-container .action {
    gap: 16px;
}

.newsletter-container .action form {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
}

.newsletter-container .action form input {
    display: flex;
    width: 100%;
    width: 384px;
    height: 40px;
    padding: 8px 12px;
    gap: 8px;
    align-self: stretch;
    border-radius: 12px;
    border: 1px solid var(--Neutral-N900);
    background: transparent;
    color: var(--Neutral-N900);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.newsletter-container .action form input::placeholder {
    color: var(--Grey-500);
}

.newsletter-container .action form button {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 12px;
    border: 1px solid var(--Neutral-N900);
    width: 115px;
    height: 44px;
    color: var(--Neutral-N0);
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.newsletter-container .action span {
    color: var(--Neutral-N900);
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.newsletter-container .action a {
    text-decoration: underline;
    color: var(--Neutral-N900);
}


/* END OF NEWSLETTER SECTION */


/* MOBILE RESPONSIVE  */

@media only screen and (max-width: 1122px) {
    .form-modal {
        justify-content: unset;
        width: calc(100% - 30px);
        max-height: 80vh;
    }

    .form-modal .head h2 {
        font-size: 22px;
        line-height: 30px;
        font-weight: 600;
    }

    .form-modal .head button {
        min-width: 40px;
        max-height: 40px;
        font-size: 14px;
        line-height: 20px;
    }

    .newsletter-section {
        padding: 0px 10px 50px;
    }

    .newsletter-container {
        border-radius: 40px;
        padding: 10px;
    }

    .newsletter-container .content h2 {
        font-size: 36px;
    }

    .newsletter-container .content p {
        font-size: 16px;
        line-height: 24px;
    }

    .newsletter-container .action {
        width: 100%;
    }

    .newsletter-container .action form {
        flex-direction: column;
    }

    .newsletter-container .action form input,
    .newsletter-container .action form button {
        width: 50%;
        height: 56px;
        align-self: center;
    }
}


@media only screen and (max-width: 700px) {

    .newsletter-container .action form input,
    .newsletter-container .action form button {
        width: 100%;
    }
}

@media only screen and (max-width: 650px) {
    .form-row {
        flex-wrap: wrap;
    }

    .dropdown-container {
        width: 100%;
    }

    .select-toggle,
    .phone-input,
    form .nice-select,
    .form-row input,
    .form-row select,
    .form-row textarea {
        max-width: 100%;
    }
}

/* END OF MOBILE RESPONSIVE  */