/**
 * template-tailor-made.css
 * Tailor-Made Tours Page — Mobile-First Premium Design
 *
 * Sections:
 *   1. Tokens & Globals
 *   2. Hero
 *   3. How It Works
 *   4. Stepper (progress nav, steps, controls, sidebar)
 *   5. Step content (cards, fields, pills, dest grid, CF7, review)
 *   6. Why Plan With Tourwill
 *   7. Trust Strip
 *   8. Final CTA
 *   9. Responsive (tablet & desktop)
 *
 * @package tourwill-theme
 */

/* ══════════════════════════════════════════════════════════
   1. TOKENS & GLOBALS
══════════════════════════════════════════════════════════ */
:root {
    --tm-primary:        #134e4a;
    --tm-primary-dark:   #0d3a35;
    --tm-primary-light:  #1f6e69;
    --tm-accent:         #eab308;
    --tm-accent-dark:    #ca8a04;
    --tm-accent-soft:    #fef3c7;
    --tm-text:           #111827;
    --tm-text-muted:     #6b7280;
    --tm-text-soft:      #9ca3af;
    --tm-border:         #e5e7eb;
    --tm-border-soft:    #f1f5f9;
    --tm-bg:             #f8fafc;
    --tm-bg-soft:        #f9fafb;
    --tm-white:          #ffffff;
    --tm-radius-sm:      10px;
    --tm-radius:         16px;
    --tm-radius-lg:      24px;
    --tm-shadow-sm:      0 2px 8px rgba(0,0,0,.04);
    --tm-shadow:         0 4px 20px rgba(0,0,0,.06);
    --tm-shadow-md:      0 8px 28px rgba(0,0,0,.10);
    --tm-shadow-lg:      0 20px 50px rgba(0,0,0,.14);
    --tm-trans:          0.28s cubic-bezier(.4,0,.2,1);
    --tm-navbar-h:       80px;
}

/* Container — matches existing theme convention */
.tm-page .container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 16px;
}
@media (min-width: 768px)  { .tm-page .container { padding-inline: 32px; } }
@media (min-width: 1200px) { .tm-page .container { padding-inline: 48px; } }

.tm-page { background: var(--tm-bg); color: var(--tm-text); }

.tm-sr-only {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ══════════════════════════════════════════════════════════
   2. HERO
══════════════════════════════════════════════════════════ */
.tm-hero {
    position: relative;
    min-height: calc(440px + var(--tm-navbar-h));
    background: var(--tm-primary-dark) var(--tm-hero-bg, none) center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding-top: var(--tm-navbar-h);
    padding-bottom: 40px;
    overflow: hidden;
    isolation: isolate;
}
.tm-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13,58,53,.94) 0%,
        rgba(13,58,53,.78) 45%,
        rgba(13,58,53,.30) 100%
    );
    z-index: 1;
}
.tm-hero__inner {
    position: relative;
    z-index: 2;
    color: #fff;
}

.tm-hero__eyebrow {
    color: var(--tm-accent);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}
