/* title-documents-order.css — Title Documents order page
   BoundaryFinder UK — boundaryfinder.co.uk
*/

/* ── Hero ─────────────────────────────────────────────────────────── */
.td-hero {
    background:
        linear-gradient(135deg, rgba(13, 31, 55, 0.60) 0%, rgba(26, 86, 50, 0.55) 100%),
        url('/static/images/ap-hero-bg.jpg') center / cover no-repeat;
    color: #fff;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    text-align: center;
}

@supports (background-image: url('x.webp')) {
    .td-hero {
        background:
            linear-gradient(135deg, rgba(13, 31, 55, 0.60) 0%, rgba(26, 86, 50, 0.55) 100%),
            url('/static/images/ap-hero-bg.webp') center / cover no-repeat;
    }
}

.td-hero__eyebrow {
    display: inline-block;
    background: rgba(232, 168, 56, 0.25);
    border: 1px solid rgba(232, 168, 56, 0.6);
    color: #f5c842;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: var(--spacing-md);
}

.td-hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    margin-bottom: var(--spacing-md);
    color: #fff;
    line-height: 1.2;
}

.td-hero__lead {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    opacity: 0.92;
    line-height: 1.65;
}

.td-hero__price-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(232, 168, 56, 0.18);
    border: 1px solid rgba(232, 168, 56, 0.5);
    color: #f5c842;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 1.2rem;
    border-radius: 24px;
    margin-bottom: var(--spacing-md);
}

