/* Existing styles (unchanged, included for context) */
.form-section-main-con {
    position: relative;
    display: flex;
    padding: 32px 0px;
   /* min-height: 890px;*/
    min-height: 925px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.form-section-con {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1000px;
    max-height: 861px;
    z-index: 10;
    margin: 0 auto;
    /*overflow: hidden;*/
}

.form-con {
    width: 50%;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #FFFFFF;
    padding: 24px;
    gap: 20px;
    border-radius: 16px;
    border: 1px solid #E8E8E9;
    min-width: 600px;
    max-width: 700px;
    box-shadow: -8px 8px 40px 0px #0000000D;
}

.prize-image-con {
    width: 50%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 3;
    right: 0;
    top: 0;
}

.form-title-con {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.input-con {
    display: flex;
    width: 100%;
    flex-direction: column;
    border: 1px solid #E8E8E9;
    border-radius: 12px;
    justify-content: center;
    padding: 16px;
    gap: 8px;
}

input, select {
    resize: none;
    color: inherit;
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22.4px;
    letter-spacing: -0.02em;
    background: transparent;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('/InsuranceQuizSenior/assets/icons/chevron-icon.svg');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
    cursor: pointer;
}

/* Remove default increment and decrement controls for number inputs */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

input::placeholder {
    color: #A3A5A9;
}

.input-con-focus, .input-con-verify.input-con-focus {
    border: 1px solid #181E28;
}

.input-con-error, .input-con-verify.input-con-error {
    border: 1px solid #E31C0F;
}

.input-con-error .font-caption-reg, .input-con-verify.input-con-error .font-caption-reg {
    color: #E31C0F;
}

.verified-input {
   /* background-color: #f8f8f8;*/
    color: #252E3D;
    border-color: #4CAF50 !important;
}

.success-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.success-toast.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, 20px); }
}

.input-label-con {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.error-label {
    color: #E31C0F;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.input-con-verify {
    display: flex;
    width: 100%;
    border: 1px solid #E8E8E9;
    border-radius: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    gap: 8px;
}

.verification-note {
    background-color: #F5F6F9;
    display: flex;
    width: 100%;
    padding: 8px 16px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
}

.register-cta {
    display: flex;
    width: fit-content;
    min-width: 148px;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: #E51818;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0px 4px 12px 0px #0000001F;
}



 .disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    opacity: 0.7;
}

.valid-input {
    border-color: #4CAF50 !important;
}

.invalid-input {
    border-color: #E31C0F !important;
}

@media screen and (max-width: 768px) {
    .register-cta {
        width: 100%;
    }
    .form-section-main-con {
       /* padding: 24px 0px;*/
        padding: 0px 0px;
        min-height: 810px;
    }
    .prize-image-con {
        display: none;
    }
    .input-con {
        padding: 12px;
        border-radius: 12px;
        gap: 4px;
    }
    .input-con-verify {
        padding: 12px;
        border-radius: 12px;
        gap: 4px;
    }
    .form-con {
        border-radius: none;
        width: 100%;
        min-width: unset;
        gap: 16px;
        padding: 24px 16px;
        border: none;
    }
}

/* Updated Dropdown Styles */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

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

.dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.dropdown-selected input {
    cursor: text; /* Allow text input */
    flex-grow: 1;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.dropdown-icon.open {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute; /* Change to absolute for proper positioning */
    display: none; /* Hidden by default */
    width: 100%; /* Full width of container */
    max-height: 250px;
    background: #FFFFFF;
    border: 0.95px solid #E9EAEC;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Increased to avoid overlap */
    overflow: visible; /* Allow content to be visible */
    top: 100%; /* Position below the input */
    left: 0;
    margin-top: 4px;
}

.dropdown-options-list {
    max-height: 250px;
    width: 100%;
    overflow-y: auto;
}

.dropdown-option {
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 16px;
    color: #252E3D;
    border-bottom: 0.95px solid #E9EAEC;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover, .dropdown-option:focus {
    background-color: #F5F6F9;
    outline: none;
}

.dropdown-option.selected {
    background-color: #F5F6F9;
    font-weight: 500;
}

.dropdown-options.position-top {
    margin-top: 0;
    margin-bottom: 4px;
}