/**
 * AgeBound Experience Suite – Hotel Confidence Finder Styles
 *
 * Scoped under .abx-hcf to prevent leakage.
 */

.abx-hcf {
    --abx-hcf-bg: #F5F2ED;
    --abx-hcf-surface: #ffffff;
    --abx-hcf-text: #21313c;
    --abx-hcf-muted: #5f6c75;
    --abx-hcf-primary: #2E8B57; /* Sage green / Trust accent */
    --abx-hcf-secondary: #1A365D; /* Navy / Headings */
    --abx-hcf-warm: #F3D5C2; /* Peach CTA */
    --abx-hcf-border: rgba(26, 54, 93, 0.1);
    --abx-hcf-shadow: 0 18px 50px rgba(21, 32, 44, 0.08);
    --abx-hcf-shadow-sm: 0 6px 20px rgba(21, 32, 44, 0.05);
    --abx-hcf-radius: 18px;
    --abx-hcf-radius-sm: 12px;
    --abx-hcf-radius-xs: 8px;
    --abx-hcf-radius-pill: 100px;
    --abx-hcf-font-serif: Georgia, 'Times New Roman', serif;
    --abx-hcf-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    font-family: var(--abx-hcf-font-sans);
    color: var(--abx-hcf-text);
    line-height: 1.6;
    box-sizing: border-box;
}

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

/* ──────────────────────────────────────────────
 * Hero / Intro Section
 * ────────────────────────────────────────────── */
.abx-hcf-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 3.5rem 2.5rem;
    background: #FAF8F5; /* Warm cream/beige */
    border: 1px solid var(--abx-hcf-border);
    border-radius: var(--abx-hcf-radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--abx-hcf-shadow-sm);
}

/* Subtle decorative CSS shapes to make it feel premium */
.abx-hcf-hero::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243,213,194,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.abx-hcf-hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,139,87,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.abx-hcf-hero-left {
    flex: 1.25;
    z-index: 1;
}

.abx-hcf-kicker {
    font-family: var(--abx-hcf-font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--abx-hcf-primary);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.abx-hcf-hero-left h1 {
    font-family: var(--abx-hcf-font-serif);
    color: var(--abx-hcf-secondary); /* Navy */
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.5rem 0 1.25rem 0;
    letter-spacing: -0.02em;
}

.abx-hcf-hero-desc {
    color: var(--abx-hcf-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 680px;
}

.abx-hcf-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.abx-hcf-benefit-chip {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--abx-hcf-secondary);
    background: #ffffff;
    border: 1px solid rgba(26, 54, 93, 0.08);
    padding: 0.4rem 0.88rem;
    border-radius: var(--abx-hcf-radius-pill);
    box-shadow: 0 2px 6px rgba(26, 54, 93, 0.02);
}

.abx-hcf-hero-right {
    flex: 0.75;
    z-index: 1;
    min-width: 300px;
}

/* Preview Card Style */
.abx-hcf-preview-card {
    background: #ffffff;
    border: 1px solid var(--abx-hcf-border);
    border-radius: var(--abx-hcf-radius-sm);
    padding: 1.5rem;
    box-shadow: var(--abx-hcf-shadow);
    position: relative;
    border-top: 4px solid var(--abx-hcf-primary); /* Green accent */
}

.abx-hcf-preview-card h3 {
    font-family: var(--abx-hcf-font-serif);
    color: var(--abx-hcf-secondary);
    margin: 0 0 1rem 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.abx-hcf-preview-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.abx-hcf-preview-list li {
    font-size: 0.85rem;
    color: var(--abx-hcf-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.abx-hcf-preview-list li:last-child {
    margin-bottom: 0;
}

.abx-preview-icon {
    font-size: 1rem;
}

.abx-hcf-preview-badge-row {
    border-top: 1px dashed var(--abx-hcf-border);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.abx-hcf-preview-badge-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--abx-hcf-muted);
    letter-spacing: 0.05em;
}

.abx-hcf-preview-visual {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.abx-hcf-preview-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--abx-hcf-secondary);
}

.abx-hcf-preview-denom {
    font-size: 0.8rem;
    color: var(--abx-hcf-muted);
    margin-right: 0.5rem;
}

/* ──────────────────────────────────────────────
 * Form Card
 * ────────────────────────────────────────────── */
.abx-hcf-form-card {
    background: var(--abx-hcf-surface);
    border: 1px solid var(--abx-hcf-border);
    border-radius: var(--abx-hcf-radius);
    padding: 2.5rem;
    box-shadow: var(--abx-hcf-shadow);
    margin-bottom: 3.5rem;
}

.abx-hcf-form-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--abx-hcf-border);
    padding-bottom: 1.25rem;
}