.tm-hero__title {
    font-size: clamp(1.85rem, 5.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.tm-hero__desc {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255,255,255,.9);
    max-width: 600px;
    margin: 0 0 24px;
}

.tm-hero__trust {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tm-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.tm-hero__trust-icon {
    color: var(--tm-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tm-hero__trust-icon img { display: block; height: 24px; width: auto; }
.tm-hero__trust-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .tm-hero__trust { flex-direction: row; flex-wrap: wrap; gap: 24px; }
}
@media (min-width: 768px) {
    .tm-hero { min-height: calc(520px + var(--tm-navbar-h)); padding-bottom: 60px; }
    .tm-hero__desc { font-size: 1.05rem; margin-bottom: 32px; }
    .tm-hero__trust { gap: 32px; }
    .tm-hero__trust-text { font-size: 0.95rem; }
}
@media (min-width: 1024px) {
    .tm-hero { min-height: calc(560px + var(--tm-navbar-h)); }
    .tm-hero__title { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 18px; }
}


/* ══════════════════════════════════════════════════════════
   3. HOW IT WORKS
══════════════════════════════════════════════════════════ */
.tm-how {
    background: var(--tm-white);
    padding: 56px 0;
}
.tm-how__title {
    text-align: center;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--tm-primary);
    margin: 0 0 36px;
    letter-spacing: -0.01em;
}
.tm-how__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.tm-how__card {
    position: relative;
    background: var(--tm-white);
    border: 1px solid var(--tm-border-soft);
    border-radius: var(--tm-radius);
    padding: 26px 20px 24px;
    text-align: center;
    box-shadow: var(--tm-shadow-sm);
    transition: transform var(--tm-trans), box-shadow var(--tm-trans);
}
.tm-how__card:hover { transform: translateY(-3px); box-shadow: var(--tm-shadow-md); }

.tm-how__num {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--tm-primary);
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.tm-how__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--tm-accent-soft);
    color: var(--tm-accent-dark);
    margin: 4px auto 14px;
}
.tm-how__icon svg { width: 26px; height: 26px; }
.tm-how__icon img { display: block; height: 30px; width: auto; }

.tm-how__card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tm-primary);
    margin: 0 0 8px;
    line-height: 1.3;
}
.tm-how__card-desc {
    font-size: 0.85rem;
    color: var(--tm-text-muted);
    line-height: 1.5;
    margin: 0;
}

.tm-how__chevron { display: none; }

@media (min-width: 768px) {
    .tm-how { padding: 72px 0; }
    .tm-how__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}
@media (min-width: 1024px) {
    .tm-how__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
        position: relative;
    }
    .tm-how__chevron {
        display: inline-flex;
        position: absolute;
        right: -22px;
        top: 50%;
        transform: translateY(-50%);
        width: 22px; height: 22px;
        align-items: center;
        justify-content: center;
        color: var(--tm-text-soft);
        z-index: 1;
        pointer-events: none;
    }
    .tm-how__card { padding: 36px 24px 28px; }
    .tm-how__icon { width: 64px; height: 64px; }
    .tm-how__icon svg { width: 30px; height: 30px; }
    .tm-how__card-title { font-size: 1.05rem; }
}


/* ══════════════════════════════════════════════════════════
   4. STEPPER — wrapper, progress, layout
══════════════════════════════════════════════════════════ */
.tm-stepper {
    background: var(--tm-bg);
    padding: 32px 0 88px; /* extra bottom for sticky controls on mobile */
}

/* ── Progress nav ── */
.tm-progress {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 18px 14px;
    margin-bottom: 18px;
    box-shadow: var(--tm-shadow-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.tm-progress::-webkit-scrollbar { height: 4px; }
.tm-progress::-webkit-scrollbar-thumb { background: var(--tm-border); border-radius: 2px; }

.tm-progress__list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: max-content;
}
.tm-progress__item {
    flex: 1;
    position: relative;
    min-width: 86px;
}
.tm-progress__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
    height: 2px;
    background: var(--tm-border);
    z-index: 0;
}
.tm-progress__item.is-completed:not(:last-child)::after { background: var(--tm-primary); }

.tm-progress__btn {
    background: none;
    border: 0;
    padding: 0;
    width: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font: inherit;
    color: var(--tm-text-muted);
    position: relative;
    z-index: 1;
}
.tm-progress__btn:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 4px; border-radius: 4px; }

.tm-progress__circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tm-white);
    border: 2px solid var(--tm-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all var(--tm-trans);
    position: relative;
}
.tm-progress__check {
    width: 14px; height: 14px;
    color: #fff;
    display: none;
}
.tm-progress__item.is-active .tm-progress__circle {
    background: var(--tm-primary);
    border-color: var(--tm-primary);
    color: #fff;
}
.tm-progress__item.is-completed .tm-progress__circle {
    background: var(--tm-primary);
    border-color: var(--tm-primary);
}
.tm-progress__item.is-completed .tm-progress__check { display: block; }
.tm-progress__item.is-completed .tm-progress__num { display: none; }
.tm-progress__item.is-active .tm-progress__btn,
.tm-progress__item.is-completed .tm-progress__btn { color: var(--tm-primary); }

