.signup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 160px 8% 40px 8%;
}

.form-section {
    width: 689px;
    background: rgba(140, 136, 165, 0.4);
    padding: 30px 90px;
}

.signup-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.signup-with-title {
    font-family: var(--font-circe);
    margin-bottom: 5px;
    text-align: center;
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: scale(1.15);
}

.social-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    width: 100%;
}

.separator-text {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    color: var(--white);
    font-family: var(--font-circe);
    font-size: 18px;
    font-weight: 350;
}

.separator-text::before,
.separator-text::after {
    content: "";
    width: 63px;
    height: 2.5px;
    background-color: var(--white);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 490px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.half-width {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.flex-1 {
    flex: 1;
}

.form-label {
    font-size: 29px;
    font-weight: 800;
    color: var(--white);
    padding-left: 15px;
    font-family: var(--font-circe);
    margin-bottom: 2px;
}

.invisible {
    visibility: hidden;
}

.custom-select-container {
    position: relative;
    width: 100%;
}

.form-select.custom-style {
    cursor: pointer;
    text-align: left;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
}

.dropdown-arrow-container {
    width: 44px;
    height: 44px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.form-select span.placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    font-family: var(--font-circe);
    font-weight: 350;
}

.form-select:not(.active) span:not(.placeholder) {
    color: var(--white);
    font-size: 22px;
}


.dropdown-arrow-icon {
    width: 24px;
    height: 14px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.form-select.custom-style.active .dropdown-arrow-container {
    background: rgba(255, 255, 255, 0.23);
}

.form-select.custom-style.active .dropdown-arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: var(--white);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    max-height: 250px;
    z-index: 1000;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-item {
    padding: 8px 20px;
    color: var(--primary-purple);
    font-family: var(--font-circe);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 24px;
    font-style: normal;
    font-weight: 350;
    line-height: normal;
}

.dropdown-menu::-webkit-scrollbar {
    width: 10px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
    /* Keeps scrollbar away from the rounded top/bottom */
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 10px;
    border: 3px solid var(--white);
    /* Creates a "floating" effect inside the menu */
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #e09204;
}

.dropdown-item:first-child {
    color: var(--primary-purple);
    font-weight: 500;
    border-bottom: 1px solid rgba(62, 53, 96, 0.05);
}

.dropdown-item:not(:first-child):hover {
    background: var(--orange);
    color: var(--primary-purple);
}

.dropdown-item:not(:first-child).selected {
    background: var(--orange);
    color: var(--primary-purple);
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .form-input {
    width: 100%;
    padding-right: 50px;
    /* Space for the eye icon */
}

.toggle-password,
.toggle-confirm-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: 0.3s;
}

.toggle-password:hover,
.toggle-confirm-password:hover {
    opacity: 1;
}

.toggle-password img,
.toggle-confirm-password img {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.form-input,
.form-select {
    width: 100%;
    height: 54px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 30px;
    padding: 0 25px;
    font-size: 22px;
    color: var(--white);
    outline: none;
    transition: background 0.3s;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    font-family: var(--font-circe);
    font-weight: 350;
    line-height: normal;
}

#password::placeholder,
#confirm-password::placeholder {
    font-size: 24px;
    font-family: monospace;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.4);
}

#password,
#confirm-password {
    font-size: 24px;
    font-family: monospace;
    letter-spacing: 6px;
    line-height: 1.2;
}

/* .form-select {
    appearance: none;
    -webkit-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='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
} */

.form-select option {
    background: #3e3560;
    color: white;
}

.input-with-select {
    display: flex;
    gap: 10px;
    width: 100%;
}

.prefix-container {
    width: 135px;
    flex-shrink: 0;
}

.flex-input {
    flex: 1;
}

.city-input {
    width: 145px;
    flex-shrink: 0;
}

.work-input {
    flex: 1;
}

.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.terms-checkbox {
    appearance: none;
    -webkit-appearance: none;
    min-width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-top: 4px;
}

.terms-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 14px;
}

.terms-label {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-circe);
    font-size: 16px;
    font-style: normal;
    font-weight: 350;
    line-height: normal;
}

.terms-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 900;
}

.signup-submit {
    width: 100%;
    height: 55px;
    background: var(--orange);
    border: none;
    border-radius: 30px;
    color: #3E3560;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
    color: var(--white);
    font-family: var(--font-circe);
    font-size: 37.23px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.signup-submit:hover {
    transform: translateY(-2px);
}

.login-prompt {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 25px;
    font-family: var(--font-circe);
    font-size: 20px;
}

.login-link {
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    font-weight: 900;
}

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

.terms-link-2:hover{
    text-decoration: none;
}

@media screen and (min-width: 768px) {
    .prefix-container .dropdown-arrow-container {
        width: 32px;
        height: 32px;
    }

    .prefix-container .dropdown-arrow-icon {
        width: 16px;
        height: 10px;
    }
}

@media screen and (max-width: 1024px) {
    .signup-container {
        padding: 120px 5% 40px 5%;
    }

    .form-section {
        width: 100%;
        max-width: 600px;
        padding: 40px 60px;
    }

    .form-label {
        font-size: 24px;
    }

    .signup-submit {
        font-size: 32px;
    }

    #password,
    #confirm-password,
    #password::placeholder,
    #confirm-password::placeholder {
        font-size: 25px;
    }
}

@media screen and (max-width: 768px) {
    .signup-container {
        padding: 100px 20px 40px 20px;
    }

    .form-section {
        padding: 30px 25px;
    }

    .signup-form {
        width: 100%;
        max-width: 440px;
    }

    .form-row,
    .input-with-select {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .prefix-container,
    .city-input,
    .work-input,
    .flex-input {
        width: 100%;
    }

    .form-label {
        font-size: 20px;
        padding-left: 10px;
    }

    .form-input,
    .form-select,
    .custom-style,
    .flex-input,
    .city-input,
    .work-input {
        height: 54px !important;
        min-height: 54px !important;
        font-size: 18px;
        width: 100% !important;
        box-sizing: border-box;
    }

    .signup-submit {
        font-size: 28px;
        height: 55px;
    }

    .separator-text::before,
    .separator-text::after {
        width: 40px;
    }

    .terms-label {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .signup-container {
        padding: 80px 15px 40px 15px;
    }

    .form-section {
        padding: 25px 15px;
    }

    .signup-with-title {
        font-size: 22px;
    }

    .form-label {
        font-size: 18px;
        padding-left: 5px;
    }

    .form-input,
    .form-select,
    .custom-style,
    .flex-input,
    .city-input,
    .work-input {
        height: 48px !important;
        min-height: 48px !important;
        font-size: 16px;
        padding: 0 15px;
        width: 100% !important;
        box-sizing: border-box;
    }

    .dropdown-item {
        font-size: 18px;
        padding: 5px 15px;
    }

    .signup-submit {
        font-size: 24px;
        height: 50px;
    }

    .terms-label {
        font-size: 11px;
    }

    .login-prompt {
        font-size: 16px;
    }
}