.abx-hcf-form-header h2 {
    font-family: var(--abx-hcf-font-serif);
    color: var(--abx-hcf-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.abx-hcf-form-header p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--abx-hcf-muted);
}

.abx-hcf-form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.abx-hcf-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.abx-hcf-group-city {
    flex: 2;
}

.abx-hcf-group-state {
    flex: 1;
}

.abx-hcf-form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--abx-hcf-secondary);
    margin-bottom: 0.5rem;
}

.abx-hcf-form-group label .abx-required {
    color: #c0392b;
}

.abx-hcf-form-group input[type="text"],
.abx-hcf-form-group select {
    font-family: var(--abx-hcf-font-sans);
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--abx-hcf-border);
    border-radius: var(--abx-hcf-radius-xs);
    background-color: #faf9f6;
    color: var(--abx-hcf-text);
    outline: none;
    transition: all 0.25s ease;
}

.abx-hcf-form-group input[type="text"]:focus,
.abx-hcf-form-group select:focus {
    border-color: var(--abx-hcf-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

/* Amenities Checkboxes */
.abx-hcf-amenities-section {
    border-top: 1px dashed var(--abx-hcf-border);
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.abx-hcf-section-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--abx-hcf-secondary);
    margin-bottom: 1rem;
}

.abx-hcf-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.abx-hcf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--abx-hcf-text);
    cursor: pointer;
    user-select: none;
}

.abx-hcf-checkbox-label input[type="checkbox"] {
    appearance: none;
    background-color: #faf9f6;
    margin: 0;
    font: inherit;
    color: var(--abx-hcf-primary);
    width: 18px;
    height: 18px;
    border: 1px solid var(--abx-hcf-border);
    border-radius: 4px;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.abx-hcf-checkbox-label input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: currentColor;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.abx-hcf-checkbox-label input[type="checkbox"]:checked {
    background-color: var(--abx-hcf-primary);
    border-color: var(--abx-hcf-primary);
    color: #ffffff;
}

.abx-hcf-checkbox-label input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.abx-hcf-checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15);
}

/* Actions */
.abx-hcf-form-actions-wrapper {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--abx-hcf-border);
    padding-top: 1.5rem;
}

.abx-hcf-form-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.abx-hcf-reset-link {
    font-size: 0.9rem;
    color: var(--abx-hcf-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.abx-hcf-reset-link:hover {
    color: var(--abx-hcf-secondary);
    text-decoration: underline;
}

/* Loading Strip Styling */
.abx-hcf-loading-strip {
    display: none; /* Hidden by default, shown on submit */
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.88rem 1.25rem;
    background-color: #faf9f6;
    border: 1px dashed rgba(46, 139, 87, 0.25);
    border-radius: var(--abx-hcf-radius-xs);
    position: relative;
    overflow: hidden;
}

.abx-hcf-is-submitting .abx-hcf-loading-strip {
    display: flex;
}

.abx-hcf-loading-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--abx-hcf-primary);
}

.abx-hcf-loading-dots span {
    animation: abxDotPulse 1.5s infinite both;
    font-weight: 700;
    color: var(--abx-hcf-primary);
    display: inline-block;
}

.abx-hcf-loading-dots span:nth-child(2) {
    animation-delay: .2s;
}

.abx-hcf-loading-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes abxDotPulse {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.abx-hcf-shimmer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--abx-hcf-primary), transparent);
    background-size: 200% 100%;
    animation: abxShimmer 1.5s infinite linear;
}

@keyframes abxShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ──────────────────────────────────────────────
 * Shared Buttons
 * ────────────────────────────────────────────── */
.abx-hcf .abx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--abx-hcf-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: var(--abx-hcf-radius-pill);
    padding: 0.8rem 2.2rem;
    transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
    line-height: 1.3;
}