.tm-progress__label {
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.25;
    max-width: 84px;
    white-space: normal;
}

@media (min-width: 768px) {
    .tm-progress { padding: 22px 18px; margin-bottom: 24px; }
    .tm-progress__circle { width: 36px; height: 36px; font-size: 0.85rem; }
    .tm-progress__item:not(:last-child)::after { top: 18px; }
    .tm-progress__label { font-size: 0.78rem; max-width: 100px; }
}

/* ── Stepper grid: main + sidebar ── */
.tm-stepper__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--tm-white);
    border-radius: var(--tm-radius-lg);
    padding: 22px 18px;
    box-shadow: var(--tm-shadow-sm);
    border: 1px solid var(--tm-border-soft);
}

.tm-form { display: contents; }

@media (min-width: 1024px) {
    .tm-stepper__grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 36px;
        padding: 32px 30px;
        align-items: start;
    }
    .tm-stepper__grid > .tm-step,
    .tm-stepper__grid > .tm-form,
    .tm-stepper__grid > .tm-controls { grid-column: 1; }
    .tm-stepper__grid > .tm-sidebar { grid-column: 2; grid-row: 1 / span 99; position: sticky; top: 24px; }
}


/* ══════════════════════════════════════════════════════════
   5. STEP CONTENT
══════════════════════════════════════════════════════════ */
.tm-step { display: none; animation: tm-fade .35s ease; }
.tm-step.is-active { display: block; }

@keyframes tm-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tm-step__head { margin-bottom: 22px; }
.tm-step__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tm-primary);
    margin: 0 0 6px;
    line-height: 1.3;
}
.tm-step__desc {
    font-size: 0.9rem;
    color: var(--tm-text-muted);
    margin: 0;
    line-height: 1.5;
}
@media (min-width: 768px) {
    .tm-step__title { font-size: 1.45rem; }
    .tm-step__desc  { font-size: 0.95rem; }
}

/* ── Step 1: Choice cards ── */
.tm-choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
}
@media (min-width: 640px) {
    .tm-choice-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.tm-choice { position: relative; cursor: pointer; }
.tm-choice input { position: absolute; opacity: 0; pointer-events: none; }

.tm-choice__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 24px;
    border: 2px solid var(--tm-border);
    border-radius: var(--tm-radius);
    background: var(--tm-white);
    transition: all var(--tm-trans);
    position: relative;
    height: 100%;
}
.tm-choice:hover .tm-choice__inner { border-color: var(--tm-accent); transform: translateY(-2px); }

.tm-choice input:checked + .tm-choice__inner {
    border-color: var(--tm-accent);
    background: var(--tm-accent-soft);
    box-shadow: 0 0 0 3px rgba(234,179,8,.15);
}
.tm-choice__check {
    position: absolute;
    top: 10px; right: 10px;
    width: 24px; height: 24px;
    background: var(--tm-accent);
    border-radius: 6px;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
}
.tm-choice__check svg { width: 14px; height: 14px; }
.tm-choice input:checked + .tm-choice__inner .tm-choice__check { display: inline-flex; }

.tm-choice__icon {
    color: var(--tm-primary);
    margin-bottom: 14px;
}
.tm-choice__title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tm-primary);
    margin-bottom: 6px;
}
.tm-choice__desc {
    font-size: 0.85rem;
    color: var(--tm-text-muted);
    line-height: 1.5;
}

/* ── Itinerary picker ── */
.tm-itin-picker {
    background: var(--tm-bg-soft);
    border: 1px solid var(--tm-border-soft);
    border-radius: var(--tm-radius);
    padding: 20px 16px;
    margin-bottom: 18px;
}
.tm-itin-picker__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tm-primary);
    margin: 0 0 4px;
}
.tm-itin-picker__sub {
    font-size: 0.85rem;
    color: var(--tm-text-muted);
    margin: 0 0 16px;
}
.tm-itin-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

