/* =====================================================
   AHA Doc Reports — Frontend Modal
   ===================================================== */

.aha-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.aha-modal[hidden] {
    display: none;
}

.aha-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.aha-modal__box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    outline: none;
}

.aha-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.aha-modal__close:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.aha-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aha-modal__title .fa {
    color: #f59e0b;
    font-size: 1rem;
}

.aha-modal__subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 20px;
    line-height: 1.5;
}

.aha-modal__row {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aha-modal__row label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

.aha-modal__row label span {
    color: #ef4444;
    margin-left: 2px;
}

.aha-modal__row input,
.aha-modal__row textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: #1e293b;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.aha-modal__row input:focus,
.aha-modal__row textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.aha-modal__row small {
    font-size: 0.75rem;
    color: #94a3b8;
}

.aha-modal__feedback {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    line-height: 1.4;
}

.aha-modal__feedback--success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.aha-modal__feedback--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.aha-modal__submit {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.aha-modal__submit:hover {
    background: #1e40af;
}

.aha-modal__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
