/* Shared overlay/card/field/status styling for the Client Portal's modals (profile, mobile
   activation/change, appointments, notifications) and the Doctor Portal's own modals - kept as one
   file rather than duplicating the same rules per modal. Class names keep the "patient" prefix
   from this file's original owner, the now-removed Patient Portal. */
.dmw-patient-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(10, 6, 36, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dmw-patient-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--whiteColor, #fff);
    border-radius: var(--borderRadius, 6px);
    padding: 36px 28px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.dmw-patient-modal-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 14px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: var(--contentColor, #666);
    cursor: pointer;
}

.dmw-patient-modal-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.dmw-patient-modal-lead {
    margin: 0 0 22px;
    color: var(--contentColor, #666);
    font-size: 13.5px;
}

.dmw-patient-field {
    margin-bottom: 16px;
}

.dmw-patient-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--contentColor, #666);
}

.dmw-patient-field input,
.dmw-patient-field select {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid var(--borderColor3, #ccc);
    border-radius: var(--borderRadius, 6px);
}

.dmw-patient-field-static {
    font-size: 14px;
    color: var(--headingColor, #222);
    unicode-bidi: plaintext;
}

.dmw-patient-modal-status {
    margin: 4px 0 16px;
    font-size: 12.5px;
    color: #1e8a4c;
}

.dmw-patient-modal-status--error {
    color: #d64545;
}

.dmw-patient-modal-submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: var(--borderRadius, 6px);
    background: var(--secondaryColor, #18239D);
    color: var(--whiteColor, #fff);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}

.dmw-patient-modal-submit:hover:not(:disabled) {
    background: var(--primaryColor, #18239D);
}

.dmw-patient-modal-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}