.tm-itin-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--tm-white);
    border: 2px solid var(--tm-border);
    border-radius: var(--tm-radius);
    cursor: pointer;
    transition: all var(--tm-trans);
}
.tm-itin-row:hover { border-color: var(--tm-accent); }
.tm-itin-row input { position: absolute; opacity: 0; pointer-events: none; }

.tm-itin-row__radio {
    width: 20px; height: 20px;
    border: 2px solid var(--tm-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all var(--tm-trans);
}
.tm-itin-row input:checked ~ .tm-itin-row__radio { border-color: var(--tm-accent); }
.tm-itin-row input:checked ~ .tm-itin-row__radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--tm-accent);
}
.tm-itin-row:has(input:checked) {
    border-color: var(--tm-accent);
    background: var(--tm-accent-soft);
}

.tm-itin-row__img {
    width: 78px;
    height: 60px;
    border-radius: 10px;
    background: var(--tm-bg) center/cover no-repeat;
    flex-shrink: 0;
}
.tm-itin-row__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.tm-itin-row__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tm-primary);
    line-height: 1.3;
}
.tm-itin-row__meta { font-size: 0.78rem; color: var(--tm-text-muted); }
.tm-itin-row__price { font-size: 0.85rem; color: var(--tm-text); }
.tm-itin-row__price strong { color: var(--tm-primary); }

@media (min-width: 768px) {
    .tm-itin-picker { padding: 24px 22px; }
    .tm-itin-row__img { width: 96px; height: 72px; }
}

/* ── Form fields ── */
.tm-field { margin-bottom: 16px; }
.tm-field--inline { display: flex; align-items: center; }

.tm-field__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tm-text);
    margin-bottom: 6px;
}
.tm-field__optional {
    font-weight: 400;
    color: var(--tm-text-muted);
    font-size: 0.78rem;
}

.tm-field__input,
.tm-field__select,
.tm-field__textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--tm-border);
    border-radius: var(--tm-radius-sm);
    background: var(--tm-white);
    font: inherit;
    font-size: 0.95rem;
    color: var(--tm-text);
    transition: all var(--tm-trans);
    font-family: inherit;
}
.tm-field__textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

.tm-field__input:focus,
.tm-field__select:focus,
.tm-field__textarea:focus {
    outline: none;
    border-color: var(--tm-accent);
    box-shadow: 0 0 0 3px rgba(234,179,8,.15);
}

.tm-field__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.tm-field__help {
    font-size: 0.78rem;
    color: var(--tm-text-muted);
    margin: 6px 0 0;
}
.tm-field__help-inline {
    font-size: 0.75rem;
    color: var(--tm-text-muted);
    font-weight: 400;
}

.tm-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 640px) {
    .tm-grid-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ── Checkbox ── */
.tm-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--tm-text);
}
.tm-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tm-checkbox__box {
    width: 22px; height: 22px;
    border: 2px solid var(--tm-border);
    border-radius: 6px;
    background: var(--tm-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all var(--tm-trans);
    flex-shrink: 0;
}
.tm-checkbox__box svg { width: 14px; height: 14px; opacity: 0; }
.tm-checkbox input:checked + .tm-checkbox__box {
    background: var(--tm-accent);
    border-color: var(--tm-accent);
}
.tm-checkbox input:checked + .tm-checkbox__box svg { opacity: 1; }

/* ── Pill set (interests, accommodation, etc.) ── */
.tm-pillset { border: 0; padding: 0; margin: 0 0 22px; }
.tm-pillset__legend {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tm-text);
    margin-bottom: 10px;
    padding: 0;
}
.tm-pillset__group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tm-pill-check {
    position: relative;
    cursor: pointer;
}
.tm-pill-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tm-pill-check__face {
    display: inline-block;
    padding: 9px 16px;
    border: 1.5px solid var(--tm-border);
    border-radius: 999px;
    background: var(--tm-white);
    font-size: 0.85rem;
    color: var(--tm-text);
    transition: all var(--tm-trans);
    user-select: none;
}
.tm-pill-check:hover .tm-pill-check__face { border-color: var(--tm-accent); }
.tm-pill-check input:checked + .tm-pill-check__face {
    background: var(--tm-primary);
    border-color: var(--tm-primary);
    color: #fff;
}

