/* Customer portal only; login and administration retain their own styles. */
.customer-portal { --portal-green: #214f35; --portal-ink: #19392e; --portal-muted: #637569; --portal-line: #dfe7dc; min-height: 100vh; background: #f3f6f1; color: var(--portal-ink); }
.portal-banner { padding: 16px 24px; text-align: center; background: #fff; }
.portal-banner img { display: block; max-width: 100%; height: auto; margin: auto; }
.portal-nav { background: #193e2d; color: #fff; }
.portal-nav-inner { max-width: 1200px; margin: auto; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.portal-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 17px; font-weight: 700; }
.portal-brand:hover { color: #e2edcc; }
.portal-brand-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #d9eaa9; color: #214f35; font-size: 23px; }
.portal-brand small { display: block; margin-top: 2px; color: #c4d6c8; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.portal-nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.portal-nav-link, .portal-account { padding: 10px 14px; color: #e2ebe2; border: 1px solid transparent; border-radius: 10px; background: transparent; text-decoration: none; font-size: 13px; }
.portal-nav-link:hover, .portal-nav-link[aria-current="page"], .portal-account:hover { color: #fff; background: #ffffff15; border-color: #ffffff28; }
.portal-nav-link svg, .portal-account svg { margin-right: 6px; }
.portal-account { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-content { max-width: 1200px; margin: auto; padding: 36px 28px 48px; }
.portal-footer { max-width: 1144px; margin: auto; padding: 24px 20px 28px; border-top: 1px solid var(--portal-line); text-align: center; color: var(--portal-muted); font-size: 12px; line-height: 1.9; }
.portal-footer a { color: #315d42; text-decoration: none; }
.portal-footer a:hover { text-decoration: underline; }
.portal-eyebrow { margin-bottom: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; color: #54714e; }
.portal-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.portal-heading h1 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.035em; }
.portal-heading p { margin: 0; color: var(--portal-muted); font-size: 14px; line-height: 1.7; }
.portal-heading-icon { flex-shrink: 0; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: #e1eccf; color: #315b31; font-size: 30px; }
.portal-steps { display: flex; gap: 8px; padding: 0; margin: 0 0 28px; list-style: none; }
.portal-steps li { flex: 1; padding: 12px; border-bottom: 3px solid #dfe7dc; color: #647369; font-size: 12px; }
.portal-steps li[aria-current="step"] { border-color: #315f40; background: #e7efdf; border-radius: 8px 8px 0 0; color: #214f35; font-weight: 700; }
.portal-steps span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: #fff; font-weight: 700; }
.portal-hero { position: relative; overflow: hidden; min-height: 260px; padding: 38px; margin-bottom: 28px; border-radius: 24px; color: #fff; background: #193e2d; }
.portal-hero::after { content: ''; position: absolute; inset: 0 0 0 45%; background: linear-gradient(90deg, #193e2d, #193e2d35), url('/assets/images/valmiki-forest.jpg') center 55% / cover; }
.portal-hero-copy { position: relative; z-index: 1; max-width: 590px; }
.portal-hero .portal-eyebrow { color: #d9eaa9; }
.portal-hero h1 { overflow-wrap: anywhere; font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -.04em; margin-bottom: 16px; }
.portal-hero p { max-width: 440px; color: #dce8da; font-size: 15px; line-height: 1.75; }
.portal-hero-tag { display: inline-flex; gap: 8px; align-items: center; border: 1px solid #ffffff36; border-radius: 30px; padding: 7px 12px; font-size: 11px; color: #e3edda; }
.portal-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 32px; }
.portal-choice { display: flex; gap: 22px; padding: 28px; color: #19392e; background: #e1eccf; border: 1px solid #cfddba; border-radius: 20px; text-align: left; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.portal-choice:hover { color: #19392e; transform: translateY(-3px); box-shadow: 0 12px 28px #19392e12; }
.portal-choice-safari { background: #f7e5c5; border-color: #eed6ae; }
.portal-choice-icon { flex-shrink: 0; width: 68px; height: 68px; display: grid; place-items: center; background: #fff9; border-radius: 18px; font-size: 32px; }
.portal-choice h2 { margin: 0 0 10px; font-size: 23px; font-weight: 700; letter-spacing: -.025em; }
.portal-choice p { margin-bottom: 18px; font-size: 14px; line-height: 1.65; color: #536449; }
.portal-choice-safari p { color: #75603e; }
.portal-choice-cta { font-size: 13px; font-weight: 700; }
.portal-choice-cta svg { margin-left: 10px; }
.portal-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 18px; }
.portal-section-title h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.portal-section-title a { color: #315f40; font-size: 13px; font-weight: 600; }
.portal-empty { text-align: center; padding: 40px 24px; background: #fff; border: 1px dashed #c6d6bf; border-radius: 20px; }
.portal-empty-icon { font-size: 42px; color: #5b8050; margin-bottom: 16px; }
.portal-empty h2 { font-size: 22px; font-weight: 700; }
.portal-empty p { color: #647369; font-size: 14px; }
.portal-table-scroll { overflow-x: auto; max-width: 100%; margin-bottom: 20px; border: 1px solid #dfe7dc; border-radius: 14px; background: #fff; }
.portal-table-scroll > .table { margin-bottom: 0; }
.portal-summary-table th { width: 40%; }
.portal-summary-table td { overflow-wrap: anywhere; }
.portal-form-card { width: 100%; max-width: 760px; }
.portal-form-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.portal-form-subtitle { margin-bottom: 24px; font-size: 14px; color: #637569; }
.portal-success { max-width: 760px; margin: 16px auto; padding: 44px 32px; text-align: center; background: #fff; border: 1px solid #dfe7dc; border-radius: 24px; }
.portal-success-icon { display: inline-grid; place-items: center; width: 88px; height: 88px; margin-bottom: 24px; background: #e1eccf; color: #315f40; border-radius: 28px; font-size: 42px; }
.portal-success h1 { font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.portal-success p { color: #637569; line-height: 1.8; }
.portal-success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media screen {
    .customer-portal .portal-content .card, .customer-portal-modal .modal-content { border: 1px solid #dfe7dc; border-radius: 18px; box-shadow: 0 8px 28px #19392e05; }
    .customer-portal .card-header, .customer-portal-modal .modal-header { padding: 20px 24px; background: #edf3e7; border-bottom: 1px solid #dfe7dc; border-radius: 18px 18px 0 0; }
    .customer-portal .card-header h3, .customer-portal .card-header h4 { font-size: 20px; font-weight: 700; }
    .customer-portal .card-body, .customer-portal-modal .modal-body { padding: 24px; }
    .customer-portal .card-footer, .customer-portal-modal .modal-footer { padding: 18px 24px; background: #fbfcfa; border-top: 1px solid #e3eadf; border-radius: 0 0 18px 18px; gap: 12px; flex-wrap: wrap; }
    .customer-portal .form-control, .customer-portal .form-select, .customer-portal-modal .form-control { min-height: 44px; padding: 10px 13px; border: 1px solid #d1ddcf; border-radius: 9px; background-color: #fcfdfb; font-size: 14px; color: #263e2f; }
    .customer-portal .form-control:focus, .customer-portal-modal .form-control:focus { border-color: #427652; box-shadow: 0 0 0 3px #42765220; }
    .customer-portal .form-control[readonly] { background: #eef3e9; }
    .customer-portal .form-label, .customer-portal-modal .form-label { font-size: 13px; font-weight: 600; color: #36503c; }
    .customer-portal .input-group-text, .customer-portal-modal .input-group-text { border-color: #d1ddcf; background: #edf3e7; font-size: 13px; }
    .customer-portal .btn, .customer-portal-modal .btn { padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; }
    .customer-portal .btn-sm { padding: 7px 11px; font-size: 12px; }
    .customer-portal .btn-dark, .customer-portal .btn-primary, .customer-portal-modal .btn-dark { background: #214f35; border-color: #214f35; color: #fff; }
    .customer-portal .btn-dark:hover, .customer-portal .btn-primary:hover, .customer-portal-modal .btn-dark:hover { background: #163d27; border-color: #163d27; }
    .customer-portal .btn-secondary { background: #e1eccf; border-color: #cfddba; color: #214f35; }
    .customer-portal .btn-light, .customer-portal-modal .btn-light { background: #fff; border-color: #d6e0d0; color: #36503c; }
    .customer-portal .btn:disabled { opacity: .5; }
    .customer-portal .table { --bs-table-striped-bg: #f6f9f3; --bs-table-striped-color: #2b4232; color: #2b4232; border-color: #e0e8db; font-size: 13px; }
    .customer-portal .table > :not(caption) > * > * { padding: 13px 14px; vertical-align: middle; }
    .customer-portal .table thead { background: #eaf1e3; color: #31543a; font-size: 12px; }
    .customer-portal .table th { font-weight: 600; }
    .customer-portal .table .bg-secondary, .customer-portal .table .bg-dark, .customer-portal .table thead.bg-secondary, .customer-portal .table tfoot.bg-secondary { background: #214f35 !important; color: #fff; }
    .customer-portal .badge { padding: 7px 10px; border-radius: 7px; font-weight: 600; }
    .customer-portal .badge.bg-dark { background: #214f35 !important; }
    .customer-portal .alert { padding: 20px 24px; border-radius: 14px; line-height: 1.7; }
    .customer-portal .alert-warning { background: #fff3d9; color: #73531e; border-color: #f0dab1; }
    .customer-portal .alert-success { background: #e7f1df; color: #31543a; border-color: #cadfbf; }
    .customer-portal .timer { display: inline-flex; padding: 6px 10px; border-radius: 8px; background: #fff0d0; color: #73531e; font-weight: 700; font-variant-numeric: tabular-nums; }
    .customer-portal .dropdown-menu { padding: 8px; border: 1px solid #dfe7dc; border-radius: 12px; box-shadow: 0 12px 30px #19392e14; }
    .customer-portal .dropdown-item { padding: 10px 14px; border-radius: 7px; font-size: 13px; }
    .customer-portal .dropdown-item:hover { background: #edf3e7; }
    .customer-portal a:focus-visible, .customer-portal button:focus-visible { outline: 3px solid #86a66c; outline-offset: 4px; }
    .customer-portal .text-black-50 { color: #637569 !important; }
}
@media (max-width: 767px) {
    .portal-banner { padding: 12px; }
    .portal-nav-inner { padding: 16px; flex-direction: column; align-items: flex-start; gap: 14px; }
    .portal-nav-links { width: 100%; gap: 4px; }
    .portal-nav-link, .portal-account { padding: 9px; font-size: 12px; }
    .portal-account { max-width: 150px; }
    .portal-content { padding: 28px 16px; }
    .portal-hero { padding: 28px; min-height: 270px; }
    .portal-hero::after { inset: 0; opacity: .35; }
    .portal-hero h1 { overflow-wrap: anywhere; font-size: 34px; }
    .portal-choices { grid-template-columns: 1fr; gap: 16px; }
    .portal-choice { padding: 24px; gap: 18px; }
    .portal-choice-icon { width: 56px; height: 56px; font-size: 27px; }
    .portal-heading { gap: 14px; }
    .portal-heading-icon { width: 54px; height: 54px; font-size: 25px; border-radius: 16px; }
    .portal-content .d-flex.justify-content-between { gap: 12px; flex-wrap: wrap; }
    .portal-steps li { padding: 10px 6px; font-size: 11px; }
    .portal-steps span { display: block; margin-bottom: 6px; }
    .customer-portal .card-body { padding: 20px; }
    .portal-section-title { align-items: flex-start; flex-wrap: wrap; }
    .portal-success { padding: 32px 20px; }
    .portal-table-scroll > .table { min-width: 650px; }
    .portal-table-scroll > .portal-summary-table { min-width: 0; }
    .portal-footer { margin: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .portal-choice { transition: none; } .portal-choice:hover { transform: none; } }
@media print {
    .customer-portal { background: #fff; min-height: 0; }
    .portal-banner { padding: 0; }
    .portal-nav, .portal-footer, .portal-heading, .portal-steps { display: none !important; }
    .portal-content { max-width: none; margin: 0; padding: 0; }
    .portal-table-scroll { overflow: visible; border: 0; }
}

@media screen and (min-width: 768px) {
    .portal-form-grid .card-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
    .portal-form-grid .card-body > .mb-3 { margin-bottom: 0 !important; }
    .portal-form-grid .card-body > h3, .portal-form-grid .card-body > h5, .portal-form-grid .card-body > hr, .portal-form-grid .card-body > br { grid-column: 1 / -1; margin: 0; }
    .portal-form-grid .card-body > br { display: none; }
}