.abx-hcf .abx-btn-primary {
    background: var(--abx-hcf-warm);
    color: var(--abx-hcf-secondary);
    box-shadow: 0 2px 5px rgba(26, 54, 93, 0.08);
}

.abx-hcf .abx-btn-primary:hover {
    background: #eec1a4;
    transform: translateY(-2px);
    box-shadow: var(--abx-hcf-shadow-sm);
}

.abx-hcf .abx-btn-primary:disabled {
    background: #e2dcd5;
    color: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.abx-hcf .abx-btn-secondary {
    background: var(--abx-hcf-secondary);
    color: #ffffff;
}

.abx-hcf .abx-btn-secondary:hover {
    background: #10233e;
    transform: translateY(-2px);
    box-shadow: var(--abx-hcf-shadow-sm);
}

/* ──────────────────────────────────────────────
 * Notice Panels (Warning, Empty)
 * ────────────────────────────────────────────── */
.abx-hcf-notice {
    padding: 1.5rem 2rem;
    border-radius: var(--abx-hcf-radius-sm);
    margin-bottom: 2rem;
}

.abx-hcf-notice-warning {
    background-color: #fdf2e9;
    border-left: 4px solid #e67e22;
    color: #7f8c8d;
}

.abx-hcf-notice-empty {
    background-color: #f9f9fb;
    border: 1px solid var(--abx-hcf-border);
    text-align: center;
    padding: 3.5rem 2rem;
}

.abx-hcf-notice-empty h3 {
    font-family: var(--abx-hcf-font-serif);
    color: var(--abx-hcf-secondary);
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.abx-hcf-notice-empty p {
    color: var(--abx-hcf-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ──────────────────────────────────────────────
 * Results Header / Summary
 * ────────────────────────────────────────────── */
#abx-hcf-results {
    scroll-margin-top: 110px;
}

.abx-hcf-summary {
    background-color: #FAF8F5;
    border: 1px solid var(--abx-hcf-border);
    border-radius: var(--abx-hcf-radius);
    padding: 2.25rem;
    margin-bottom: 2.5rem;
}

.abx-hcf-summary-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--abx-hcf-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.abx-hcf-summary-title-row h2 {
    font-family: var(--abx-hcf-font-serif);
    color: var(--abx-hcf-secondary);
    font-size: 1.75rem;
    margin: 0;
}

.abx-hcf-match-mode {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--abx-hcf-muted);
    font-weight: 600;
}

.abx-hcf-summary-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.abx-hcf-summary-score-card,
.abx-hcf-summary-count-card {
    flex: 1;
    min-width: 250px;
}

.abx-hcf-summary-score-label,
.abx-hcf-summary-count-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--abx-hcf-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.abx-hcf-summary-score-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.abx-hcf-summary-score-value .abx-score-num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--abx-hcf-secondary);
    line-height: 1;
}

.abx-hcf-summary-score-value .abx-score-denom {
    font-size: 1rem;
    color: var(--abx-hcf-muted);
    margin-right: 0.5rem;
}

.abx-hcf-summary-count-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--abx-hcf-secondary);
    line-height: 1;
}

.abx-hcf-active-chips {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    border-top: 1px dashed var(--abx-hcf-border);
    padding-top: 1rem;
}

.abx-hcf-chips-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--abx-hcf-secondary);
}

.abx-hcf-chips-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.abx-hcf-chip {
    font-size: 0.8rem;
    background: rgba(26, 54, 93, 0.05);
    color: var(--abx-hcf-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--abx-hcf-radius-pill);
    font-weight: 500;
}

/* ──────────────────────────────────────────────
 * Hotel Grid / Card
 * ────────────────────────────────────────────── */
.abx-hcf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.abx-hcf-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fff 72%, #fcfaf7 100%);
    border: 1px solid rgba(10, 25, 47, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(10, 25, 47, 0.06);
    padding: clamp(24px, 2.5vw, 34px);
    display: flex;
    flex-direction: column;
    min-height: 560px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.abx-hcf-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
    transition: background 0.25s ease;
}

