:root {
    --lof-navy: #0B2A4A;
    --lof-teal: #1FA2A6;
    --lof-teal-dark: #0E7C86;
    --lof-amber: #F5A623;
    --lof-gray: #5B6B7C;
    --lof-light: #F3F7FA;
    --bs-link-color-rgb: 14, 124, 134;
    --bs-body-color: #0B2A4A;
}

body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3, .section-title { color: var(--lof-navy); font-weight: 800; letter-spacing: -.01em; }
.text-muted { color: var(--lof-gray) !important; }

.btn-primary {
    --bs-btn-bg: var(--lof-teal-dark);
    --bs-btn-border-color: var(--lof-teal-dark);
    --bs-btn-hover-bg: var(--lof-navy);
    --bs-btn-hover-border-color: var(--lof-navy);
    --bs-btn-active-bg: var(--lof-navy);
    --bs-btn-active-border-color: var(--lof-navy);
}
.btn-outline-primary {
    --bs-btn-color: var(--lof-teal-dark);
    --bs-btn-border-color: var(--lof-teal-dark);
    --bs-btn-hover-bg: var(--lof-teal-dark);
    --bs-btn-hover-border-color: var(--lof-teal-dark);
}
.dropdown-menu { --bs-dropdown-link-active-bg: var(--lof-teal-dark); }
.form-control:focus, .form-select:focus { border-color: var(--lof-teal); box-shadow: 0 0 0 .25rem rgba(31, 162, 166, .25); }
.form-check-input:checked { background-color: var(--lof-teal-dark); border-color: var(--lof-teal-dark); }

