:root {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --ink: #2c3e50;
    --muted: #6c757d;
    --line: #e9ecef;
    --primary: #1e3a5f;
    --primary-dark: #17304f;
    --secondary: #2c5f8d;
    --accent: #4a90e2;
    --soft-blue: #eef6ff;
    --soft-green: #f0f8f5;
    --soft-rose: #fff6f2;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .16);
    --shadow: var(--shadow-md);
    --transition: all .3s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 115px;
}

section,
footer,
.hero-section {
    scroll-margin-top: 115px;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    letter-spacing: 0;
    line-height: 1.6;
}

body.login-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(248, 249, 250, .96) 0%, rgba(255, 255, 255, .98) 100%),
        radial-gradient(circle at 15% 15%, rgba(74, 144, 226, .13), transparent 30%);
}

a {
    text-decoration: none;
}

.header-section {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container-mobile {
    justify-content: center;
}

.header-logo {
    max-height: 72px;
    width: auto;
    transition: var(--transition);
}

.header-logo-secondary {
    max-height: 70px;
    width: auto;
    transition: var(--transition);
}

.header-logo:hover,
.header-logo-secondary:hover {
    transform: scale(1.05);
}

.header-title {
    color: var(--primary);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
}

.header-subtitle {
    color: var(--muted);
    font-size: calc(.9rem + 3px);
    font-weight: 400;
}

.site-nav {
    padding: .35rem 0 .75rem;
}

.site-nav .navbar-nav {
    gap: .35rem;
}

.nav-link {
    color: var(--ink);
    border-radius: 25px;
    font-weight: 600;
    padding: .55rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus {
    color: #fff;
    background: var(--accent);
}

.btn {
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px 16px;
}

.login-card {
    width: min(100%, 460px);
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-lg);
}

.login-logo-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 28px;
}

.login-logo-group img {
    max-width: 94px;
    max-height: 78px;
    object-fit: contain;
}

.login-heading {
    margin-bottom: 24px;
    text-align: center;
}

.login-heading .eyebrow {
    justify-content: center;
}

.login-heading h1 {
    margin: 10px 0 8px;
    color: var(--primary);
    font-size: clamp(2rem, 5vw, 2.55rem);
    font-weight: 700;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-form .form-label {
    margin: 0;
    color: var(--primary);
    font-weight: 700;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: var(--secondary);
    font-size: 1.1rem;
    transform: translateY(-50%);
}

.login-input-wrap .form-control {
    min-height: 52px;
    padding-left: 48px;
    border-color: var(--line);
    border-radius: 12px;
    background: #fbfdff;
    font-weight: 600;
}

.login-input-wrap .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(74, 144, 226, .14);
}

.otp-input-wrap .form-control {
    text-align: center;
    font-size: 1.35rem;
    letter-spacing: .28rem;
}

.login-secondary-form {
    margin-top: 10px;
}

.countdown {
    --duration: 120;
    --remaining: 120;
    --progress: calc(var(--remaining) / var(--duration));
    position: relative;
    display: grid;
    width: 128px;
    height: 128px;
    margin: 0 auto 22px;
    place-items: center;
}

