
.modal-forgot-password {
    display: none; /* visible when .show is added by JS */
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    /* default hidden; .show will apply flex centering */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 11000;
    overflow: hidden;
}

.modal-forgot-password.show {
    display: flex !important;
}

/* Modal content wrapper */
.modal-forgot-password-content,
.modal-forgot-password .modal-forgot-password-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px; /* final effective max width preserved */
    /* some contexts previously requested 624x400, keep responsive max-width instead */
    animation: slideIn 0.3s ease-out;
    margin: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.modal-forgot-password-header,
.modal-forgot-password .modal-forgot-password-header {
    background-color: #026DAF;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.modal-forgot-password-header h2,
.modal-forgot-password .modal-forgot-password-header h2 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    line-height: 1.2;
}

/* Close button: positioned absolute so it doesn't affect centering */
.modal-forgot-password-close,
.modal-forgot-password .modal-forgot-password-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.modal-forgot-password-close:hover {
    transform: translateY(-50%) scale(1.12);
}

/* Body */
.modal-forgot-password-body,
.modal-forgot-password .modal-forgot-password-body {
    padding: 30px;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
}

.modal-forgot-password-body p {
    margin: 0 0 15px 0;
    text-align: left;
}

/* Form groups and inputs - keep the final effective values (height 44, radius 6) */
.form-group-modal,
.modal-forgot-password .form-group-modal {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-modal label,
.modal-forgot-password .form-group-modal label {
    display: block;
    color: #000000;
    font-weight: 700;
    font-size: 14px;
}

.form-group-modal input,
.modal-forgot-password .form-group-modal input {
    width: 100%;
    height: 44px; /* preserve the final effective size */
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s, background-color 0.2s;
}

.form-group-modal input:focus,
.modal-forgot-password .form-group-modal input:focus {
    outline: none;
    border-color: #026DAF;
    background-color: #f9fbfc;
}

.form-group-modal input::placeholder,
.modal-forgot-password .form-group-modal input::placeholder {
    color: #9E9E9E;
}

/* Button */
.btn-modal-send,
.modal-forgot-password .btn-modal-send {
    width: 100%;
    height: 44px;
    background-color: #026DAF;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.06s;
}

.btn-modal-send:hover,
.modal-forgot-password .btn-modal-send:hover {
    background-color: #015C9A;
}

.btn-modal-send:active,
.modal-forgot-password .btn-modal-send:active {
    transform: scale(0.98);
}

.btn-modal-send:disabled,
.modal-forgot-password .btn-modal-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .modal-forgot-password-content {
        max-width: 90%;
        max-height: 90vh;
    }

    .modal-forgot-password-body {
        padding: 20px;
    }
}

/* End consolidated styles */
