html {
    font-size: 14px;
    min-height: 100%;
    background: #f3f5f7;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

:root {
    --bc-primary: #166F79;
    --bc-primary-dark: #115f68;
    --bc-button: #4f9bb4;
    --bc-button-dark: #3f8ca4;
    --bc-focus: rgba(22, 111, 121, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 32px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    background: #f3f5f7;
    color: #212529;
    font-family: Calibri, Arial, sans-serif;
}

.page-shell {
    width: 100%;
    max-width: 800px;
    min-width: 0;
    margin: auto 0;
}

.recon-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

.recon-hero {
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%);
    color: #ffffff;
    text-align: center;
}

.recon-hero--success {
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%);
}

.recon-hero--danger {
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%);
}

.recon-hero-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
}

.recon-hero-subtitle {
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    opacity: 0.96;
}

.recon-content {
    padding: 32px;
}

.recon-greeting,
.recon-text,
.recon-note {
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.7;
}

.recon-greeting {
    margin-bottom: 20px;
}

.recon-text {
    margin-bottom: 24px;
}

.recon-note {
    margin: 24px 0 28px;
}

.recon-table-wrap {
    margin-top: 8px;
}

.recon-table {
    margin-bottom: 0;
}

.recon-table thead th {
    border-bottom-width: 1px;
    font-weight: 700;
}

.recon-table td,
.recon-table th {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    vertical-align: middle;
}

.recon-actions {
    margin-top: 8px;
}

.response-card {
    max-width: 720px;
    margin: 0 auto;
}

.response-content {
    padding: 32px;
}

.response-form {
    display: grid;
    gap: 20px;
}

.form-field {
    min-width: 0;
}

.form-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-control,
.form-control:focus {
    border-color: #d1d5db;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem var(--bc-focus);
}

.response-actions {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.response-actions .btn {
    min-width: 130px;
}

.btn-recon-submit {
    background-color: var(--bc-button);
    border-color: var(--bc-button);
    color: #ffffff;
}

.btn-recon-submit:hover,
.btn-recon-submit:focus,
.btn-recon-submit:active {
    background-color: var(--bc-button-dark);
    border-color: var(--bc-button-dark);
    color: #ffffff;
}

.btn-recon-action {
    background-color: var(--bc-button);
    border-color: var(--bc-button);
    color: #ffffff;
    min-width: 140px;
}

.btn-recon-action:hover,
.btn-recon-action:focus,
.btn-recon-action:active {
    background-color: var(--bc-button-dark);
    border-color: var(--bc-button-dark);
    color: #ffffff;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (max-width: 576px) {
    body {
        padding: 12px;
    }

    .recon-hero,
    .recon-content {
        padding: 22px 16px;
    }

    .recon-hero-title {
        font-size: 1.65rem;
    }

    .recon-greeting,
    .recon-text,
    .recon-note {
        font-size: 1rem;
    }
}

/* =========================================================
   6Gen Response Hub - BC style public response pages
   ========================================================= */
.hub-card {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d8dde3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

.hub-hero {
    padding: 24px 30px;
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%);
    color: #ffffff;
    text-align: center;
}

.hub-hero--reject {
    background: linear-gradient(135deg, #166f79 0%, #115f68 100%);
}

.hub-hero-kicker {
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
}

.hub-hero-title {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 700;
}

.hub-hero-subtitle {
    margin-top: 8px;
    font-size: 0.96rem;
    opacity: 0.96;
}

.hub-content {
    padding: 26px 30px 30px;
}

.hub-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 6px;
}

.hub-status--success {
    color: #155b35;
    background: #eaf7f0;
    border-color: #b7dec8;
}

.hub-status--error {
    color: #8a1f2d;
    background: #fff0f1;
    border-color: #efc1c7;
}

.hub-status-icon {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-weight: 700;
    line-height: 1;
}

.hub-status-title {
    margin-bottom: 2px;
    font-weight: 700;
}

.hub-status-text {
    line-height: 1.45;
}

.hub-fasttab {
    margin-bottom: 20px;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.hub-fasttab-caption {
    padding: 9px 14px;
    background: #f5f6f7;
    border-bottom: 1px solid #d8dde3;
    color: #263238;
    font-size: 0.98rem;
    font-weight: 700;
}

.hub-fasttab-body {
    padding: 18px;
}

.hub-table-body {
    padding: 0;
}

.hub-info-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 0;
}

.hub-info-label,
.hub-info-value {
    min-width: 0;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f2;
}

.hub-info-grid > :nth-last-child(-n+2) {
    border-bottom: 0;
}

.hub-info-label {
    color: #68737d;
    font-size: 0.9rem;
    font-weight: 600;
}

.hub-info-value {
    color: #20272d;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.hub-mono {
    font-variant-numeric: tabular-nums;
}

.hub-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.hub-table th,
.hub-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e6e9;
    text-align: left;
    vertical-align: middle;
}

