/* adverse-possession.css — Adverse Possession product sales page
   BoundaryFinder UK — boundaryfinder.co.uk
*/

/* ── Hero ─────────────────────────────────────────────────────────── */
.ap-hero {
    background:
        linear-gradient(135deg, rgba(13, 31, 55, 0.55) 0%, rgba(26, 86, 50, 0.50) 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')) {
    .ap-hero {
        background:
            linear-gradient(135deg, rgba(13, 31, 55, 0.55) 0%, rgba(26, 86, 50, 0.50) 100%),
            url('/static/images/ap-hero-bg.webp') center / cover no-repeat;
    }
}

.ap-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);
}

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

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

.ap-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);
}

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

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

.ap-hero__cta-btn {
    display: inline-block;
    background: var(--color-accent, #e8a838);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 2.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.ap-hero__cta-btn:hover {
    background: #c8891f;
    transform: translateY(-1px);
    color: #fff;
}

/* ── Property Finder ─────────────────────────────────────────────── */
.ap-finder {
    background: #f4f8f5;
    border-bottom: 1px solid #dde6e0;
    padding: var(--spacing-xl) 0;
}

.ap-finder__head {
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, #0d1f37 0%, #1a5632 100%);
    color: #fff;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--border-radius);
}

.ap-finder__head h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.ap-finder__head p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    max-width: 680px;
    margin: 0;
}

/* Postcode row */
.ap-postcode-row {
    margin-bottom: var(--spacing-md);
}

.ap-postcode-row__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-primary);
    margin-bottom: 0.45rem;
}

.ap-postcode-row__fields {
    display: flex;
    gap: 0.5rem;
    max-width: 380px;
}

.ap-postcode-row__input {
    flex: 1;
    padding: 0.7rem 1rem;
    font-size: 1.05rem;
    border: 2px solid #c8d8ce;
    border-radius: var(--border-radius);
    color: var(--color-text);
    transition: border-color 0.2s;
    background: #fff;
}

.ap-postcode-row__input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.ap-postcode-row__btn {
    padding: 0.7rem 1.4rem;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.ap-postcode-row__btn:hover {
    background: var(--color-secondary);
}

.ap-postcode-row__error {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

/* Address row */
.ap-address-row {
    margin-bottom: var(--spacing-md);
    max-width: 540px;
}

.ap-address-row__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-primary);
    margin-bottom: 0.45rem;
}

.ap-address-row__select {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #c8d8ce;
    border-radius: var(--border-radius);
    color: var(--color-text);
    background: #fff;
    cursor: pointer;
}

.ap-address-row__select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Spinner */
.ap-spinner {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: var(--spacing-md) 0;
}

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

.ap-spinner__ring {
    display: block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(26, 86, 50, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: ap-spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

.ap-spinner__text {
    font-size: 0.9rem;
    color: #555;
}

/* Map */
.ap-map-wrap {
    margin-top: var(--spacing-md);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #ccd8d2;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.09);
}

#ap-map {
    width: 100%;
    height: 400px;
}

.ap-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: #fff;
    border-top: 1px solid #eee;
}

.ap-map-footer__address {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.ap-map-footer__stats {
    font-size: 0.8rem;
    color: #666;
}

.ap-map-note {
    font-size: 0.78rem;
    color: #888;
    margin: 0.4rem 0.75rem 0.5rem;
    line-height: 1.4;
}

/* ── Product Picker ───────────────────────────────────────────────── */
.ap-products {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    background: #fff;
}

.ap-products__head {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.ap-products__head h2 {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.ap-products__head p {
    color: #555;
    font-size: 0.95rem;
}

/* Product grid: 2×2 on desktop */
.ap-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
}

/* Product card */
.ap-card {
    position: relative;
    background: #fff;
    border: 2px solid #dce8e2;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ap-card--primary {
    border-color: var(--color-primary);
}

.ap-card--free {
    background: #f5fdf8;
    border-color: #b5d9c4;
    border-style: dashed;
}

.ap-card--selected {
    border-color: var(--color-primary);
    box-shadow: 0 2px 18px rgba(26, 86, 50, 0.13);
}

.ap-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
}

.ap-card__badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--color-primary);
    color: #fff;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
}

.ap-card__badge--free {
    background: #2a9a60;
}

/* Custom checkbox */
.ap-card__checkbox-wrap {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

.ap-card__checkbox-wrap--locked {
    cursor: default;
}

.ap-card__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ap-card__checkmark {
    position: absolute;
    inset: 0;
    border: 2px solid #b0c6ba;
    border-radius: 5px;
    background: #fff;
    transition: background 0.15s, border-color 0.15s;
}

.ap-card__checkbox:checked + .ap-card__checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.ap-card__checkbox:checked + .ap-card__checkmark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: 2.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.ap-card__icon {
    color: var(--color-secondary);
}

.ap-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.ap-card__desc {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.55;
    flex: 1;
}

.ap-card__includes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ap-card__includes li {
    font-size: 0.8rem;
    color: #444;
    padding-left: 1.2rem;
    position: relative;
}

.ap-card__includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 700;
}

