:root {
    --primary-color: #000;
    --secondary-color: #333;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #555;
    --border-color: #ddd;
    --border-radius: 30px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --font-size-sm: 0.9rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    min-height: 100vh;
    background: #fff;
}

.header {
    padding: var(--spacing-sm) var(--spacing-lg);
    width: 100%;
    z-index: 100;
    background: #fff;
}

.header__logo {
    width: auto;
    padding-bottom: 30px;
    width: auto;
}

.header__logo img {
    width: 37%;
    object-fit: contain;
}

.main {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px var(--spacing-lg) var(--spacing-lg);
    padding-bottom: 0px;
}

.container {
    display: flex;
    align-items: stretch;
    gap: 5em;
    width: 100%;
    max-width: 1200px;
    height: 95vh;
}

.form-section {
    flex: 1;
    /* padding: var(--spacing-lg) 0; */
}

.form-section__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
}

.form-section__subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.2rem;
}



.form-group {
    margin-bottom: var(--spacing-md);
}



.form-group__label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.form-group__input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-md);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group__input:focus {
    border-color: var(--primary-color);
}

.form-group__input::placeholder {
    color: #999;
}

.mandatory {
    color: red;
}

/* Select styling */
select.form-group__input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* Date input styling 
input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    background-image: url('/assets/icons/calendar.svg');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    width: 100%;
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    right: 1rem;
}
*/
/* Terms section */
.terms {
    margin: var(--spacing-md) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    justify-content: center;
}

.terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
}

.terms label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    cursor: pointer;
}

/* Extra options for login */
.extra-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.stay-signed-in {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.stay-signed-in input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

/* Button styling */
.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    width: 15em;
    font-size: var(--font-size-md);
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 500;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.btn:hover {
    background: var(--secondary-color);
}

/* Login/Signup link */
.login-link {
    text-align: center;
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Image section */
.image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: var(--spacing-lg) 0; */
    position: relative;
    overflow: hidden;
    /* min-height: 600px; */
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 95%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Phone input specific styles */
.iti {
    width: 100% !important;
}

/* Responsive visibility classes */
.lg-none {
    display: none;
}



/* image radius */
.carousel-slide img {
    position: relative;
}

.img-radius-sec {
    position: absolute;
    width: 6em;
    height: 6em;
    background: white;
}

.img-radius-1 {
    top: 0;
    left: 0;
    border-bottom-right-radius: 55px;

}

.img-radius-2 {
    right: 0;
    bottom: -1px;
    border-top-left-radius: 55px;

}


.img-radius-1::after,
.img-radius-1::before,
.img-radius-2::before,
.img-radius-2::after {
    content: '';
    position: absolute;
    width: 4em;
    height: 4em;
    background: transparent;
    z-index: 1;
}

/* ---- */
.img-radius-1::before {
    right: -62px;
    top: 0;
    border-top-left-radius: 50%;
    box-shadow: -10px -8px 0px white;

}

.img-radius-2::after {
    right: 0;
    bottom: 94px;
    border-bottom-right-radius: 50%;
    box-shadow: 9px 7px 0px white;

}

/* ---- */
.img-radius-1::after {
    top: 95px;
    left: 0;
    border-top-left-radius: 50%;
    box-shadow: -10px -8px 0px white;
}

.img-radius-2::before {
    bottom: 0;
    right: 94px;
    border-bottom-right-radius: 50%;
    box-shadow: 9px 7px 0px white;

}

.error-message {
    color: red;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

form.form {
    padding-bottom: 20px;
    max-height: 65vh;
    overflow: auto;
    padding-right: 15px;
}

/* image radius end */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Handle (scroll thumb) */
::-webkit-scrollbar-thumb {
    background: #888;
    /* Dark gray */
    border-radius: 10px;
}

.container.new-forms {
    margin: 0 auto;
}

.form-sub {
    display: flex;
}

.container.new-forms .terms label {
    text-align: justify;
    display: block;

}

.container.new-forms h3.form-section__main-title {
    padding-bottom: 23px;
}

.container.new-forms .terms {
    align-items: start;
            margin-top: 0px;
}

.form-section.w_forms .form-grid {
    display: grid;
    grid-template-columns: none;
    gap: 0 1.2rem;
}

.form-section.w_forms h3.form-section__main-title {
    padding-bottom: 20px;
}

.form-section.w_forms .form-group p {
    font-size: 14px;
}

@media (max-width: 1400px) {
    form.form {
        padding-bottom: 20px;
        max-height: 50vh;
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .container {
        gap: 3em;
    }

    .carousel-slide img {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 0 var(--spacing-lg);
        min-height: auto;
    }

    .container {
        flex-direction: column;
        gap: 0;
    }

    .image-section {
        /* min-height: 300px; */
        /* padding: var(--spacing-sm) 0; */
        order: 1;
        overflow: visible;
    }

    .form-section__subtitle {
        margin-bottom: .5em;
    }

    .carousel,
    .carousel-inner,
    .carousel-slide {
        height: 300px;
    }

    .carousel-slide img {
        max-height: 300px;
        width: 100%;
        object-fit: cover;
    }

    .form-section {
        order: 2;
        padding: var(--spacing-sm) 0;
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mob-logo {
        margin: 2em 1em;
    }

    .btn {
        width: 100%;
    }

    .terms,
    .login-link {
        align-items: start;
        justify-content: start;
        text-align: left;
    }

    .lg-none {
        display: block;
    }

    .sm-none {
        display: none;
    }

    .form {
        margin-top: 1em;
    }

    label.form-group__label.h-5 {
        min-height: auto;
    }

    .form-section.w_forms form.form {
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 0 var(--spacing-sm);
    }



    .carousel,
    .carousel-inner,
    .carousel-slide {
        height: 400px;
    }

    .carousel-slide img {
        max-height: 100%;
    }

}
.new-forms .form-group {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
}