/* ---------------------------------------------------
   GLOBAL FORM CENTER WRAPPER (REUSABLE)
-----------------------------------------------------*/
/* FULL SCREEN FORM CENTER */
.form-screen-center {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* background: var(--color-bg-light); */
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark) 100%);
    /* background: linear-gradient(135deg, #025683, #02283d 100%); */
}

/* ---------------------------------------------------
   FORM CONTAINER
-----------------------------------------------------*/
.form-container {
    width: 100%;
    max-width: 450px;
    padding: 35px 30px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    animation: fadeDown 0.6s ease;
}

/* ---------------------------------------------------
   HEADINGS
-----------------------------------------------------*/
.form-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-primary);
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 25px;
}

/* ---------------------------------------------------
   FORM GROUP
-----------------------------------------------------*/
.form-group {
    margin-bottom: 18px;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
    color: var(--color-primary);
    text-align: left;
}

/* ---------------------------------------------------
   INPUTS
-----------------------------------------------------*/
.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fafaff;
    border: 1px solid var(--input-border);
    transition: 0.25s;
    font-size: 15px;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 78, 255, 0.25);
    outline: none;
}

/* TEXTAREA */
.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* SELECT (Dropdown) */
.form-select {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fafaff;
    border: 1px solid var(--input-border);
}

/* ---------------------------------------------------
   BUTTONS AREA
-----------------------------------------------------*/
.form-btn {
    width: 100%;
    margin-top: 10px;
}

/* ---------------------------------------------------
   FOOTER TEXT (OPTIONAL)
-----------------------------------------------------*/
.form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--color-text-light);
}

.form-footer a {
    color: var(--color-primary);
    font-weight: 600;
}


/* OTP wrapper */
.otp-wrapper {
    gap: 10px;
}

/* Individual OTP boxes */
.otp-input {
    width: 48px;
    height: 55px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border-radius: 12px;
    border: 1.5px solid var(--input-border);
    background: #fafaff;
    transition: 0.25s;
}

.otp-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 78, 255, 0.25);
    outline: none;
}

/* On filled */
.otp-input.filled {
    border-color: var(--color-primary);
    background: rgba(107,78,255,0.10);
}

/* INPUTS */
.custom-input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    /* background: #fafaff; */
    transition: 0.25s;
}

.custom-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 78, 255, 0.25);
}

.custom-input[readonly] {
    background: #f5f5ff;               /* soft light background */
    border-color: #d8d8f0;             /* lighter border */
    cursor: not-allowed;               /* pointer disabled */
    color: var(--color-text-light);    /* soft text color */
    opacity: 0.85;
}

/* Prevent focus shadow on readonly */
.custom-input[readonly]:focus {
    border-color: #d8d8f0 !important;
    box-shadow: none !important;
}

/* ---------------------------------------------------
   CUSTOM SELECT (Matching Custom Input Style)
-----------------------------------------------------*/
.custom-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: #fafaff;
    color: var(--color-text);
    font-size: 15px;
    cursor: pointer;
    transition: 0.25s;
    appearance: none;               /* Removes default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%236B4EFF' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.516 7.548a.75.75 0 011.06 0L10 10.97l3.424-3.422a.75.75 0 111.06 1.06l-3.954 3.955a.75.75 0 01-1.06 0L5.516 8.61a.75.75 0 010-1.06z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.custom-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 78, 255, 0.25);
    outline: none;
}

/* Optional Hover effect */
.custom-select:hover {
    border-color: var(--color-primary);
}

/* Dropdown list panel styling (works in Chrome, Edge, Brave) */
.custom-select option {
    padding: 14px;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
    color: #333;
    cursor: pointer;
}

/* Hover on options (Chrome only) */
.custom-select option:hover {
    background: rgba(107,78,255,0.15);
}

/* Selected option highlight */
.custom-select option:checked {
    background: rgba(107,78,255,0.20) !important;
    color: #4d37d7 !important;
}


/* Full dropdown panel styling (Chrome / Edge / Brave) */
.custom-select::-webkit-scrollbar {
    width: 8px;
}

.custom-select::-webkit-scrollbar-track {
    background: #f5f5ff;
    border-radius: 10px;
}

.custom-select::-webkit-scrollbar-thumb {
    background: #c6b8ff;
    border-radius: 10px;
}

.custom-select::-webkit-scrollbar-thumb:hover {
    background: #a28cff;
}

/* Premium Toggle Switch */
.switch-toggle {
    position: relative;
    width: 46px;
    height: 24px;
    background: #d5cdfa;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.25s;
    display: inline-block;
}

.switch-toggle.active {
    background: var(--color-primary);
}

.switch-toggle .toggle-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.switch-toggle.active .toggle-handle {
    left: 24px;
}



.password-wrapper {
    position: relative;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 12px;
    top: 38px;
    cursor: pointer;
    color: #555;
    font-size: 18px;
}

.password-wrapper .toggle-password:hover {
    color: #000;
}





/* Custom file upload wrapper */
.custom-file-wrapper {
    width: 100%;
    padding: 25px;
    border: 2px dashed var(--input-border);
    border-radius: 14px;
    background: #fafaff;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    color: var(--color-text-light);
    font-size: 15px;
}

.custom-file-wrapper:hover {
    border-color: var(--color-primary);
    background: rgba(107, 78, 255, 0.05);
}

/* Preview box */
.image-preview {
    margin-top: 15px;
    width: 150px;
    height: auto;
    /* max-height: 260px; */
    overflow: visible;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    /* display: none; */
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: 14px;
}





/* ---------------------------------------------------
   ANIMATION
-----------------------------------------------------*/
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------------
   RESPONSIVE FIXES
-----------------------------------------------------*/
@media (max-width: 480px) {
    .form-container {
        padding: 25px 20px;
    }

    .form-title {
        font-size: 22px;
    }
}