/* ── Destination grid (Step 4) ── */
.tm-dest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
@media (min-width: 640px) { .tm-dest-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .tm-dest-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.tm-dest { position: relative; cursor: pointer; }
.tm-dest input { position: absolute; opacity: 0; pointer-events: none; }
.tm-dest__media {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--tm-radius);
    background: var(--tm-primary-light) center/cover no-repeat;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all var(--tm-trans);
}
.tm-dest__media::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55) 100%);
    transition: opacity var(--tm-trans);
}
.tm-dest:hover .tm-dest__media { transform: translateY(-2px); }
.tm-dest input:checked ~ .tm-dest__media {
    border-color: var(--tm-accent);
    box-shadow: 0 0 0 3px rgba(234,179,8,.2);
}
.tm-dest__check {
    position: absolute;
    top: 8px; right: 8px;
    width: 26px; height: 26px;
    background: var(--tm-accent);
    border-radius: 8px;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.tm-dest__check svg { width: 14px; height: 14px; }
.tm-dest input:checked ~ .tm-dest__media .tm-dest__check { display: inline-flex; }

.tm-dest__name {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tm-text);
    margin-top: 8px;
}

/* ── CF7 wrapper styling ── */
.tm-cf7-wrap .wpcf7-form { margin: 0; }
.tm-cf7-wrap .wpcf7 p { margin-bottom: 14px; }

.tm-cf7-wrap label,
.tm-cf7-wrap .wpcf7-form-control-wrap > label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tm-text);
    margin-bottom: 6px;
}

.tm-cf7-wrap input[type="text"],
.tm-cf7-wrap input[type="email"],
.tm-cf7-wrap input[type="tel"],
.tm-cf7-wrap input[type="url"],
.tm-cf7-wrap input[type="number"],
.tm-cf7-wrap input[type="date"],
.tm-cf7-wrap select,
.tm-cf7-wrap textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--tm-border);
    border-radius: var(--tm-radius-sm);
    background: var(--tm-white);
    font: inherit;
    font-size: 0.95rem;
    color: var(--tm-text);
    transition: all var(--tm-trans);
    box-sizing: border-box;
}
.tm-cf7-wrap input:focus,
.tm-cf7-wrap select:focus,
.tm-cf7-wrap textarea:focus {
    outline: none;
    border-color: var(--tm-accent);
    box-shadow: 0 0 0 3px rgba(234,179,8,.15);
}
.tm-cf7-wrap textarea { min-height: 100px; resize: vertical; }

.tm-cf7-wrap .wpcf7-acceptance label,
.tm-cf7-wrap .wpcf7-list-item-label {
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: 6px;
    cursor: pointer;
}
.tm-cf7-wrap .wpcf7-list-item { margin: 0; }

/* Hide the CF7 native submit button — we trigger it from step 8 */
.tm-cf7-wrap input[type="submit"],
.tm-cf7-wrap button[type="submit"] {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
}

.tm-cf7-wrap .wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 4px;
}
.tm-cf7-wrap .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: var(--tm-radius-sm);
    font-size: 0.9rem;
}
.tm-cf7-wrap .wpcf7-mail-sent-ok {
    border: 1.5px solid #10b981;
    background: #ecfdf5;
    color: #065f46;
}
.tm-cf7-wrap .wpcf7-validation-errors,
.tm-cf7-wrap .wpcf7-mail-sent-ng {
    border: 1.5px solid #dc2626;
    background: #fef2f2;
    color: #991b1b;
}
.tm-cf7-empty {
    background: #fff7ed;
    border: 1.5px dashed #f59e0b;
    border-radius: var(--tm-radius);
    padding: 20px;
    color: #92400e;
}
.tm-cf7-empty strong { display: block; margin-bottom: 4px; }
.tm-cf7-empty p { margin: 0; font-size: 0.9rem; }