.td-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.td-hero__trust-item {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ── Step badges ──────────────────────────────────────────────────── */
.td-step-badge {
    display: inline-block;
    background: var(--color-primary, #1a5632);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2em 0.7em;
    border-radius: 12px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ── Property Finder (Step 1) ─────────────────────────────────────── */
.td-finder {
    background: #f5f7f5;
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid #d8e0d5;
}

.td-finder__head {
    max-width: 680px;
    margin-bottom: var(--spacing-lg);
}

.td-finder__head h2 {
    font-size: clamp(1.3rem, 3vw, 1.85rem);
    margin-bottom: 0.5rem;
    color: var(--color-primary, #1a5632);
}

.td-finder__head p {
    color: #555;
    line-height: 1.6;
}

.td-finder__search {
    max-width: 520px;
    margin-bottom: var(--spacing-md);
}

.td-postcode-row {
    display: flex;
    gap: 0.5rem;
}

.td-postcode-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #cdd5c9;
    border-radius: var(--border-radius, 8px);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.td-postcode-input:focus {
    outline: none;
    border-color: var(--color-primary, #1a5632);
}

.td-postcode-btn {
    padding: 0.75rem 1.4rem;
    background: var(--color-primary, #1a5632);
    color: #fff;
    border: none;
    border-radius: var(--border-radius, 8px);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.td-postcode-btn:hover {
    background: var(--color-secondary, #2a7a4a);
}

.td-postcode-error {
    color: #c0392b;
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

.td-address-row {
    max-width: 520px;
    margin: var(--spacing-md) auto 0;
}

.td-address-row__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #444;
}

.td-address-select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 2px solid #cdd5c9;
    border-radius: var(--border-radius, 8px);
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
}

/* ── Spinner ──────────────────────────────────────────────────────── */
.td-spinner {
    display: none;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    padding: var(--spacing-md) 0;
    color: #555;
    font-size: 0.95rem;
}

.td-spinner:not([hidden]) {
    display: flex;
}

.td-spinner__ring {
    width: 22px;
    height: 22px;
    border: 3px solid #cdd5c9;
    border-top-color: var(--color-primary, #1a5632);
    border-radius: 50%;
    animation: td-spin 0.7s linear infinite;
}

@keyframes td-spin {
    to { transform: rotate(360deg); }
}

/* ── Form section ─────────────────────────────────────────────────── */
.td-form-section {
    padding: var(--spacing-xl) 0;
    background: #fff;
}

/* ── Two-column layout ────────────────────────────────────────────── */
.td-layout__inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--spacing-xl);
    align-items: start;
}

@media (max-width: 900px) {
    .td-layout__inner {
        grid-template-columns: 1fr;
    }

    .td-sidebar {
        order: -1;
    }
}

/* ── Form header ──────────────────────────────────────────────────── */
.td-form-header {
    margin-bottom: var(--spacing-lg);
}

.td-form-header__title {
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    color: var(--color-primary, #1a5632);
    margin-bottom: 0.5rem;
}

.td-form-header__desc {
    color: #555;
    line-height: 1.6;
}

/* ── Form cards ───────────────────────────────────────────────────── */
.td-form-card {
    background: #fff;
    border: 2px solid #e8a838;
    border-radius: var(--border-radius, 8px);
    padding: 1.5rem;
}

.td-form-card--mt { margin-top: var(--spacing-lg); }

/* ── Panel heading (above order panel) ───────────────────────────── */
.td-panel-heading {
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
    text-align: center;
}

.td-panel-heading__title {
    margin: 0 0 0.3rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a3c2e;
    letter-spacing: -0.01em;
}

.td-panel-heading__sub {
    margin: 0;
    font-size: 0.88rem;
    color: #6b7280;
}

/* ── Delivery banner ──────────────────────────────────────────────── */
.td-delivery-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #fffbe6;
    border: 1px solid #f5c842;
    border-left: 4px solid #e8a838;
    border-radius: var(--border-radius, 8px);
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
}

.td-delivery-banner__icon {
    color: #c87d00;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.td-delivery-banner__body {
    flex: 1;
}

.td-delivery-banner__title {
    display: block;
    font-weight: 700;
    color: #7a4e00;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.td-delivery-banner__desc {
    margin: 0;
    font-size: 0.86rem;
    color: #7a5800;
    line-height: 1.5;
}

/* ── Finder two-column layout (image) ─────────────────────────────── */
.td-finder__cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 800px) {
    .td-finder__cols {
        grid-template-columns: 1fr 280px;
        align-items: start;
    }
}

.td-finder__media {
    display: none;
}

@media (min-width: 800px) {
    .td-finder__media {
        display: block;
        position: sticky;
        top: 2rem;
    }
}

.td-finder__media-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius, 8px);
    border: 2px solid #d8e0d5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    display: block;
}

.td-finder__media-caption {
    font-size: 0.78rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.td-form-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.3rem;
}

.td-form-card__note {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ── Document picker ──────────────────────────────────────────────── */
.td-doc {
    border: 2px solid #d8e0d5;
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.td-doc--mt { margin-top: 0.75rem; }

.td-doc:has(.td-doc__checkbox:checked) {
    border-color: var(--color-primary, #1a5632);
    background: #f5faf6;
}

.td-doc__label {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    align-items: flex-start;
}

.td-doc__checkbox {
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary, #1a5632);
    cursor: pointer;
}

.td-doc__body { flex: 1; }

.td-doc__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.td-doc__name {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.td-doc__badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.15em 0.6em;
    border-radius: 10px;
}

.td-doc__badge--register {
    background: rgba(26, 86, 50, 0.1);
    color: var(--color-primary, #1a5632);
}

.td-doc__badge--plan {
    background: rgba(42, 122, 74, 0.1);
    color: #2a6642;
}

.td-doc__badge--report {
    background: rgba(0, 112, 210, 0.1);
    color: #0055a8;
}

.td-doc__price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary, #1a5632);
    white-space: nowrap;
}

.td-doc__desc {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

.td-doc__bullets {
    margin: 0;
    padding-left: 1.2em;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.7;
    list-style: disc;
}

/* ── Fields ───────────────────────────────────────────────────────── */
.td-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 600px) {
    .td-field-row { grid-template-columns: 1fr; }
}

.td-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.td-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.td-field input,
.td-field select {
    padding: 0.6rem 0.85rem;
    border: 1px solid #cdd5c9;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #222;
    transition: border-color 0.2s;
}

.td-field input:focus,
.td-field select:focus {
    outline: none;
    border-color: var(--color-primary, #1a5632);
}

.td-required {
    color: #c0392b;
    font-size: 0.9em;
}

.td-field__hint {
    font-size: 0.83rem;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

.td-field__hint--error {
    color: #c0392b;
}

.td-field__hint--warn {
    color: #b8860b;
}

/* ── Address display ──────────────────────────────────────────────── */
.td-address-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: #f5faf6;
    border: 1px solid #c8d8c0;
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
}

.td-address-display__label {
    font-weight: 600;
    color: #444;
}

.td-address-display__text {
    flex: 1;
    color: #333;
}

.td-address-display__change {
    background: none;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    font-size: 0.82rem;
    color: #555;
    cursor: pointer;
}

.td-address-display__change:hover {
    border-color: var(--color-primary, #1a5632);
    color: var(--color-primary, #1a5632);
}

/* ── Title number trust badge ─────────────────────────────────────── */
.td-title-badge {
    display: none;
}

.td-title-badge:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    background: #edf7f0;
    border: 1px solid #b6d9c0;
    border-radius: 6px;
    padding: 0.45rem 0.8rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.td-title-badge__icon {
    color: var(--color-primary, #1a5632);
    flex-shrink: 0;
}

.td-title-badge__label {
    font-weight: 600;
    color: #2a5a3a;
}

.td-title-badge__number {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    color: #1a5632;
    letter-spacing: 0.04em;
}

.td-title-badge__tenure {
    color: #556b5a;
    font-size: 0.8rem;
}

/* ── Order summary + submit ───────────────────────────────────────── */
.td-form-card--summary {
    border-color: var(--color-primary, #1a5632);
}

.td-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
}

.td-summary__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
}

.td-summary-tag {
    display: inline-block;
    background: #e8f0e6;
    color: #2a5e38;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25em 0.7em;
    border-radius: 12px;
}

.td-summary-tag--empty {
    background: #f0f0f0;
    color: #999;
}

.td-summary__total {
    font-size: 1.1rem;
    color: #222;
    white-space: nowrap;
}

.td-summary__total strong {
    color: var(--color-primary, #1a5632);
}

.td-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--color-primary, #1a5632);
    color: #fff;
    border: none;
    border-radius: var(--border-radius, 8px);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.td-submit-btn:hover {
    background: var(--color-secondary, #2a7a4a);
}

.td-submit-btn:disabled {
    background: #a0b8a6;
    cursor: not-allowed;
}

.td-submit-note {
    font-size: 0.82rem;
    color: #888;
    text-align: center;
    margin-top: 0.6rem;
}

/* ── Form error ───────────────────────────────────────────────────── */
.td-form-error {
    background: #fdf0ee;
    border: 1px solid #e8b8b0;
    border-radius: var(--border-radius, 8px);
    padding: 0.9rem 1.1rem;
    margin-bottom: var(--spacing-md);
    color: #c0392b;
    font-size: 0.92rem;
}

/* ── Sidebar ──────────────────────────────────────────────────────── */
.td-sidebar { position: sticky; top: 1.5rem; }

.td-sidebar__card {
    background: #f8faf7;
    border: 1px solid #d0dcc8;
    border-radius: var(--border-radius, 8px);
    padding: 1.2rem 1.3rem;
}

.td-sidebar__card--mt { margin-top: 1rem; }

.td-sidebar__card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary, #1a5632);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.td-sidebar__checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.td-sidebar__checklist li {
    padding-left: 1.3em;
    position: relative;
    font-size: 0.87rem;
    color: #444;
    line-height: 1.5;
}

.td-sidebar__checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary, #1a5632);
    font-weight: 700;
}

.td-sidebar__steps {
    padding-left: 1.2em;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.td-sidebar__steps li {
    font-size: 0.87rem;
    color: #444;
    line-height: 1.5;
}

.td-sidebar__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.td-sidebar__guide-link {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
    transition: color 0.15s;
}

.td-sidebar__guide-link:hover { color: var(--color-primary, #1a5632); }

.td-sidebar__guide-arrow {
    color: var(--color-primary, #1a5632);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1em;
}

.td-sidebar__guide-link strong {
    font-size: 0.87rem;
    display: block;
}

.td-sidebar__guide-link small {
    font-size: 0.8rem;
    color: #777;
}

.td-sidebar__legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.td-sidebar__legal li {
    font-size: 0.84rem;
    color: #555;
    line-height: 1.5;
}

.td-sidebar__link {
    color: var(--color-primary, #1a5632);
    text-decoration: underline;
    text-decoration-color: rgba(26, 86, 50, 0.4);
}

.td-sidebar__link:hover {
    text-decoration-color: var(--color-primary, #1a5632);
}

/* ── Explainer section ────────────────────────────────────────────── */
.td-explainer {
    background: #f5f7f5;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid #d8e0d5;
}

.td-explainer__title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    text-align: center;
    color: var(--color-primary, #1a5632);
    margin-bottom: var(--spacing-lg);
}

.td-explainer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .td-explainer__grid { grid-template-columns: 1fr; }
}

.td-explainer__item {
    background: #fff;
    border: 1px solid #d8e0d5;
    border-radius: var(--border-radius, 8px);
    padding: 1.5rem;
}

.td-explainer__icon {
    color: var(--color-primary, #1a5632);
    margin-bottom: 0.75rem;
}

.td-explainer__item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}

.td-explainer__item p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.td-faq {
    background: #fff;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid #d8e0d5;
}

.td-faq__title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    text-align: center;
    color: var(--color-primary, #1a5632);
    margin-bottom: var(--spacing-lg);
}

.td-faq__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .td-faq__grid { grid-template-columns: 1fr; }
}

.td-faq__item {
    border: 1px solid #d8e0d5;
    border-radius: var(--border-radius, 8px);
    padding: 1.25rem 1.5rem;
    background: #f5f7f5;
}

.td-faq__question {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a3d28;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.td-faq__answer {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.65;
    margin: 0;
}

.td-faq__link {
    color: var(--color-primary, #1a5632);
    text-decoration: underline;
}

/* ── Disclaimer ───────────────────────────────────────────────────── */
.td-disclaimer {
    background: #f0f4ee;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid #d8e0d5;
}

.td-disclaimer__text {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.65;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.td-disclaimer__link {
    color: var(--color-primary, #1a5632);
    text-decoration: underline;
}

/* ── Add-on cards (shared with ap page) ──────────────────────────── */
.ap-addon { border: 1.5px solid #f59e0b; border-radius: 8px; overflow: hidden; transition: border-color 0.15s; }
.ap-addon--mt { margin-top: var(--spacing-md); }
.ap-addon:has(.ap-addon__checkbox:checked) { border-color: #1a5632; box-shadow: 0 0 0 2px rgba(26,86,50,0.1); }
.ap-addon__label { display: flex; align-items: flex-start; gap: var(--spacing-md); padding: var(--spacing-md) var(--spacing-lg); cursor: pointer; user-select: none; }
.ap-addon__checkbox { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: #1a5632; cursor: pointer; }
.ap-addon__body { flex: 1; }
.ap-addon__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.ap-addon__name { font-size: 1rem; font-weight: 700; color: #0d1f37; }
.ap-addon__name-sub { font-size: 0.85rem; font-weight: 400; color: #666; }
.ap-addon__price { font-size: 1rem; font-weight: 700; color: #1a5632; white-space: nowrap; }
.ap-addon__desc { font-size: 0.87rem; color: #555; line-height: 1.55; }
.ap-addon--unavailable { opacity: 0.55; background: #f8f8f8; cursor: not-allowed; }
.ap-addon--unavailable .ap-addon__label { cursor: not-allowed; pointer-events: none; }
.ap-addon__soon { display: inline-block; font-size: 0.7rem; font-weight: 600; color: #fff; background: #888; border-radius: 4px; padding: 1px 6px; vertical-align: middle; margin-left: 0.4rem; letter-spacing: 0.03em; text-transform: uppercase; }
.ap-addon__badge { display: inline-block; font-size: 0.7rem; font-weight: 600; color: #fff; background: var(--color-primary); border-radius: 4px; padding: 1px 6px; vertical-align: middle; margin-left: 0.4rem; letter-spacing: 0.03em; text-transform: uppercase; }
.ap-addon__unavailable-note { font-size: 0.82rem; color: #888; margin-top: 0.4rem; font-style: italic; }
.ap-addon__sample-btn { display: flex; align-items: center; gap: 0.35rem; padding: 0.4rem var(--spacing-lg); font-size: 0.82rem; font-weight: 600; color: #92400e; text-decoration: none; border-top: 1px solid #fde68a; border-left: 3px solid #f59e0b; background: #fffbeb; transition: background 0.15s, color 0.15s; }

/* ── Comparison Table ─────────────────────────────────────────────── */
.td-compare {
    background: #f4f7f5;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid #e0e8e0;
    border-bottom: 1px solid #e0e8e0;
}

.td-compare__heading {
    text-align: center;
    color: var(--color-primary);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin-bottom: 0.4rem;
}

.td-compare__sub {
    text-align: center;
    color: #555;
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.55;
}

.td-compare__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.td-compare__table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
}

.td-compare__th {
    background: #edf2ee;
    color: var(--color-primary);
    font-weight: 700;
    padding: 0.9rem 1rem;
    text-align: center;
    border-bottom: 2px solid #d0ddd5;
    font-size: 0.85rem;
    line-height: 1.4;
}

.td-compare__th small {
    display: block;
    font-weight: 500;
    color: #666;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.td-compare__th--feature {
    text-align: left;
    background: #e4ece5;
    min-width: 190px;
}

.td-compare__th--combined {
    background: #1a5632;
    color: #fff;
}

.td-compare__th--combined small {
    color: rgba(255,255,255,0.75);
}

.td-compare__table tbody tr:nth-child(even) td {
    background: #f9fbfa;
}

.td-compare__table tbody tr:nth-child(even) .td-compare__cell--combined {
    background: #e0f0e6;
}

.td-compare__table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #e8eeea;
    text-align: center;
    color: #444;
    vertical-align: middle;
}

.td-compare__feature {
    text-align: left !important;
    color: #333;
    font-size: 0.88rem;
    font-weight: 500;
}

.td-compare__yes {
    color: #1a5632;
    font-weight: 700;
    font-size: 1rem;
}

.td-compare__no {
    color: #bbb;
}

.td-compare__partial {
    color: #7a5200;
    font-size: 0.8rem;
    font-style: italic;
}

.td-compare__cell--combined {
    background: #eaf4ed;
    color: #1a5632;
    font-weight: 700;
}

.td-compare__row--price td {
    background: #edf2ee !important;
    font-weight: 600;
    border-top: 2px solid #c8d8cc;
    font-size: 0.88rem;
}

.td-compare__row--price .td-compare__cell--combined {
    background: #1a5632 !important;
    color: #fff;
}

.td-compare__note {
    text-align: center;
    font-size: 0.82rem;
    color: #666;
    margin-bottom: var(--spacing-md);
}

.td-compare__cta-row {
    text-align: center;
}

.td-compare__btn {
    display: inline-block;
    background: var(--color-accent);
    color: #0a0f1a;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}

.td-compare__btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ── Bundle hint ──────────────────────────────────────────────────── */
.td-bundle-hint {
    background: #fffbf0;
    border-left: 4px solid #e8a838;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    color: #5a3e00;
    margin-top: var(--spacing-sm);
    line-height: 1.55;
}

/* ── Disclaimer title ─────────────────────────────────────────────── */
.td-disclaimer__title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* ── Under Construction Modal ─────────────────────────────────────── */
.td-construction-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9990;
    cursor: pointer;
}

.td-construction-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9991;
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: calc(100% - 2rem);
    text-align: center;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.28);
    pointer-events: all;
}

.td-construction-modal__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.td-construction-modal__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.td-construction-modal__text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.td-construction-modal__btn {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}

.td-construction-modal__btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}
.ap-addon__sample-btn:hover { background: #fef3c7; color: #78350f; text-decoration: none; }

/* ── Under Construction overlay ──────────────────────────────────── */
.uc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.uc-overlay.active {
    display: flex;
}

.uc-modal {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.uc-modal__icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.uc-modal__title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0 0 1rem;
}

.uc-modal__body {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.uc-modal__link {
    color: var(--color-primary);
    font-weight: 600;
}

.uc-modal__close {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.uc-modal__close:hover {
    background: var(--color-secondary);
}

/* ── Sample report modals ─────────────────────────────────────────── */
.sample-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
}

.sample-modal.active {
    display: flex;
}

.sample-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 800px;
    padding: 0.5rem 0;
}

.sample-modal__header h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.sample-modal__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.sample-modal__close:hover {
    opacity: 1;
}

.sample-modal__content {
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: 0.5rem;
}

.sample-modal__content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* ── Unregistered property warning ───────────────────────────────── */
.td-unregistered-warning {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    background: #fef3c7;
    border: 1.5px solid #d97706;
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    margin-top: 0.5rem;
    font-size: 0.865rem;
    color: #78350f;
    line-height: 1.5;
}

.td-unregistered-warning[hidden] {
    display: none;
}

.td-unregistered-warning__icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #b45309;
}

.td-unregistered-warning__body strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #92400e;
}

/* ── Unavailable HMLR document card (unregistered property) ───────── */
.td-doc--unavailable {
    opacity: 0.45;
}

.td-doc--unavailable .td-doc__label {
    pointer-events: none;
    cursor: not-allowed;
}


/* ══════════════════════════════════════════════════════════════════
   ORDER PANEL — Amber-themed unified panel (Step 1 + 2 + 3)
   Replaces td-finder + td-form-section with a single panel
   ══════════════════════════════════════════════════════════════════ */

/* ── Order section wrapper ────────────────────────────────────────── */
.td-order-section {
    padding: 1rem 0 3rem;
    background: #f9f9f7;
}

/* ── Order panel: amber-bordered card ────────────────────────────── */
.td-order-panel {
    background: #fff;
    border: 2px solid #e8a838;
    border-radius: 12px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-bottom: var(--spacing-lg, 2rem);
}

/* ── Step headers inside the panel ───────────────────────────────── */
.td-panel-step__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #fef9ef 0%, #fff7e6 100%);
    border-bottom: 1.5px solid #e8a838;
    padding: 0.8rem 1.25rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Step badge override: amber */
.td-panel-step__header .td-step-badge {
    background: #e8a838;
    color: #fff;
}

/* ── Step bodies ──────────────────────────────────────────────────── */
.td-panel-step__body {
    padding: 1.1rem 1.25rem 1.25rem;
    border-bottom: 1.5px solid #f0e8d5;
}

.td-panel-step__body--details {
    border-bottom: none;
}

.td-panel-step__hint {
    color: #78350f;
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
}

.td-panel-step__note {
    color: #555;
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
}

/* ── Doc card active state: amber ────────────────────────────────── */
.td-order-panel .td-doc:has(.td-doc__checkbox:checked) {
    border-color: #e8a838;
    background: #fef9ef;
}

.td-order-panel .td-doc__checkbox {
    accent-color: #e8a838;
}

/* ── GPS badge ────────────────────────────────────────────────────── */
.td-doc__badge--gps {
    background: #e8f4fd;
    color: #1565c0;
}

/* ── Doc card top-margin utility (used on plan + GPS cards) ───────── */
.td-doc--mt {
    margin-top: 0.85rem;
}

/* ── Panel footer: amber gradient, houses summary + pay button ────── */
.td-panel-footer {
    background: linear-gradient(135deg, #fef9ef 0%, #fff7e6 100%);
    border-top: 2px solid #e8a838;
    padding: 1rem 1.25rem 1.25rem;
}

/* ── Submit button override: amber ───────────────────────────────── */
.td-order-panel .td-submit-btn {
    background: linear-gradient(135deg, #e8a838 0%, #c8861c 100%);
    color: #fff;
    margin-top: 0.75rem;
    transition: background 0.2s, transform 0.1s, opacity 0.2s;
}

.td-order-panel .td-submit-btn:hover:not(.td-submit-btn--locked) {
    background: linear-gradient(135deg, #d49530 0%, #b37519 100%);
    transform: translateY(-1px);
}

.td-order-panel .td-submit-btn:active:not(.td-submit-btn--locked) {
    transform: translateY(0);
}

/* ── Locked state: greyed out until Step 1 complete ──────────────── */
.td-submit-btn--locked {
    background: #d0d0d0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* ── Lock hint paragraph ─────────────────────────────────────────── */
.td-panel-lock-hint {
    text-align: center;
    font-size: 0.84rem;
    color: #78350f;
    background: #fef3c7;
    border: 1px solid #d97706;
    border-radius: 6px;
    padding: 0.45rem 0.8rem;
    margin-top: 0.6rem;
}

/* ── Sidebar: don't reverse order on mobile (keep below panel) ────── */
.td-order-section .td-sidebar {
    order: 1;
}

@media (max-width: 900px) {
    .td-order-section .td-layout__inner {
        grid-template-columns: 1fr;
    }

    .td-order-section .td-sidebar {
        order: 1;
    }
}

/* ── Inner form cards inside the panel: remove their own shadow/border */
.td-order-panel .td-form-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}



/* ── Under Construction popup ─────────────────────────────────────── */
.td-construction-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 1rem;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.td-construction-popup.td-construction-popup--hidden {
    opacity: 0;
    pointer-events: none;
}

.td-construction-popup__card {
    background: #fff;
    border: 2px solid #e8a838;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
    padding: 2rem 2.25rem 1.75rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    animation: td-popup-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes td-popup-in {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.td-construction-popup__icon {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.td-construction-popup__title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #78350f;
    margin: 0 0 0.6rem;
}

.td-construction-popup__body {
    font-size: 0.97rem;
    color: #444;
    line-height: 1.6;
    margin: 0 0 0.7rem;
}

.td-construction-popup__sub {
    font-size: 0.88rem;
    color: #666;
    margin: 0 0 1.4rem;
}

.td-construction-popup__link {
    color: #b37a1a;
    text-decoration: underline;
}

.td-construction-popup__btn {
    display: inline-block;
    background: linear-gradient(135deg, #e8a838 0%, #c8861c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.td-construction-popup__btn:hover {
    background: linear-gradient(135deg, #d49530 0%, #b37519 100%);
    transform: translateY(-1px);
}