.ap-card__price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 0.2rem;
}

.ap-card__price--free {
    color: #2a9a60;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* Order summary */
.ap-order {
    background: #f2f8f4;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 540px;
    margin: 0 auto;
}

.ap-order__inner {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ap-order__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ap-order__item-tag {
    background: rgba(26, 86, 50, 0.1);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(26, 86, 50, 0.2);
}

.ap-order__item-tag--free {
    background: rgba(42, 154, 96, 0.1);
    color: #27794a;
    border-color: rgba(42, 154, 96, 0.25);
}

.ap-order__total {
    font-size: 1.1rem;
    color: var(--color-text);
}

.ap-order__total strong {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.ap-order__checkout-btn {
    display: block;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.ap-order__checkout-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
    color: #fff;
}

.ap-order__note {
    font-size: 0.78rem;
    color: #777;
    text-align: center;
    margin: 0;
}

.ap-order__sample-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    justify-content: center;
}

.ap-order__sample-btn:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ── Explainer ────────────────────────────────────────────────────── */
.ap-explainer {
    background: #f4f8f5;
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid #dde6e0;
}

.ap-explainer__heading {
    font-size: 1.45rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.ap-explainer__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.ap-explainer__item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.ap-explainer__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
}

.ap-explainer__body h3 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.ap-explainer__body p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.65;
    margin: 0;
}

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

.ap-faq__heading {
    font-size: 1.45rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.ap-faq__list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ap-faq__item {
    background: #f7faf8;
    border: 1px solid #dde6e0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.ap-faq__item[open] {
    border-color: var(--color-primary);
}

.ap-faq__question {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ap-faq__question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-secondary);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.ap-faq__item[open] .ap-faq__question::after {
    transform: rotate(45deg);
}

.ap-faq__question::-webkit-details-marker { display: none; }

.ap-faq__answer {
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.65;
}

.ap-faq__answer p {
    margin: 0 0 0.5rem;
}

.ap-faq__answer p:last-child {
    margin-bottom: 0;
}

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

.ap-disclaimer p {
    font-size: 0.77rem;
    color: #999;
    line-height: 1.6;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .ap-postcode-row__fields {
        max-width: 100%;
    }

    #ap-map {
        height: 300px;
    }

    .ap-hero h1 {
        font-size: 1.55rem;
    }

    .ap-explainer__item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ap-field-row,
    .ap-field-row--3 {
        grid-template-columns: 1fr;
    }
}


/* ══════════════════════════════════════════════════════════════════════
   GUIDE PROMO SECTION
══════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════════
   FORM SECTION
══════════════════════════════════════════════════════════════════════ */

.ap-form-section {
    background: #f5f6f8;
    padding: var(--spacing-2xl) 0;
}

.ap-form-error {
    background: #fff2f2;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 0.9rem 1.1rem;
    border-radius: 6px;
    margin-bottom: var(--spacing-lg);
    font-size: 0.93rem;
}

.ap-form-header {
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, #0d1f37 0%, #1a5632 100%);
    color: #fff;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--border-radius);
}

.ap-form-header__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.ap-form-header__desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 0 var(--spacing-md);
}

.ap-form-header__guide-promo {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(232, 168, 56, 0.15);
    border: 1px solid rgba(232, 168, 56, 0.45);
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
    margin-top: var(--spacing-sm);
}

.ap-form-header__guide-promo svg {
    flex-shrink: 0;
    color: #e8a838;
    margin-top: 2px;
}

.ap-form-header__guide-promo span {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.55;
}

/* ── Step badge (used in both section headers) ────────────────────────── */

.ap-step-badge {
    display: inline-flex;
    align-items: center;
    background: var(--color-accent);
    color: #0d1f37;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Form cards ──────────────────────────────────────────────────────── */

.ap-form-card {
    background: #fff;
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg) var(--spacing-xl);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ap-form-card--mt {
    margin-top: var(--spacing-md);
}

.ap-form-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d1f37;
    margin-bottom: 0.4rem;
}

.ap-form-card__note {
    font-size: 0.87rem;
    color: #666;
    line-height: 1.55;
    margin-bottom: var(--spacing-md);
}

/* ── Fields ──────────────────────────────────────────────────────────── */

.ap-field {
    margin-bottom: var(--spacing-md);
}

.ap-field--mt {
    margin-top: var(--spacing-md);
}

.ap-field--half {
    max-width: 440px;
}

.ap-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.35rem;
}

.ap-field input[type="text"],
.ap-field input[type="email"],
.ap-field input[type="tel"],
.ap-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    border: 1.5px solid #c8d0d8;
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.15s;
    font-family: inherit;
}

.ap-field input:focus,
.ap-field textarea:focus {
    outline: none;
    border-color: #1a5632;
    box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
}