.site-header { background: #fff; box-shadow: 0 1px 4px rgba(11, 42, 74, .12); }
.site-logo { height: 44px; width: auto; }
.navbar .nav-link { color: var(--lof-navy); font-weight: 500; }

.hero { padding: 4rem 0 3rem; background: linear-gradient(180deg, var(--lof-light) 0%, #fff 100%); }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 16em; }
.hero .lead { max-width: 34em; color: var(--lof-gray); }
.not-found-code { font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 800; line-height: 1; color: var(--lof-teal-dark); margin-bottom: .5rem; }
.not-found-hint { max-width: 36em; color: var(--lof-navy); }
.not-found-hint .bi { color: var(--lof-teal-dark); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--lof-navy); }
.hero-badges .bi { color: var(--lof-teal-dark); font-size: 1.25rem; }
.rating-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #dbe5ee; border-radius: 999px; padding: .35rem 1rem; font-weight: 600; }
.rating-badge .bi { color: var(--lof-amber); }

.section { padding: 4.5rem 0; }
.section-alt { background: var(--lof-light); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-intro { max-width: 44em; color: var(--lof-gray); }

.step-number { width: 3rem; height: 3rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--lof-navy); color: #fff; font-weight: 800; font-size: 1.2rem; }
.step-card { height: 100%; border: 0; box-shadow: 0 2px 12px rgba(11, 42, 74, .08); }

.item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; }
.item-tile { background: #fff; border: 1px solid #e3ebf1; border-radius: .75rem; padding: 1.25rem .75rem; text-align: center; font-weight: 600; font-size: .95rem; color: var(--lof-navy); }
.item-tile .bi { display: block; font-size: 2rem; color: var(--lof-teal-dark); margin-bottom: .5rem; }

.where-card { height: 100%; border: 0; border-top: 4px solid var(--lof-teal); box-shadow: 0 2px 12px rgba(11, 42, 74, .08); }
.where-card ul { padding-left: 1.1rem; margin-bottom: 0; }
.where-card li { margin-bottom: .35rem; }

.hub-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.hub-list span { background: #fff; border: 1px solid #dbe5ee; border-radius: 999px; padding: .3rem .9rem; font-size: .9rem; font-weight: 600; }

.guarantee-card { border: 0; background: var(--lof-navy); color: #fff; }
.guarantee-card a { color: #fff; }
.guarantee-card .bi { color: var(--lof-amber); }

.review-card { height: 100%; border: 0; box-shadow: 0 2px 12px rgba(11, 42, 74, .08); }
.review-card .bi-star-fill { color: var(--lof-amber); }

.faq-tabs .nav-link { color: var(--lof-navy); font-weight: 600; }
.faq-tabs .nav-link.active { background: var(--lof-teal-dark); color: #fff; }
.accordion-button:not(.collapsed) { background: var(--lof-light); color: var(--lof-navy); }
.accordion-button:focus { box-shadow: 0 0 0 .25rem rgba(31, 162, 166, .25); }

.cta-band { background: var(--lof-teal-dark); color: #fff; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; }

.site-footer { padding: 3rem 0; background: var(--lof-navy); color: #dbe5ee; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer hr { border-color: rgba(255, 255, 255, .25); }
.footer-logo { height: 50px; width: auto; }
.footer-heading { font-weight: 700; color: #fff; margin-bottom: .5rem; }

.form-section { background: #fff; border: 1px solid #e3ebf1; border-radius: 1rem; padding: 2rem; margin-bottom: 1.5rem; }
.form-section-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.form-section-title .step-number { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.iti { width: 100%; }
/* The library's CSS looks for the sprites one folder up; point it at where the files are. */
.iti .iti__flag { background-image: url("../vendor/intl-tel-input/img/flags.png"); }
.iti .iti__globe { background-image: url("../vendor/intl-tel-input/img/globe.png"); }
@media (min-resolution: 2x) {
    .iti .iti__flag { background-image: url("../vendor/intl-tel-input/img/flags@2x.png"); }
    .iti .iti__globe { background-image: url("../vendor/intl-tel-input/img/globe@2x.png"); }
}
.photo-drop { border: 2px dashed #c6d3de; border-radius: .75rem; padding: 1.5rem; text-align: center; color: var(--lof-gray); cursor: pointer; }
.photo-drop.is-dragover { border-color: var(--lof-teal); background: var(--lof-light); }
.photo-previews { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.photo-previews img { width: 96px; height: 96px; object-fit: cover; border-radius: .5rem; border: 1px solid #dbe5ee; }
.ts-wrapper .ts-control { min-height: calc(1.5em + .75rem + 2px); }
.ts-dropdown .optgroup-header { font-weight: 700; color: var(--lof-navy); }

.legal-page { max-width: 46em; }
.legal-page h2 { font-size: 1.35rem; margin-top: 2rem; }

@media (max-width: 767.98px) {
    .hero { padding: 2.5rem 0 2rem; }
    .section { padding: 3rem 0; }
    .form-section { padding: 1.25rem; }
}

/* Customer order page (Phase 4) */
.claim-page { max-width: 1040px; }
.chat-msg { border-radius: .75rem; padding: .75rem 1rem; margin-bottom: .75rem; max-width: 90%; overflow-wrap: anywhere; }
.chat-text { white-space: pre-wrap; }
.chat-staff { background: #e3f4f5; }
.chat-customer { background: #fff7e6; border: 1px solid #f5dfb0; margin-left: auto; }
.chat-system { background: #eef1f4; font-size: .875rem; margin: 0 auto .75rem; text-align: center; }
.chat-meta { font-size: .78rem; color: var(--lof-gray); white-space: normal; margin-bottom: .25rem; }
.claim-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: .5rem; border: 1px solid #dfe6ec; }
.claim-timeline { list-style: none; padding-left: 0; }
.claim-timeline li { border-left: 2px solid var(--lof-teal); padding: 0 0 .6rem .75rem; }

/* Checkout: a light card on a dark page, form on the left and claim summary on the right.
   On small screens the summary sits just above the payment and the plan card carries the benefits. */
.checkout-section { background: var(--lof-navy); }
.checkout-wide { max-width: 1140px; }
/* The claim form uses the same dark page as the payment screen, with its cards on top. */
.claim-narrow { max-width: 860px; }
.claim-section .section-title { color: #fff; }
.claim-section .section-intro { color: #d5e0ea; }
.claim-section .form-section { border-color: transparent; }
.checkout-card { background: #f3f5f7; border-radius: 1rem; padding: 1.75rem 2rem 2rem; color: #111; }
.checkout-title { font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: .25rem; }
.checkout-heading { font-size: 1.4rem; font-weight: 700; line-height: 1.2; margin-bottom: .9rem; color: #111; }
.checkout-card .form-label { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.checkout-card .form-control, .checkout-card .form-select { min-height: 3.1rem; font-size: 1.05rem; background-color: #f8fafc; border: 2px solid #e2e8f0; border-radius: .45rem; }
.checkout-card .form-control:focus, .checkout-card .form-select:focus { background-color: #fff; border-color: var(--lof-teal); }
.checkout-card hr { border-color: #c9d2da; opacity: 1; }
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 0 2rem; }
.checkout-summary { margin-bottom: 1.5rem; }
.summary-box { background: #fff; border: 1px solid #7fb394; border-radius: .6rem; padding: 1.25rem; }
.summary-title { font-size: 1.25rem; font-weight: 700; border-bottom: 1px solid #e3ebf1; padding-bottom: .6rem; margin-bottom: .9rem; }
.summary-total-label { font-size: .75rem; text-transform: uppercase; color: #5b6b78; }
.plan-bar { background: #e1eae5; border: 2px solid #7fb394; border-radius: .6rem; padding: 1rem 1.1rem; }
.plan-bar-head { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: 1.05rem; }
.urgent-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .35rem 1rem; }
.urgent-title { margin-bottom: 0; cursor: pointer; }
.urgent-text { grid-column: 1 / -1; font-size: .8rem; margin: 0; text-align: center; }
.urgent-check { width: 1.7rem; height: 1.7rem; margin: 0; border: 2px solid #1f2d3a; border-radius: .3rem; cursor: pointer; }
.urgent-box { margin-top: 1rem; background: #f8fafc; border: 3px solid #8ab29b; border-radius: .4rem; padding: 1rem; font-size: .9rem; }
.urgent-box-head { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; margin-bottom: .5rem; }
.urgent-box ul { margin-bottom: .75rem; padding-left: 1.4rem; }
.urgent-box-note { border-top: 1px solid #d5dde3; padding-top: .6rem; margin: 0; }
.refund-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.refund-link span { text-decoration: underline dotted; text-underline-offset: 3px; }
.refund-link:hover span, .refund-link:focus-visible span { text-decoration-style: solid; }
.refund-steps { list-style: none; padding: 0; margin: 0 0 1rem; }
.refund-step { display: flex; gap: .9rem; padding: .85rem 0 .85rem .9rem; border-left: 4px solid; margin-bottom: .6rem; background: #f8fafc; border-radius: 0 .5rem .5rem 0; }
.refund-step p { margin: .25rem 0 0; font-size: .9rem; }
.refund-badge { flex: 0 0 3.4rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 1rem; color: #fff; font-weight: 800; font-size: .9rem; }
.refund-amount { display: block; font-weight: 700; }
.refund-step-full { border-color: #2e9d6b; }
.refund-step-full .refund-badge { background: #2e9d6b; }
.refund-step-full .refund-amount { color: #1f7a51; }
.refund-step-partial { border-color: #d9912b; }
.refund-step-partial .refund-badge { background: #d9912b; }
.refund-step-partial .refund-amount { color: #a8660f; }
.refund-step-none { border-color: #8593a0; }
.refund-step-none .refund-badge { background: #8593a0; }
.thanks-protocol { font-size: 1.15rem; margin-bottom: 1.5rem; }
.thanks-box { border-color: #e3ebf1; }
.thanks-box-title { font-size: 1.15rem; font-weight: 700; text-align: center; border-bottom: 1px solid #e3ebf1; padding-bottom: .6rem; margin-bottom: 1rem; }
.thanks-list { display: grid; grid-template-columns: 1fr; gap: .9rem 1.5rem; margin: 0; }
.thanks-list dt { font-size: .8rem; font-weight: 600; color: #5b6b78; }
.thanks-list dd { margin: 0; overflow-wrap: anywhere; }
.thanks-notes { background: #fbf7cf; border-radius: .5rem; padding: 1.1rem 1.25rem; font-size: .9rem; }
.thanks-tile { display: flex; align-items: center; justify-content: center; min-height: 5rem; background: #fff; border: 1px solid #e3ebf1; border-radius: .5rem; color: #33414d; font-weight: 600; text-decoration: none; text-align: center; padding: .5rem; }
.thanks-tile:hover, .thanks-tile:focus-visible { border-color: var(--lof-teal); color: var(--lof-teal-dark); }
@media (min-width: 576px) { .thanks-list { grid-template-columns: 1fr 1fr; } }
.coupon-link { color: #111; font-weight: 700; text-decoration: underline; }
.method-row { background: #fff; border: 1px solid #e3ebf1; border-radius: .5rem; padding: 1rem 1.25rem; }
.card-fields { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid #e3ebf1; }
.checkout-pay .btn-lg { min-height: 3.4rem; font-weight: 700; }
@media (min-width: 992px) {
    .checkout-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .checkout-main, .checkout-pay { grid-column: 1; }
    .checkout-summary { grid-column: 2; grid-row: 1 / span 2; margin-bottom: 0; }
    .summary-box { border-color: #e3ebf1; }
    .summary-title { font-size: .95rem; font-weight: 800; text-transform: uppercase; }
    .plan-bar { padding: .7rem 1rem; }
    .plan-bar-head { font-size: .9rem; }
    .urgent-text { text-align: left; }
}
@media (max-width: 575.98px) {
    .checkout-card { padding: 1.25rem 1.1rem 1.5rem; }
    .checkout-title { font-size: 1.6rem; }
}