.abx-hcf-card--excellent::before { background: #137333; }
.abx-hcf-card--strong::before    { background: #137333; } /* Unified Green */
.abx-hcf-card--good::before      { background: #1A73E8; } /* Unified Blue/Navy */
.abx-hcf-card--decent::before    { background: #B06000; } /* Unified Amber */
.abx-hcf-card--limited::before   { background: #C5221F; } /* Unified Red */

.abx-hcf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(10, 25, 47, 0.10);
}

.abx-hcf-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.abx-hcf-card-title-section {
    flex: 1;
}

.abx-hcf-hotel-name {
    margin: 0 0 0.35rem 0;
    font-family: var(--abx-hcf-font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.abx-hcf-hotel-name a {
    color: var(--abx-hcf-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.abx-hcf-hotel-name a:hover {
    color: var(--abx-hcf-primary);
}

.abx-hcf-hotel-address {
    margin: 0;
    font-size: 0.85rem;
    color: var(--abx-hcf-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.abx-hcf-card-score-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.abx-hcf-score {
    display: flex;
    align-items: baseline;
    line-height: 1;
}

.abx-hcf-score .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--abx-hcf-secondary);
}

.abx-hcf-score .suffix {
    font-size: 0.85rem;
    color: var(--abx-hcf-muted);
    font-weight: 600;
}

.abx-hcf-score-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.7rem;
    border-radius: var(--abx-hcf-radius-pill);
    white-space: nowrap;
    border: 1px solid transparent;
}

.abx-hcf-score-badge--excellent {
    background-color: #E6F4EA;
    color: #137333;
    border-color: rgba(19, 115, 51, 0.15);
}

.abx-hcf-score-badge--strong {
    background-color: #E6F4EA;
    color: #137333;
    border-color: rgba(19, 115, 51, 0.15);
}

.abx-hcf-score-badge--good {
    background-color: #E8F0FE;
    color: #1A73E8;
    border-color: rgba(26, 115, 232, 0.15);
}

.abx-hcf-score-badge--decent {
    background-color: #FEF7E0;
    color: #B06000;
    border-color: rgba(176, 96, 0, 0.15);
}

.abx-hcf-score-badge--limited {
    background-color: #FCE8E6;
    color: #C5221F;
    border-color: rgba(197, 34, 31, 0.15);
}

/* Card Body */
.abx-hcf-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.abx-hcf-metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #f8f5ef;
    border: 1px solid rgba(10, 25, 47, 0.06);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
}

.abx-hcf-metric {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.abx-hcf-metric strong {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--abx-hcf-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.abx-hcf-metric-icon {
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
}

.abx-hcf-metric span {
    font-size: 0.72rem;
    color: var(--abx-hcf-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.15rem;
}

/* Signal Badge Row */
.abx-hcf-signal-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.abx-hcf-policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    border: 1px solid transparent;
}

.abx-hcf-policy-icon {
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
}

.abx-hcf-policy-badge-allowed {
    background-color: #EBFDF5;
    color: #1F513B;
    border-color: rgba(31, 81, 59, 0.15);
}

.abx-hcf-policy-badge-all {
    background-color: #EBFDF5;
    color: #1F513B;
    border-color: rgba(31, 81, 59, 0.15);
}

.abx-hcf-policy-badge-eighteen {
    background-color: #f4ecf7;
    color: #6c3483;
    border-color: rgba(108, 52, 131, 0.15);
}

.abx-hcf-policy-badge-twentyone {
    background-color: #ebf5fb;
    color: #21618c;
    border-color: rgba(33, 97, 140, 0.15);
}

.abx-hcf-policy-badge-denied {
    background-color: #FCE8E6;
    color: #C5221F;
    border-color: rgba(197, 34, 31, 0.15);
}

.abx-hcf-policy-badge-unclear {
    background-color: #FEF7E0;
    color: #B06000;
    border-color: rgba(176, 96, 0, 0.15);
}

.abx-hcf-policy-badge-matched {
    background-color: #EBFDF5;
    color: #1F513B;
    border-color: rgba(31, 81, 59, 0.15);
}

.abx-hcf-policy-badge-trust {
    background-color: #E8F0FE;
    color: #1A73E8;
    border-color: rgba(26, 115, 232, 0.15);
}

/* Feature Chips */
.abx-hcf-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.25rem;
}

.abx-hcf-feature-chips .abx-hcf-chip {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    background: #f5f3ef;
    color: var(--abx-hcf-text);
    border: 1px solid rgba(10, 25, 47, 0.07);
    border-radius: 100px;
}

.abx-hcf-feature-chips .abx-hcf-chip-matched {
    background: #EBFDF5;
    color: #1F513B;
    border-color: rgba(31, 81, 59, 0.2);
    font-weight: 600;
}

.abx-hcf-chip-extra {
    background: transparent !important;
    color: var(--abx-hcf-muted) !important;
    border-color: var(--abx-hcf-border) !important;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Warning Note */
.abx-hcf-card-note {
    font-size: 0.75rem;
    color: #8A5C00;
    background: #FFF9ED;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(176, 96, 0, 0.12);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.abx-hcf-note-icon {
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Card footer CTA alignment */
.abx-hcf-card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.abx-hcf-card-footer .abx-hcf-card-cta {
    width: 100%;
    height: 54px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.015em;
    background: var(--abx-hcf-secondary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1.3;
}

.abx-hcf-card-footer .abx-hcf-card-cta:hover {
    background: #10233e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 25, 47, 0.15);
}

/* ──────────────────────────────────────────────
 * Planning Note
 * ────────────────────────────────────────────── */
.abx-hcf-planning-note {
    background-color: #FAF8F5;
    border-left: 4px solid var(--abx-hcf-warm);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--abx-hcf-radius) var(--abx-hcf-radius) 0;
    margin-top: 3rem;
}

.abx-hcf-planning-note h4 {
    margin: 0 0 0.5rem 0;
    font-family: var(--abx-hcf-font-serif);
    color: var(--abx-hcf-secondary);
    font-size: 1.1rem;
}

.abx-hcf-planning-note p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--abx-hcf-muted);
    line-height: 1.6;
}

/* ──────────────────────────────────────────────
 * Responsive adjustments
 * ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .abx-hcf-grid {
        grid-template-columns: 1fr;
    }
    .abx-hcf-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .abx-hcf {
        padding: 0 1rem;
    }
    
    .abx-hcf-hero-left h1 {
        font-size: 2.2rem;
    }
    
    .abx-hcf-form-card {
        padding: 1.5rem;
    }

    .abx-hcf-form-row {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .abx-hcf-form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .abx-hcf-form-actions .abx-btn {
        width: 100%;
    }
    
    .abx-hcf-form-actions .abx-hcf-reset-link {
        text-align: center;
        padding: 0.5rem;
    }

    .abx-hcf-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .abx-hcf-summary-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .abx-hcf-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* ──────────────────────────────────────────────
 * Bottom CTA
 * ────────────────────────────────────────────── */
.abx-hcf-bottom-cta {
    margin-top: clamp(48px, 6vw, 80px);
    margin-bottom: clamp(40px, 5vw, 72px);
}

.abx-hcf-bottom-cta__inner {
    max-width: 100%;
    margin-inline: auto;
    background: linear-gradient(135deg, #163760, #102a4d);
    color: #fff;
    border-radius: 28px;
    padding: clamp(36px, 5vw, 64px);
    box-shadow: 0 28px 70px rgba(10, 31, 62, 0.24);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.abx-hcf-bottom-cta__inner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(243, 213, 194, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.abx-hcf-bottom-cta__inner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(243, 213, 194, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.abx-hcf-bottom-cta__kicker {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.abx-hcf-bottom-cta__title {
    font-family: var(--abx-hcf-font-serif);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 400;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

.abx-hcf-bottom-cta__text {
    max-width: 620px;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.abx-hcf-bottom-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.abx-hcf-bottom-cta__button {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.abx-hcf-bottom-cta__button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    color: #fff;
}

.abx-hcf-bottom-cta__button--primary {
    background: #F3D5C2;
    border-color: #F3D5C2;
    color: #1A365D;
    font-weight: 600;
}

.abx-hcf-bottom-cta__button--primary:hover {
    background: #f5c9ae;
    border-color: #f5c9ae;
    color: #1A365D;
}

.abx-hcf-bottom-cta__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.abx-hcf-bottom-cta__chips span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 700px) {
    .abx-hcf-bottom-cta__inner {
        padding: 2rem 1.5rem;
    }

    .abx-hcf-bottom-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .abx-hcf-bottom-cta__button {
        text-align: center;
    }

    .abx-hcf-bottom-cta__title {
        font-size: 1.35rem;
    }
}