.countdown::after {
    content: attr(data-label);
    grid-column: 1;
    grid-row: 1;
    color: var(--primary);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.countdown svg {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
}

.countdown circle {
    fill: none;
    stroke: #dbe7f5;
}

.countdown circle + circle {
    stroke: color-mix(in srgb, var(--accent) calc(var(--progress) * 100%), #b42318);
    stroke-dasharray: var(--progress) 1;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transition: stroke-dasharray .35s linear, stroke .35s linear;
}

.countdown.is-expired::after {
    content: '0:00';
    color: #b42318;
}

.countdown.is-expired circle + circle {
    stroke: #b42318;
    stroke-dasharray: 0 1;
}

.panel-choice-modal {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.panel-choice-modal .modal-header {
    border-bottom: 1px solid var(--line);
}

.panel-choice-modal .modal-title {
    color: var(--primary);
    font-weight: 700;
}

.panel-choice-text {
    color: var(--muted);
    margin-bottom: 16px;
}

.panel-choice-grid {
    display: grid;
    gap: 12px;
}

.panel-choice-form {
    margin: 0;
}

.panel-choice-button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fbfdff;
    text-align: left;
    transition: var(--transition);
}

.panel-choice-button:hover,
.panel-choice-button:focus {
    border-color: var(--accent);
    background: var(--soft-blue);
    box-shadow: var(--shadow-sm);
}

.panel-choice-button i {
    display: inline-grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--primary);
    font-size: 1.25rem;
}

.panel-choice-button strong,
.panel-choice-button small {
    display: block;
}

.panel-choice-button strong {
    color: var(--primary);
    font-weight: 700;
}

.panel-choice-button small {
    margin-top: 2px;
    color: var(--muted);
    font-weight: 500;
}

.header-cta {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    padding: 70px 0 82px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 99px;
}

h1,
h2,
h3 {
    letter-spacing: 0;
}

h1 {
    max-width: 880px;
    margin: 18px 0;
    font-size: clamp(2.15rem, 4.8vw, 4.35rem);
    line-height: 1.04;
    color: var(--primary);
    font-weight: 700;
}

.lead {
    max-width: 740px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-panel,
.process-card,
.application-form,
.board-card,
.soft-table-wrap,
.rule-notes {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 28px;
}

.hero-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-weight: 700;
}

.hero-panel-head i {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--primary);
    background: var(--soft-blue);
    border-radius: 12px;
    font-size: 1.35rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.summary-grid div {
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.summary-grid strong {
    display: block;
    font-size: 1.5rem;
}

.summary-grid span,
.hero-panel p,
.section-title p,
.process-card p,
.rule-notes p {
    color: var(--muted);
}

.section-pad {
    padding: 74px 0;
}

.section-title {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-title h2 {
    margin: 12px 0 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
    font-weight: 700;
}

.process-card {
    padding: 28px;
}

.accent-card {
    background: linear-gradient(160deg, #ffffff 0%, #edf8f2 100%);
}

.icon-chip {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--soft-blue);
    color: var(--primary);
    font-size: 1.35rem;
}

.timeline-list {
    display: grid;
    gap: 14px;
    padding-left: 1.3rem;
    color: #334155;
}

.timeline-list li::marker {
    color: var(--primary);
    font-weight: 700;
}

.soft-note {
    margin-top: 22px;
    padding: 16px;
    border-radius: 12px;
    color: #355069;
    background: var(--soft-blue);
}

.form-section {
    background: #fff;
}

.application-form {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 26px;
    background: #f7f9fc;
    counter-reset: form-step;
}

.form-progress {
    height: 6px;
    overflow: hidden;
    margin: 0 0 22px;
    border-radius: 99px;
    background: #e7edf5;
}

.form-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.form-block {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.form-block + .form-block {
    margin-top: 16px;
}

.form-block:first-of-type {
    padding-top: 22px;
}

.form-block legend {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
}

.form-block legend::before {
    counter-increment: form-step;
    content: counter(form-step);
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-size: .9rem;
}

.form-label {
    color: #334155;
    font-weight: 700;
    min-height: 26px;
    margin-bottom: 7px;
}

.application-form .form-block:first-of-type .form-label {
    display: flex;
    align-items: flex-end;
    min-height: 44px;
    line-height: 1.25;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 48px;
    border-color: #dbe4ef;
    border-radius: 10px;
    background-color: #fff;
}

textarea.form-control {
    min-height: 110px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(23, 105, 224, .7);
    box-shadow: 0 0 0 .25rem rgba(23, 105, 224, .12);
}

.duration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
}

.choice-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.choice-row.wrap {
    flex-wrap: wrap;
}

.choice-row .btn {
    min-width: 86px;
    min-height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-primary {
    --bs-btn-color: #275583;
    --bs-btn-border-color: #c8d8ea;
    --bs-btn-hover-bg: #eaf4ff;
    --bs-btn-hover-border-color: #9bc0ea;
    --bs-btn-hover-color: var(--primary);
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
}

.mini-input {
    max-width: 110px;
}

.allocation-help {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #526174;
    background: #fbfcfe;
    font-size: .82rem;
    line-height: 1.35;
}

.allocation-help strong {
    color: var(--primary);
}

.allocation-block {
    border-color: #d8e5f2;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.preference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.preference-helper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #d8e5f2;
    border-radius: 12px;
    color: #334155;
    background: #f8fbff;
    font-size: .92rem;
    font-weight: 600;
}

.preference-helper i {
    color: var(--primary);
    font-size: 1.1rem;
}

.preference-card {
    display: flex;
    gap: 12px;
    min-height: 82px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
    cursor: pointer;
    transition: .2s ease;
}

.housing-preference-card {
    align-items: flex-start;
}

.preference-card:hover {
    border-color: #9bc0ea;
    transform: translateY(-2px);
}

.housing-preference-card.is-selected {
    border-color: var(--primary);
    background: #eef6ff;
}

.preference-card input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
}

.preference-rank {
    display: inline-grid;
    flex: 0 0 34px;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-top: -2px;
    border-radius: 999px;
    color: var(--muted);
    background: #eef2f7;
    font-size: .9rem;
    font-weight: 800;
}

.housing-preference-card.is-selected .preference-rank {
    color: #fff;
    background: var(--primary);
}

.preference-card span {
    display: grid;
    gap: 4px;
}

.preference-card small {
    color: var(--muted);
}

.preference-card em {
    color: var(--secondary);
    font-size: .84rem;
    font-style: normal;
    font-weight: 700;
}

.empty-preference-state {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 150px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: var(--muted);
    background: #fff;
    text-align: center;
}

.empty-preference-state i {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: var(--primary);
    background: var(--soft-blue);
    font-size: 1.25rem;
}

.empty-preference-state strong {
    color: var(--primary);
}

.declaration-box {
    padding: 18px 18px 18px 46px;
    border: 1px solid #d8efe5;
    border-radius: 12px;
    background: var(--soft-green);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    padding: 22px;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.submit-alert {
    padding-top: 92px;
}

.soft-table-wrap {
    overflow: hidden;
    border-radius: 16px;
}

.table {
    --bs-table-bg: transparent;
}

.table thead th {
    color: #475569;
    background: #f5f8fc;
    border-bottom: 1px solid var(--line);
}

.table td,
.table th {
    padding: 17px 18px;
}

.room-pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--soft-blue);
    font-weight: 700;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.plan-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(31, 45, 71, .08);
}

.plan-card a {
    display: block;
    color: var(--ink);
}

.plan-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eef3f8;
}

.plan-card span {
    display: block;
    padding: 14px 15px;
    font-weight: 700;
}

.rule-section {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.sticky-title {
    position: sticky;
    top: 110px;
}

.rule-document-actions {
    display: grid;
    gap: 10px;
    justify-items: flex-start;
    margin-top: 18px;
}

.rule-document-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-align: left;
    white-space: normal;
}

.score-grid {
    display: grid;
    gap: 12px;
}

.score-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.score-item strong {
    display: inline-grid;
    place-items: center;
    height: 44px;
    border-radius: 12px;
    color: #0f766e;
    background: #e6f7f3;
    font-size: 1.1rem;
}

.score-item span {
    color: #334155;
    font-weight: 650;
}

.score-item small {
    display: block;
    margin-top: 4px;
    color: #b42318;
    font-size: .76rem;
    font-weight: 500;
}

.rule-notes {
    margin-top: 18px;
    padding: 20px;
}

.rates-section {
    background: #fff;
}

.rates-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-md);
}