.ap-field textarea {
    resize: vertical;
    min-height: 100px;
}

.ap-field__hint {
    font-size: 0.8rem;
    color: #7a8796;
    line-height: 1.5;
    margin-top: 0.3rem;
}

.ap-required {
    color: #c0392b;
}

/* ── Field rows ──────────────────────────────────────────────────────── */

.ap-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.ap-field-row--3 {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: var(--spacing-md);
}

/* ── Add-ons ─────────────────────────────────────────────────────────── */

.ap-addon {
    border: 1.5px solid #dde4ec;
    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-map-hint {
    background: #fffbe6;
    border: 1px solid #e8c947;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: var(--spacing-md);
    font-size: 0.87rem;
    color: #5a4500;
    line-height: 1.5;
}

.ap-addon-map-hint p {
    margin: 0 0 0.4rem 0;
}

.ap-addon-map-hint__link {
    color: #1a5632;
    font-weight: 600;
    text-decoration: none;
}

.ap-addon-map-hint__link:hover {
    text-decoration: underline;
}

.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: var(--color-primary);
    text-decoration: none;
    border-top: 1px solid #eef2ee;
    background: #f7faf8;
    transition: background 0.15s, color 0.15s;
}

.ap-addon__sample-btn:hover {
    background: #edf5f0;
    color: #0d4526;
    text-decoration: none;
}

/* ── Order summary ───────────────────────────────────────────────────── */

.ap-form-summary {
    background: #0d1f37;
    color: #fff;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg) var(--spacing-xl);
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.ap-form-summary__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.ap-summary-tag {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
}

.ap-summary-tag--free {
    background: rgba(232,168,56,0.2);
    border-color: rgba(232,168,56,0.4);
    color: #f5c842;
}

.ap-form-summary__total {
    font-size: 1.15rem;
    color: #fff;
}

.ap-form-summary__submit {
    background: #e8a838;
    color: #0d1f37;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.9rem 2.5rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    width: 100%;
    max-width: 420px;
}

.ap-form-summary__submit:hover {
    background: #f5ba40;
    transform: translateY(-1px);
}

.ap-form-summary__submit:active {
    transform: translateY(0);
}

.ap-form-summary__note {
    font-size: 0.77rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.ap-form-summary__sample-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.15s;
}

.ap-form-summary__sample-link:hover {
    color: #f5c842;
}

@media (max-width: 700px) {
    .ap-form-card {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .ap-form-header {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .ap-form-summary {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .ap-addon__label {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}


/* ── Under Construction modal ────────────────────────────── */
.ap-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ap-modal {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: calc(100% - 2rem);
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
}

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

.ap-modal__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary, #1a5632);
    margin: 0 0 0.75rem;
}

.ap-modal__body {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.ap-modal__btn {
    display: inline-block;
    background: var(--color-primary, #1a5632);
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.ap-modal__btn:hover {
    background: var(--color-secondary, #2a7a4a);
}

/* ══════════════════════════════════════════════════════════════════════
   TWO-COLUMN LAYOUT (form + sidebar)
══════════════════════════════════════════════════════════════════════ */

.ap-layout__inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--spacing-xl);
    align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────────────── */

.ap-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: sticky;
    top: 80px;
}

.ap-sidebar__card {
    background: #fff;
    border: 1px solid #dde5e0;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.ap-sidebar__card-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e0e8e4;
}

.ap-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ap-sidebar__list li {
    font-size: 0.88rem;
    color: #444;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f4f2;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.ap-sidebar__list li:last-child {
    border-bottom: none;
}

.ap-sidebar__list-icon {
    color: var(--color-primary);
    font-weight: 700;
    min-width: 1rem;
    flex-shrink: 0;
}

.ap-sidebar__link {
    display: block;
    text-align: center;
    font-size: 0.88rem;
    color: var(--color-primary);
    text-decoration: none;
    border-top: 1px solid #e0e8e4;
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.ap-sidebar__link:hover {
    text-decoration: underline;
}

/* ── Legal References card ────────────────────────────────────────── */

.ap-sidebar__card--refs {
    background: #f6faf7;
    border-color: #b8d4c0;
}

.ap-sidebar__refs-intro {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.ap-sidebar__refs {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
}

.ap-sidebar__refs li {
    font-size: 0.8rem;
    color: #444;
    padding: 0.25rem 0;
    border-bottom: 1px solid #ddeae2;
    line-height: 1.4;
}

.ap-sidebar__refs li:last-child {
    border-bottom: none;
}

.ap-sidebar__ref-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ap-sidebar__ref-link:hover {
    text-decoration: underline;
}

/* ── Responsive: stack to single column ──────────────────────────── */

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

    .ap-sidebar {
        position: static;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   SAMPLE REPORT MODAL
══════════════════════════════════════════════════════════════════════ */

.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: 1.5rem;
}

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

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

.sample-modal__header h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    font-style: italic;
    opacity: 0.9;
}

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

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

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

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