.hub-table th {
    background: #f5f6f7;
    color: #505b65;
    font-size: 0.88rem;
    font-weight: 700;
}

.hub-table tbody tr:last-child td {
    border-bottom: 0;
}

.hub-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.hub-response-form {
    margin: 0;
}

.hub-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.hub-field {
    min-width: 0;
}

.hub-field--half {
    grid-column: auto;
}

.hub-label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
}

.hub-required {
    color: #b42335;
}

.hub-input {
    min-height: 40px;
    border: 1px solid #b9c0c7;
    border-radius: 3px;
    background-color: #ffffff;
    font-size: 0.96rem;
}

.hub-input:hover {
    border-color: #8e989f;
}

.hub-input:focus {
    border-color: var(--bc-primary);
    box-shadow: 0 0 0 2px var(--bc-focus);
}

.hub-textarea {
    min-height: 112px;
    resize: vertical;
}

.hub-file-field {
    margin-top: 18px;
}

.hub-file-input {
    padding: 0.38rem 0.6rem;
}

.hub-help {
    margin-top: 7px;
    color: #6c757d;
    font-size: 0.82rem;
    line-height: 1.4;
}

.hub-validation,
.hub-validation-summary {
    display: block;
    margin-top: 6px;
    font-size: 0.86rem;
}


.hub-input.input-validation-error {
    border-color: #b42335;
    box-shadow: 0 0 0 1px rgba(180, 35, 53, 0.08);
}

.hub-input.input-validation-error:focus {
    border-color: #b42335;
    box-shadow: 0 0 0 2px rgba(180, 35, 53, 0.12);
}

.hub-validation.field-validation-error {
    color: #b42335;
    font-weight: 600;
}

.hub-validation-summary:empty {
    display: none;
}

.hub-validation-summary:not(:empty) {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #efc1c7;
    border-radius: 4px;
    background: #fff0f1;
    color: #8a1f2d;
}

.hub-validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.hub-actionbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 4px;
    padding: 18px;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    background: #f8f9fa;
}

.hub-action-note {
    color: #5b6570;
    font-size: 0.88rem;
    line-height: 1.45;
}

.hub-btn {
    flex: 0 0 auto;
    min-width: 190px;
    padding: 9px 18px;
    border-radius: 3px;
    color: #ffffff;
    font-weight: 600;
}

.hub-btn--accept {
    background: var(--bc-primary);
    border-color: var(--bc-primary);
}

.hub-btn--accept:hover,
.hub-btn--accept:focus {
    background: var(--bc-primary-dark);
    border-color: var(--bc-primary-dark);
    color: #ffffff;
}

.hub-btn--reject {
    background: var(--bc-primary);
    border-color: var(--bc-primary);
}

.hub-btn--reject:hover,
.hub-btn--reject:focus {
    background: var(--bc-primary-dark);
    border-color: var(--bc-primary-dark);
    color: #ffffff;
}

.hub-complete-note {
    padding: 5px 2px 0;
    color: #68737d;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 767px) {
    .hub-hero {
        padding: 20px;
    }

    .hub-hero-title {
        font-size: 1.5rem;
    }

    .hub-content {
        padding: 18px;
    }

    .hub-info-grid {
        grid-template-columns: 1fr;
    }

    .hub-info-label {
        padding-bottom: 2px;
        border-bottom: 0;
    }

    .hub-info-value {
        padding-top: 0;
    }

    .hub-info-grid > :nth-last-child(-n+2) {
        border-bottom: initial;
    }

    .hub-info-grid > .hub-info-value:last-child {
        border-bottom: 0;
    }

    .hub-form-grid {
        grid-template-columns: 1fr;
    }

    .hub-field--half {
        grid-column: auto;
    }

    .hub-actionbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hub-btn {
        width: 100%;
        min-width: 0;
    }

    .hub-table th,
    .hub-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }
}

/* Central Web Portal landing page */
.hub-portal-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    background: #f8f9fa;
}

.hub-portal-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.hub-btn--secondary {
    background: #ffffff;
    border: 1px solid var(--bc-primary);
    color: var(--bc-primary);
}

.hub-btn--secondary:hover,
.hub-btn--secondary:focus {
    background: #eef7f8;
    border-color: var(--bc-primary-dark);
    color: var(--bc-primary-dark);
}

@media (max-width: 767px) {
    .hub-portal-choice {
        align-items: stretch;
        flex-direction: column;
    }

    .hub-portal-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hub-portal-buttons .hub-btn {
        width: 100%;
    }
}