.total-housing-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #d8e5f2;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
}

.rates-summary-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.rates-summary-row .total-housing-box {
    margin-bottom: 0;
}

.total-housing-box span {
    color: var(--primary);
    font-weight: 700;
}

.total-housing-box strong {
    color: var(--primary);
    font-size: 2.2rem;
    line-height: 1;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rate-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfcfe;
}

.rate-card.quota-open {
    border-color: #bde7d2;
    background: #f0fbf5;
}

.rate-card.quota-closed {
    border-color: #f3c4ce;
    background: #fff1f4;
}

.rate-card span {
    display: block;
    min-height: 44px;
    color: #334155;
    font-weight: 700;
}

.rate-card strong {
    display: block;
    margin: 10px 0 4px;
    color: var(--primary);
    font-size: 2rem;
}

.rate-card em {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: .9rem;
    font-style: normal;
    font-weight: 700;
}

.rate-card em span {
    display: block;
}

.quota-warning,
.quota-available {
    min-height: 56px;
    margin: 0 0 14px;
    font-size: .86rem;
    line-height: 1.45;
    font-weight: 650;
}

.quota-warning {
    color: #b42318;
}

.quota-modal {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.quota-modal .modal-header {
    align-items: flex-start;
    color: #fff;
    background: linear-gradient(135deg, #b42318 0%, #d92d20 100%);
}

.quota-modal .eyebrow {
    color: rgba(255, 255, 255, .82);
}

.quota-modal .modal-title {
    margin-top: 6px;
    font-weight: 750;
}

.quota-modal .modal-body {
    color: #7a271a;
    background: #fff7f8;
    font-weight: 650;
    line-height: 1.65;
}

.quota-available {
    color: #087443;
}

.rate-card.quota-closed .rate-bar {
    background: #f8d7de;
}

.rate-card.quota-closed .rate-bar i {
    background: linear-gradient(90deg, #d92d20, #f97066);
}

.rate-card.quota-open .rate-bar {
    background: #d8f3e4;
}

.rate-card.quota-open .rate-bar i {
    background: linear-gradient(90deg, #079455, #12b76a);
}

.rate-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf5;
}

.rate-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.queue-rates {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.queue-rates h3 {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.rate-card.subtle {
    background: #fff;
}

.board-card {
    overflow: hidden;
    padding: 0;
    border-radius: 16px;
}

.board-card h3 {
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #d8e5f2;
    color: var(--primary);
    background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%);
    font-size: 1.2rem;
    font-weight: 700;
}

.member-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
}

.board-card h3 + .member-row {
    border-top: 0;
}

.member-row span {
    font-weight: 750;
}

.member-row small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-weight: 600;
}

.member-row a {
    color: var(--primary);
    font-weight: 700;
}

.results-section {
    background: linear-gradient(180deg, rgba(238, 246, 255, .72) 0%, rgba(255, 255, 255, .9) 100%);
}

.results-panel {
    overflow: hidden;
    border: 1px solid rgba(216, 229, 242, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.results-table thead th {
    color: var(--primary);
    background: rgba(238, 246, 255, .9);
    border-bottom: 1px solid #d8e5f2;
    font-weight: 700;
}

.results-table td,
.results-table th {
    padding: 16px 18px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 700;
}

.status-pill.success {
    color: #166534;
    background: #dcfce7;
}

.status-pill.warning {
    color: #92400e;
    background: #fef3c7;
}

.status-pill.neutral {
    color: var(--primary);
    background: #e0ecff;
}

.results-note {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px 18px;
    color: #475569;
    background: rgba(248, 250, 252, .86);
    border-top: 1px solid #e9ecef;
    font-size: .95rem;
}

.results-note i {
    color: var(--accent);
    font-size: 1.2rem;
}

.special-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.special-modal .modal-header {
    color: #fff;
    background: var(--primary);
}

.special-modal .modal-title {
    font-weight: 700;
}

.special-modal .modal-lead {
    color: #475569;
}

.special-info-grid {
    display: grid;
    gap: 14px;
    margin: 18px 0;
}

.special-info-grid > div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
}

.special-info-grid h6 {
    color: var(--primary);
    font-weight: 700;
}

.special-info-grid ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
    color: #475569;
}

.site-footer {
    padding: 56px 0;
    color: #fff;
    background: var(--primary);
}

.site-footer .eyebrow,
.site-footer p {
    color: rgba(255, 255, 255, .76);
}

.site-footer .eyebrow::before {
    background: #55d6be;
}

.site-footer h2 {
    font-weight: 700;
}

.copyright {
    margin-top: 18px;
    font-size: .92rem;
}

.pdf-render-root {
    position: fixed;
    left: -99999px;
    top: 0;
    width: 794px;
    background: #fff;
}

.pdf-sheet {
    width: 794px;
    padding: 34px;
    color: #1f2937;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.pdf-header {
    display: grid;
    grid-template-columns: 92px 1fr 92px;
    gap: 18px;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 3px solid var(--primary);
    text-align: center;
}

.pdf-header img {
    max-width: 92px;
    max-height: 78px;
    object-fit: contain;
}

.pdf-header h1 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 22px;
    line-height: 1.2;
}

.pdf-header p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
}