/* ── Review (Step 8) ── */
.tm-review {
    background: var(--tm-bg-soft);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    padding: 18px;
}
.tm-review__group { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--tm-border); }
.tm-review__group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.tm-review__heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tm-text-muted);
    margin: 0 0 8px;
}
.tm-review__row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 0.92rem;
    color: var(--tm-text);
    margin-bottom: 4px;
    line-height: 1.5;
}
.tm-review__row strong {
    color: var(--tm-primary);
    min-width: 130px;
    flex-shrink: 0;
    font-weight: 600;
}
.tm-review__empty {
    text-align: center;
    padding: 20px;
    color: var(--tm-text-muted);
    font-size: 0.9rem;
}
.tm-review__consent-note {
    font-size: 0.82rem;
    color: var(--tm-text-muted);
    text-align: center;
    margin: 16px 0 0;
}

/* ── Empty / placeholder ── */
.tm-empty {
    background: var(--tm-bg);
    border: 1px dashed var(--tm-border);
    border-radius: var(--tm-radius);
    padding: 20px;
    text-align: center;
    color: var(--tm-text-muted);
    font-size: 0.9rem;
}


/* ══════════════════════════════════════════════════════════
   STEP CONTROLS (sticky on mobile)
══════════════════════════════════════════════════════════ */
.tm-controls {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tm-white);
    border-top: 1px solid var(--tm-border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.tm-controls__count {
    font-size: 0.78rem;
    color: var(--tm-text-muted);
    font-weight: 500;
}

.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    border: 0;
    border-radius: var(--tm-radius-sm);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tm-trans);
    text-decoration: none;
    line-height: 1;
}
.tm-btn:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 2px; }

.tm-btn--primary {
    background: var(--tm-accent);
    color: var(--tm-primary-dark);
}
.tm-btn--primary:hover { background: var(--tm-accent-dark); color: #fff; }

.tm-btn--ghost {
    background: transparent;
    color: var(--tm-text-muted);
    padding: 11px 14px;
}
.tm-btn--ghost:hover { color: var(--tm-primary); background: var(--tm-bg); }

@media (min-width: 1024px) {
    .tm-controls {
        position: relative;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 24px 0 0;
        justify-content: flex-end;
        gap: 14px;
    }
    .tm-controls__count {
        margin-right: auto;
    }
    .tm-btn { padding: 13px 24px; font-size: 0.95rem; }
}


/* ══════════════════════════════════════════════════════════
   SIDEBAR (right column on desktop)
══════════════════════════════════════════════════════════ */
.tm-sidebar {
    background: var(--tm-bg-soft);
    border: 1px solid var(--tm-border-soft);
    border-radius: var(--tm-radius);
    padding: 22px 20px;
    margin-top: 20px;
}
.tm-sidebar__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tm-primary);
    margin: 0 0 10px;
    line-height: 1.3;
}
.tm-sidebar__text {
    font-size: 0.88rem;
    color: var(--tm-text-muted);
    line-height: 1.6;
    margin: 0 0 18px;
}
.tm-sidebar__bullets { list-style: none; padding: 0; margin: 0 0 18px; }
.tm-sidebar__bullet {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--tm-text);
    padding: 6px 0;
    font-weight: 500;
}
.tm-sidebar__bullet-icon {
    color: var(--tm-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tm-sidebar__media { margin: 0; }
.tm-sidebar__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--tm-radius);
}

@media (min-width: 1024px) {
    .tm-sidebar { margin-top: 0; }
}


/* ══════════════════════════════════════════════════════════
   6. WHY PLAN WITH TOURWILL
══════════════════════════════════════════════════════════ */
.tm-why {
    background: var(--tm-bg);
    padding: 56px 0;
}
.tm-why__title {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 700;
    color: var(--tm-primary);
    margin: 0 0 28px;
    text-align: left;
}
.tm-why__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.tm-why__card {
    background: var(--tm-white);
    border: 1px solid var(--tm-border-soft);
    border-radius: var(--tm-radius);
    padding: 22px 20px;
    box-shadow: var(--tm-shadow-sm);
    transition: all var(--tm-trans);
}
.tm-why__card:hover { transform: translateY(-2px); box-shadow: var(--tm-shadow); }

