/* ============================================================
   GLOBAL RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

/* ============================================================
   SHARED BASE
   ============================================================ */
body {
    font-family: Inter, sans-serif;
    background: #eafff2;
    margin: 0;
    font-size: 18px;
}
header {
    background: linear-gradient(to right, #6B8E23, #1E90FF);
    color: #fff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================================
   PSYCHIATRIC NOTES  (psychiatricNotes.html)
   ============================================================ */
body.page-notes {
    color: #0f172a;
    font-size: 22px;
}
body.page-notes header {
    font-size: 22px;
    font-weight: 600;
}
body.page-notes .container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}
body.page-notes .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
body.page-notes .card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
body.page-notes textarea,
body.page-notes select,
body.page-notes input {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-family: Inter, sans-serif;
    font-size: 22px;
}
body.page-notes button {
    margin-top: 12px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 22px;
}
body.page-notes button:hover { opacity: 0.9; }
body.page-notes button.loading {
    opacity: .7;
    pointer-events: none;
    position: relative;
}
body.page-notes button.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: notes-spin .6s linear infinite;
}
@keyframes notes-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}
body.page-notes .output {
    margin-top: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 20px;
    line-height: 1.5;
    border-left: 4px solid #2563eb;
}
body.page-notes .output ul,
body.page-notes .output ol { margin: 0.5rem 0; padding-left: 1.5rem; }
body.page-notes .output li { margin: 0.25rem 0; }
body.page-notes .output strong { color: #0f172a; font-weight: 700; }
body.page-notes .output em,
body.page-notes .output small,
body.page-notes #status { font-size: 18px; }
body.page-notes .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
body.page-notes .table th,
body.page-notes .table td {
    border: 1px solid #e2e8f0;
    padding: 10px;
    font-size: 20px;
    vertical-align: top;
}
body.page-notes .table td .formatted-note-preview {
    font-size: 20px;
    max-width: 300px;
    white-space: normal;
}
body.page-notes .hidden { display: none; }
@media (max-width: 768px) {
    body.page-notes .grid { grid-template-columns: 1fr; }
}
body.page-notes .mobile-select {
    width: 100%;
    min-height: 56px;
    padding: 12px 58px 12px 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24'%3E%3Cpath fill='%23374151' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 30px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.page-notes .mobile-select:hover { border-color: #2563eb; }
body.page-notes .mobile-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}
@media (max-width: 768px) {
    body.page-notes .mobile-select {
        min-height: 64px;
        font-size: 21px;
        padding: 14px 64px 14px 18px;
        background-size: 34px;
        background-position: right 18px center;
    }
}

/* ============================================================
   REGISTER  (register.html)  —  BIGGER FORM
   ============================================================ */
body.page-register {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
body.page-register .card {
    background: #fff;
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 480px;
    max-width: 100%;
}
body.page-register h2 {
    margin-top: 0;
    font-size: 32px;
}
body.page-register input,
body.page-register select {
    width: 100%;
    padding: 16px 18px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 20px;
}
body.page-register button {
    width: 100%;
    padding: 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 20px;
    margin-top: 8px;
}
body.page-register button:hover { opacity: 0.9; }
body.page-register button:disabled { opacity: 0.6; cursor: not-allowed; }
body.page-register .err {
    color: #b91c1c;
    margin-top: 8px;
    font-size: 16px;
}
body.page-register .ok {
    color: #166534;
    background: #dcfce7;
    padding: 14px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 17px;
}
body.page-register .info {
    color: #075985;
    background: #e0f2fe;
    padding: 14px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 17px;
}
body.page-register small { color: #64748b; font-size: 15px; }

/* ============================================================
   LOGIN  (login.html)  —  BIGGER FORM
   ============================================================ */
body.page-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
body.page-login .card {
    background: #fff;
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 480px;
    max-width: 100%;
}
body.page-login h2 {
    margin-top: 0;
    font-size: 32px;
}
body.page-login input {
    width: 100%;
    padding: 16px 18px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 20px;
}
body.page-login button {
    width: 100%;
    padding: 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 20px;
    margin-top: 8px;
}
body.page-login button:hover { opacity: 0.9; }
body.page-login .err {
    color: #b91c1c;
    margin-top: 8px;
    font-size: 16px;
}
body.page-login .verify-msg { padding: 14px; border-radius: 8px; margin-bottom: 12px; font-size: 17px; }
body.page-login .verify-ok { background: #dcfce7; color: #166534; }
body.page-login .verify-warn { background: #fee2e2; color: #991b1b; }
body.page-login .verify-info { background: #e0f2fe; color: #075985; }

/* ============================================================
   DASHBOARD  (dashboard.html)
   ============================================================ */
body.page-dashboard { padding: 0; }
body.page-dashboard header { flex-wrap: wrap; }
body.page-dashboard .container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}
body.page-dashboard .card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
body.page-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
body.page-dashboard .stat-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}
body.page-dashboard .stat-number { font-size: 30px; font-weight: 600; color: #2563eb; }
body.page-dashboard .stat-label { font-size: 16px; color: #64748b; margin-top: 4px; }
body.page-dashboard .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
}
body.page-dashboard .btn-primary { background: #2563eb; color: #fff; }
body.page-dashboard .btn-secondary { background: #8B5CF6; color: #fff; }
body.page-dashboard .btn-warning { background: #F59E0B; color: #fff; }
body.page-dashboard .hidden { display: none; }
body.page-dashboard .loading {
    text-align: center;
    font-size: 20px;
    color: #2563eb;
    padding: 40px;
}
body.page-dashboard .error {
    color: #b91c1c;
    background: #fee2e2;
    padding: 12px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-all;
}
body.page-dashboard table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
body.page-dashboard th,
body.page-dashboard td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

/* ============================================================
   SUBSCRIPTION  (subscription.html)
   ============================================================ */
body.page-subscription { padding: 20px; }
body.page-subscription .container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}
body.page-subscription .card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
body.page-subscription select,
body.page-subscription input,
body.page-subscription textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
}
body.page-subscription button {
    padding: 12px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
body.page-subscription button:hover { opacity: 0.9; }
body.page-subscription .tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
body.page-subscription .tab-buttons button {
    flex: 1;
    background: #e2e8f0;
    color: #333;
}
body.page-subscription .tab-buttons button.active {
    background: #2563eb;
    color: #fff;
}

/* ============================================================
   ADMIN  (admin.html)
   ============================================================ */
body.page-admin { padding: 20px; }
body.page-admin .container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}
body.page-admin .card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
body.page-admin table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
body.page-admin th,
body.page-admin td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
body.page-admin button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 2px;
}
body.page-admin .btn-approve { background: #22c55e; color: #fff; }
body.page-admin .btn-deactivate { background: #ef4444; color: #fff; }
body.page-admin .btn-edit { background: #f59e0b; color: #fff; }
body.page-admin .btn-delete { background: #dc2626; color: #fff; }
body.page-admin .btn-save { background: #2563eb; color: #fff; }
body.page-admin .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
body.page-admin .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
}
body.page-admin .modal-content input,
body.page-admin .modal-content select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}
body.page-admin .modal-content button { margin: 5px; }

/* ============================================================
   MANAGE PACKAGES  (manage_packages.html)
   ============================================================ */
body.page-packages { padding: 20px; }
body.page-packages .container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}
body.page-packages .card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
body.page-packages input,
body.page-packages select,
body.page-packages textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
}
body.page-packages button {
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
body.page-packages button:hover { opacity: 0.9; }
body.page-packages .btn-delete { background: #dc2626; }
body.page-packages .btn-delete:hover { opacity: 0.9; }
body.page-packages table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
body.page-packages th,
body.page-packages td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

/* ============================================================
   PAYMENT  (payment.html)
   ============================================================ */
body.page-payment { padding: 20px; }
body.page-payment .container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
}
body.page-payment .card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
body.page-payment h2 { margin-top: 0; }
body.page-payment .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
}
body.page-payment .info-row strong { color: #0f172a; }
body.page-payment .amount { font-size: 30px; font-weight: 700; color: #2563eb; }
body.page-payment #paypal-button-container { margin-top: 16px; }
body.page-payment .msg { padding: 12px; border-radius: 8px; margin-top: 12px; }
body.page-payment .msg.ok { background: #dcfce7; color: #166534; }
body.page-payment .msg.err { background: #fee2e2; color: #991b1b; }
body.page-payment .msg.info { background: #e0f2fe; color: #075985; }
body.page-payment .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #2563eb;
    border-top-color: transparent;
    border-radius: 50%;
    animation: payment-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes payment-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   COUPONS  (coupons.html)
   ============================================================ */
body.page-coupons { padding: 0; }
body.page-coupons .container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}
body.page-coupons .card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
body.page-coupons label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: #334155;
}
body.page-coupons input,
body.page-coupons select,
body.page-coupons textarea {
    width: 100%;
    padding: 12px;
    margin: 6px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}
body.page-coupons button {
    padding: 12px 22px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 8px;
}
body.page-coupons button:hover { opacity: 0.9; }
body.page-coupons table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
body.page-coupons th,
body.page-coupons td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

/* ============================================================
   CARE HOME  (care-home-note.html)
   ============================================================ */
body.page-care { color: #0f172a; font-size: 20px; }
body.page-care header { font-size: 20px; font-weight: 600; }
body.page-care .container { max-width: 1200px; margin: auto; padding: 20px; }
body.page-care .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
body.page-care .card { background: #fff; padding: 20px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
body.page-care textarea,
body.page-care select,
body.page-care input {
    width: 100%; padding: 12px; margin-top: 10px;
    border-radius: 10px; border: 1px solid #e2e8f0;
    font-family: Inter, sans-serif; font-size: 20px;
}
body.page-care input[readonly] { background: #f1f5f9; cursor: default; }
body.page-care button {
    margin-top: 12px; padding: 12px; border: none; border-radius: 10px;
    background: #2563eb; color: #fff; font-weight: 600; cursor: pointer;
    transition: 0.2s; font-size: 20px;
}
body.page-care button:hover { opacity: 0.9; }
body.page-care button.loading { opacity: .7; pointer-events: none; position: relative; }
body.page-care button.loading::after {
    content: ""; width: 16px; height: 16px;
    border: 2px solid #fff; border-top: 2px solid transparent; border-radius: 50%;
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%); animation: care-spin .6s linear infinite;
}
@keyframes care-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}
body.page-care .output {
    margin-top: 12px; padding: 16px; background: #f8fafc;
    border-radius: 12px; font-size: 18px; line-height: 1.5;
    border-left: 4px solid #2563eb;
}
body.page-care .output ul,
body.page-care .output ol { margin: 0.5rem 0; padding-left: 1.5rem; }
body.page-care .output li { margin: 0.25rem 0; }
body.page-care .output strong { color: #0f172a; font-weight: 700; }
body.page-care .report-section { margin-bottom: 1.2rem; }
body.page-care .report-section h3 {
    font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem;
    border-left: 3px solid #2563eb; padding-left: 8px; color: #1e40af;
}
body.page-care .report-field { margin-left: 1rem; margin-bottom: 0.3rem; }
body.page-care .report-label { font-weight: 600; display: inline-block; min-width: 180px; color: #334155; }
body.page-care .report-value { color: #0f172a; }
body.page-care .empty-value { color: #94a3b8; font-style: italic; }
body.page-care .table { width: 100%; border-collapse: collapse; margin-top: 10px; }
body.page-care .table th,
body.page-care .table td { border: 1px solid #e2e8f0; padding: 10px; font-size: 18px; vertical-align: top; }
body.page-care .table td .formatted-note-preview { font-size: 16px; max-width: 320px; white-space: normal; }
body.page-care .hidden { display: none; }
body.page-care .billing-section { margin-top: 20px; border-top: 2px solid #2563eb; padding-top: 12px; }
body.page-care .note-type-prompt {
    margin-top: 20px; padding: 12px; background: #f0f9ff;
    border-radius: 8px; border-left: 4px solid #2563eb;
}
body.page-care .note-type-prompt p { margin: 0; font-size: 18px; }
body.page-care #logoImg { width: 280px; height: auto; }
body.page-care #authMsg { color: #b91c1c; margin-top: 8px; }
body.page-care #status { margin-top: 6px; font-size: 16px; }
body.page-care .billing-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
body.page-care .billing-detail-grid label { font-size: 16px; }
body.page-care .mobile-select {
    width: 100%; min-height: 56px; padding: 12px 58px 12px 16px;
    font-size: 18px; font-weight: 500; line-height: 1.4;
    border: 2px solid #d1d5db; border-radius: 12px;
    background-color: #fff; cursor: pointer;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24'%3E%3Cpath fill='%23374151' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 30px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.page-care .mobile-select:hover { border-color: #2563eb; }
body.page-care .mobile-select:focus {
    outline: none; border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}
@media (max-width: 768px) {
    body.page-care .grid { grid-template-columns: 1fr; }
    body.page-care .mobile-select {
        min-height: 64px; font-size: 19px;
        padding: 14px 64px 14px 18px;
        background-size: 34px; background-position: right 18px center;
    }
}

/* ============================================================
   PCP NOTE  (pcp-note.html)
   ============================================================ */
body.page-pcp { color: #0f172a; font-size: 20px; }
body.page-pcp header { font-size: 20px; font-weight: 600; }
body.page-pcp .container { max-width: 1200px; margin: auto; padding: 20px; }
body.page-pcp .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
body.page-pcp .card { background: #fff; padding: 20px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
body.page-pcp textarea,
body.page-pcp select,
body.page-pcp input {
    width: 100%; padding: 12px; margin-top: 10px;
    border-radius: 10px; border: 1px solid #e2e8f0;
    font-family: Inter, sans-serif; font-size: 20px;
}
body.page-pcp input[readonly] { background: #f1f5f9; cursor: default; }
body.page-pcp button {
    margin-top: 12px; padding: 12px; border: none; border-radius: 10px;
    background: #2563eb; color: #fff; font-weight: 600; cursor: pointer;
    transition: 0.2s; font-size: 20px;
}
body.page-pcp button:hover { opacity: 0.9; }
body.page-pcp button.loading { opacity: .7; pointer-events: none; position: relative; }
body.page-pcp button.loading::after {
    content: ""; width: 16px; height: 16px;
    border: 2px solid #fff; border-top: 2px solid transparent; border-radius: 50%;
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%); animation: pcp-spin .6s linear infinite;
}
@keyframes pcp-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}
body.page-pcp .output {
    margin-top: 12px; padding: 16px; background: #f8fafc;
    border-radius: 12px; font-size: 18px; line-height: 1.5;
    border-left: 4px solid #2563eb;
}
body.page-pcp .output ul,
body.page-pcp .output ol { margin: 0.5rem 0; padding-left: 1.5rem; }
body.page-pcp .output li { margin: 0.25rem 0; }
body.page-pcp .output strong { color: #0f172a; font-weight: 700; }
body.page-pcp .report-section { margin-bottom: 1.2rem; }
body.page-pcp .report-section h3 {
    font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem;
    border-left: 3px solid #2563eb; padding-left: 8px; color: #1e40af;
}
body.page-pcp .report-field { margin-left: 1rem; margin-bottom: 0.3rem; }
body.page-pcp .report-label { font-weight: 600; display: inline-block; min-width: 180px; color: #334155; }
body.page-pcp .report-value { color: #0f172a; }
body.page-pcp .empty-value { color: #94a3b8; font-style: italic; }
body.page-pcp .table { width: 100%; border-collapse: collapse; margin-top: 10px; }
body.page-pcp .table th,
body.page-pcp .table td { border: 1px solid #e2e8f0; padding: 10px; font-size: 18px; vertical-align: top; }
body.page-pcp .table td .formatted-note-preview { font-size: 16px; max-width: 320px; white-space: normal; }
body.page-pcp .hidden { display: none; }
body.page-pcp .billing-section { margin-top: 20px; border-top: 2px solid #2563eb; padding-top: 12px; }
body.page-pcp .note-type-prompt {
    margin-top: 20px; padding: 12px; background: #f0f9ff;
    border-radius: 8px; border-left: 4px solid #2563eb;
}
body.page-pcp .note-type-prompt p { margin: 0; font-size: 18px; }
body.page-pcp #logoImg { width: 280px; height: auto; }
body.page-pcp #authMsg { color: #b91c1c; margin-top: 8px; }
body.page-pcp #status { margin-top: 6px; font-size: 16px; }
body.page-pcp .billing-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
body.page-pcp .billing-detail-grid label { font-size: 16px; }
body.page-pcp .mobile-select {
    width: 100%; min-height: 56px; padding: 12px 58px 12px 16px;
    font-size: 18px; font-weight: 500; line-height: 1.4;
    border: 2px solid #d1d5db; border-radius: 12px;
    background-color: #fff; cursor: pointer;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24'%3E%3Cpath fill='%23374151' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 30px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.page-pcp .mobile-select:hover { border-color: #2563eb; }
body.page-pcp .mobile-select:focus {
    outline: none; border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}
@media (max-width: 768px) {
    body.page-pcp .grid { grid-template-columns: 1fr; }
    body.page-pcp .mobile-select {
        min-height: 64px; font-size: 19px;
        padding: 14px 64px 14px 18px;
        background-size: 34px; background-position: right 18px center;
    }
}
/* ============================================================
   HEADER FULL-WIDTH FIX  (login + register)
   ============================================================ */
body.page-login > header,
body.page-register > header {
    width: 100%;
    align-self: stretch;
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0;
}
body.page-login,
body.page-register {
    padding: 0;
    margin: 0;
}

/* ============================================================

/* ============================================================

/* ============================================================
   HEADER LOGO FULL-WIDTH  (login + register — Option A)
   ============================================================ */
body.page-login > header,
body.page-register > header {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    line-height: 0;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    background: linear-gradient(to right, #6B8E23, #1E90FF);
}
body.page-login > header > span,
body.page-register > header > span {
    display: contents;
}
body.page-login > header img,
body.page-register > header img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: unset !important;
    display: block;
}

/* ============================================================
   LEGAL  (DozieLaw-note.html)
   ============================================================ */
body.page-legal { color: #0f172a; font-size: 20px; }
body.page-legal header { font-size: 20px; font-weight: 600; }
body.page-legal .container { max-width: 1200px; margin: auto; padding: 20px; }
body.page-legal .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
body.page-legal .card { background: #fff; padding: 20px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
body.page-legal textarea,
body.page-legal select,
body.page-legal input {
    width: 100%; padding: 12px; margin-top: 10px;
    border-radius: 10px; border: 1px solid #e2e8f0;
    font-family: Inter, sans-serif; font-size: 20px;
}
body.page-legal input[readonly] { background: #f1f5f9; cursor: default; }
body.page-legal button {
    margin-top: 12px; padding: 12px; border: none; border-radius: 10px;
    background: #2563eb; color: #fff; font-weight: 600; cursor: pointer;
    transition: 0.2s; font-size: 20px;
}
body.page-legal button:hover { opacity: 0.9; }
body.page-legal button.loading { opacity: .7; pointer-events: none; position: relative; }
body.page-legal button.loading::after {
    content: ""; width: 16px; height: 16px;
    border: 2px solid #fff; border-top: 2px solid transparent; border-radius: 50%;
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%); animation: legal-spin .6s linear infinite;
}
@keyframes legal-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}
body.page-legal .output {
    margin-top: 12px; padding: 16px; background: #f8fafc;
    border-radius: 12px; font-size: 18px; line-height: 1.5;
    border-left: 4px solid #2563eb;
}
body.page-legal .output ul,
body.page-legal .output ol { margin: 0.5rem 0; padding-left: 1.5rem; }
body.page-legal .output li { margin: 0.25rem 0; }
body.page-legal .output strong { color: #0f172a; font-weight: 700; }
body.page-legal .report-section { margin-bottom: 1.2rem; }
body.page-legal .report-section h3 {
    font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem;
    border-left: 3px solid #2563eb; padding-left: 8px; color: #1e40af;
}
body.page-legal .report-field { margin-left: 1rem; margin-bottom: 0.3rem; }
body.page-legal .report-label { font-weight: 600; display: inline-block; min-width: 180px; color: #334155; }
body.page-legal .report-value { color: #0f172a; }
body.page-legal .empty-value { color: #94a3b8; font-style: italic; }
body.page-legal .table { width: 100%; border-collapse: collapse; margin-top: 10px; }
body.page-legal .table th,
body.page-legal .table td { border: 1px solid #e2e8f0; padding: 10px; font-size: 18px; vertical-align: top; }
body.page-legal .table td .formatted-note-preview { font-size: 16px; max-width: 320px; white-space: normal; }
body.page-legal .hidden { display: none; }
body.page-legal #logoImg { width: 280px; height: auto; }
body.page-legal #authMsg { color: #b91c1c; margin-top: 8px; }
body.page-legal #status { margin-top: 6px; font-size: 16px; }
body.page-legal .legal-params-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
body.page-legal .legal-params-grid label { font-size: 16px; }
body.page-legal .mobile-select {
    width: 100%; min-height: 56px; padding: 12px 58px 12px 16px;
    font-size: 18px; font-weight: 500; line-height: 1.4;
    border: 2px solid #d1d5db; border-radius: 12px;
    background-color: #fff; cursor: pointer;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24'%3E%3Cpath fill='%23374151' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 30px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.page-legal .mobile-select:hover { border-color: #2563eb; }
body.page-legal .mobile-select:focus {
    outline: none; border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}
@media (max-width: 768px) {
    body.page-legal .grid { grid-template-columns: 1fr; }
    body.page-legal .mobile-select {
        min-height: 64px; font-size: 19px;
        padding: 14px 64px 14px 18px;
        background-size: 34px; background-position: right 18px center;
    }
}