.pdf-sheet section {
    margin-top: 16px;
    break-inside: avoid;
}

.pdf-sheet h2 {
    margin: 0;
    padding: 9px 12px;
    color: var(--primary);
    background: #eef6ff;
    border: 1px solid #d8e5f2;
    border-bottom: 0;
    font-size: 15px;
}

.pdf-sheet table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pdf-sheet th,
.pdf-sheet td {
    padding: 8px 10px;
    border: 1px solid #d8e5f2;
    vertical-align: top;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
}

.pdf-sheet th {
    width: 34%;
    color: #334155;
    background: #f8fafc;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 56px;
    }

    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rates-grid,
    .rates-summary-row {
        grid-template-columns: 1fr;
    }

    .sticky-title {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .header-logo {
        max-height: 54px;
    }

    .header-logo-secondary {
        max-height: 60px;
    }

    .logo-container {
        gap: .75rem;
    }

    .site-nav {
        padding-bottom: .6rem;
    }

    .site-nav .navbar-nav {
        padding-top: .5rem;
    }

    .hero-section,
    .section-pad {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-section {
        padding-bottom: 54px;
        text-align: center;
    }

    h1 {
        font-size: 2.25rem;
        margin-left: auto;
        margin-right: auto;
    }

    .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section .eyebrow {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-panel,
    .application-form,
    .process-card,
    .board-card {
        border-radius: 16px;
    }

    .application-form {
        padding: 14px;
    }

    .form-block {
        padding: 16px;
    }

    .form-block:first-of-type {
        padding-top: 16px;
    }

    .form-block legend {
        align-items: flex-start;
        font-size: 1rem;
    }

    .form-actions {
        justify-content: stretch;
        padding: 16px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .summary-grid,
    .preference-grid,
    .duration-grid,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .choice-row {
        flex-wrap: wrap;
    }

    .mini-input {
        max-width: 100%;
        flex: 1 1 120px;
    }

    .score-item {
        grid-template-columns: 62px 1fr;
    }

    .member-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