.tm-why__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--tm-primary);
    color: var(--tm-accent);
    border-radius: 10px;
    margin-bottom: 12px;
}
.tm-why__icon svg { width: 22px; height: 22px; }
.tm-why__icon img { display: block; height: 22px; width: auto; filter: brightness(0) invert(1); }

.tm-why__card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tm-primary);
    margin: 0 0 6px;
    line-height: 1.3;
}
.tm-why__card-desc {
    font-size: 0.85rem;
    color: var(--tm-text-muted);
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 640px) {
    .tm-why__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (min-width: 1024px) {
    .tm-why__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .tm-why__title { text-align: left; }
}


/* ══════════════════════════════════════════════════════════
   7. TRUST STRIP
══════════════════════════════════════════════════════════ */
.tm-trust-strip {
    background: var(--tm-bg);
    padding: 28px 0 36px;
}
.tm-trust-strip__list {
    list-style: none;
    margin: 0;
    padding: 22px 18px;
    background: var(--tm-white);
    border: 1px solid var(--tm-border-soft);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow-sm);
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.tm-trust-strip__item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.tm-trust-strip__icon {
    color: var(--tm-primary);
    background: var(--tm-bg);
    border-radius: 10px;
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tm-trust-strip__icon svg { width: 22px; height: 22px; }
.tm-trust-strip__icon img { display: block; height: 22px; width: auto; }
.tm-trust-strip__body { display: flex; flex-direction: column; gap: 2px; }
.tm-trust-strip__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tm-primary);
    line-height: 1.3;
}
.tm-trust-strip__desc {
    font-size: 0.82rem;
    color: var(--tm-text-muted);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .tm-trust-strip__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        padding: 26px 24px;
    }
}


/* ══════════════════════════════════════════════════════════
   8. FINAL CTA
══════════════════════════════════════════════════════════ */
.tm-final-cta {
    background: var(--tm-bg);
    padding: 0 0 56px;
}
.tm-final-cta__card {
    background: var(--tm-primary);
    color: #fff;
    border-radius: var(--tm-radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--tm-shadow-md);
    background-image:
        radial-gradient(circle at top right, rgba(234,179,8,.18), transparent 60%),
        radial-gradient(circle at bottom left, rgba(255,255,255,.04), transparent 60%);
}
.tm-final-cta__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
}
.tm-final-cta__desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,.85);
    line-height: 1.55;
    margin: 0;
}
.tm-final-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--tm-accent);
    color: var(--tm-primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 22px;
    border-radius: var(--tm-radius-sm);
    text-decoration: none;
    transition: all var(--tm-trans);
    align-self: flex-start;
}
.tm-final-cta__btn:hover {
    background: var(--tm-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(234,179,8,.3);
}

@media (min-width: 768px) {
    .tm-final-cta__card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 36px 40px;
        gap: 32px;
    }
    .tm-final-cta__title { font-size: 1.5rem; }
    .tm-final-cta__btn { align-self: center; flex-shrink: 0; padding: 14px 26px; }
}


/* ══════════════════════════════════════════════════════════
   ABOUT-TESTIMONIALS — small overrides on this page
══════════════════════════════════════════════════════════ */
.tm-page .about-testimonials { background: var(--tm-bg); padding: 40px 0 16px; }
@media (min-width: 768px)  { .tm-page .about-testimonials { padding: 56px 0 24px; } }


/* ══════════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .tm-step,
    .tm-how__card,
    .tm-why__card,
    .tm-choice__inner,
    .tm-final-cta__btn { transition: none; animation: none; }
    .tm-how__card:hover,
    .tm-why__card:hover,
    .tm-final-cta__btn:hover { transform: none; }
}
