/* === CSS VARIABLES (merge with your own :root if you already have one) === */
:root {
    --tm-navy: #00122c;
    --tm-blue: #1e56b0;
    --tm-red: #b91c1c;
    --tm-red-dk: #991b1b;
    --tm-green: #15803d;
    --tm-bg: #ede9e3;
    --tm-border: #d4d0ca;
    --tm-text: #1a1a1a;
    --tm-muted: #6b7280;
    --tm-shadow: 0 2px 16px rgba(0, 18, 44, .09);
}

/* === MODAL OVERLAY === */
.tm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .52);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s
}

.tm-overlay.on {
    opacity: 1;
    pointer-events: all
}

.tm-mbox {
    background: #fff;
    border-radius: 16px;
    padding: 40px 44px;
    width: 100%;
    max-width: 510px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    transform: translateY(14px) scale(.97);
    transition: all .3s cubic-bezier(.34, 1.3, .64, 1)
}

.tm-overlay.on .tm-mbox {
    transform: translateY(0) scale(1)
}

.tm-mclose {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: #dc2626;
    font-size: 1.3rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .15s
}

.tm-mclose:hover {
    background: #fee2e2
}

.tm-mtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--tm-navy)
}

.tm-msub {
    text-align: center;
    color: var(--tm-muted);
    font-size: .9rem;
    margin-bottom: 26px;
    line-height: 1.6
}

/* === SHARED INPUTS === */
.tm-fi {
    margin-bottom: 13px
}

.tm-fi input,
.tm-fi select,
.tm-fi textarea {
    width: 100%;
    border: 1.5px solid var(--tm-border);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: .93rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--tm-text);
    background: #fafaf9;
    transition: border-color .2s, box-shadow .2s;
    outline: none
}

.tm-fi input::placeholder,
.tm-fi textarea::placeholder {
    color: #9ca3af
}

.tm-fi input:focus,
.tm-fi select:focus,
.tm-fi textarea:focus {
    border-color: var(--tm-blue);
    box-shadow: 0 0 0 3px rgba(30, 86, 176, .1);
    background: #fff
}

.tm-fi textarea {
    resize: vertical;
    min-height: 88px
}

.tm-fi select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px
}

.tm-fi input.tm-bad,
.tm-fi textarea.tm-bad {
    border-color: #dc2626
}

.tm-err {
    color: #dc2626;
    font-size: .75rem;
    margin-top: 3px;
    display: none
}

.tm-err.on {
    display: block
}

.tm-cb {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-bottom: 20px;
    margin-top: 4px
}

.tm-cb input[type=checkbox] {
    margin-top: 3px;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: var(--tm-blue)
}

.tm-cb label {
    font-size: .79rem;
    color: var(--tm-muted);
    line-height: 1.5
}

.tm-cb label a {
    color: var(--tm-blue)
}

.tm-btn-prim {
    width: 100%;
    background: var(--tm-blue);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: .98rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    font-family: 'DM Sans', sans-serif
}

.tm-btn-prim:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .28)
}

.tm-btn-prim:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none
}

.tm-star {
    color: #dc2626
}

/* === STEP SHELL === */
#tm-steps {
    min-height: 100vh;
    background: var(--tm-bg);
    display: none
}

#tm-steps.on {
    display: block
}

.tm-hdr {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04)
}

.tm-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--tm-navy);
    font-weight: 700
}

.tm-logo span {
    color: var(--tm-blue)
}

.tm-phone {
    color: var(--tm-muted);
    font-size: .87rem;
    display: flex;
    align-items: center;
    gap: 5px
}

/* Progress bar */
.tm-pbar {
    height: 4px;
    background: #e5e7eb;
    position: sticky;
    top: 53px;
    z-index: 99
}

.tm-pbar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a4fa8, var(--tm-blue));
    transition: width .4s cubic-bezier(.4, 0, .2, 1);
    border-radius: 0 4px 4px 0
}

/* Step dots */
.tm-dots {
    display: flex;
    justify-content: center;
    padding: 28px 16px 0;
    max-width: 680px;
    margin: 0 auto
}

.tm-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative
}

.tm-dot:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: calc(50% + 15px);
    width: calc(100% - 30px);
    height: 2px;
    background: #d1d5db;
    transition: background .3s
}

.tm-dot.done:not(:last-child)::after {
    background: var(--tm-green)
}

.tm-dot.act:not(:last-child)::after {
    background: var(--tm-blue)
}

.tm-dot-c {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    transition: all .3s;
    z-index: 1
}

.tm-dot.act .tm-dot-c {
    background: var(--tm-blue);
    box-shadow: 0 0 0 4px rgba(30, 86, 176, .13)
}

.tm-dot.done .tm-dot-c {
    background: var(--tm-green)
}

.tm-dot-lbl {
    font-size: .7rem;
    color: var(--tm-muted);
    margin-top: 5px;
    font-weight: 500;
    text-align: center;
    max-width: 72px;
    line-height: 1.3
}

.tm-dot.act .tm-dot-lbl {
    color: var(--tm-blue);
    font-weight: 700
}

.tm-dot.done .tm-dot-lbl {
    color: var(--tm-green)
}

/* Step pages */
.tm-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 20px 56px
}

.tm-sp {
    display: none
}

.tm-sp.on {
    display: block;
    animation: tm-fu .28s ease
}

@keyframes tm-fu {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.tm-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    text-align: center;
    color: var(--tm-navy);
    margin-bottom: 9px
}

.tm-sub {
    text-align: center;
    color: var(--tm-muted);
    font-size: .91rem;
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.65
}

/* Option cards */
.tm-oc {
    background: #fff;
    border: 2px solid var(--tm-border);
    border-radius: 13px;
    padding: 18px 22px;
    margin-bottom: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all .18s
}

.tm-oc:hover {
    border-color: var(--tm-blue);
    box-shadow: 0 4px 16px rgba(30, 86, 176, .1)
}

.tm-oc.sel {
    border-color: var(--tm-blue);
    background: #eff6ff;
    box-shadow: 0 4px 18px rgba(30, 86, 176, .11)
}

.tm-rad {
    width: 19px;
    height: 19px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s
}

.tm-oc.sel .tm-rad {
    border-color: var(--tm-blue);
    background: var(--tm-blue)
}

.tm-oc.sel .tm-rad::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff
}

.tm-oi {
    flex: 1
}

.tm-on {
    font-weight: 700;
    font-size: .97rem;
    color: var(--tm-navy);
    margin-bottom: 2px
}

.tm-od {
    font-size: .82rem;
    color: var(--tm-muted)
}

.tm-oex {
    background: #f1f2f4;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: .88rem;
    color: var(--tm-navy);
    font-weight: 600;
    min-width: 130px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0
}

.tm-extag {
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: .62rem;
    color: #9ca3af;
    font-style: italic;
    font-weight: 400
}

/* Detail cards */
.tm-dc {
    background: #fff;
    border-radius: 13px;
    padding: 24px 26px;
    margin-bottom: 18px;
    box-shadow: var(--tm-shadow)
}

.tm-dl {
    font-size: .88rem;
    font-weight: 700;
    color: var(--tm-navy);
    margin-bottom: 3px;
    display: block
}

.tm-dd {
    font-size: .8rem;
    color: var(--tm-muted);
    margin-bottom: 13px;
    line-height: 1.5
}

/* Pricing */
.tm-pgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px
}

@media(max-width:620px) {
    .tm-pgrid {
        grid-template-columns: 1fr
    }
}

.tm-pc {
    background: #fff;
    border: 2px solid var(--tm-border);
    border-radius: 14px;
    padding: 22px 18px;
    cursor: pointer;
    transition: all .2s;
    position: relative
}

.tm-pc:hover {
    box-shadow: var(--tm-shadow)
}

.tm-pc.sel-b {
    border-color: var(--tm-blue);
    background: #eff6ff
}

.tm-pc.sel-d {
    border-color: var(--tm-red);
    background: #fff1f2
}

.tm-pc.sel-p {
    border-color: var(--tm-green);
    background: #f0fdf4
}

.tm-pop {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tm-red);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .03em
}

.tm-pn {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tm-navy);
    margin-bottom: 3px
}

.tm-pt {
    font-size: .78rem;
    color: var(--tm-muted);
    margin-bottom: 14px
}

.tm-pa {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--tm-navy);
    line-height: 1
}

.tm-pa sup {
    font-size: .95rem;
    vertical-align: top;
    margin-top: 3px;
    font-weight: 600
}

.tm-pf {
    font-size: .73rem;
    color: var(--tm-muted);
    margin-bottom: 14px
}

.tm-bch {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .87rem;
    cursor: pointer;
    border: none;
    font-family: 'DM Sans', sans-serif;
    transition: all .2s;
    color: #fff;
    margin-bottom: 4px
}

.tm-bch.b {
    background: var(--tm-blue)
}

.tm-bch.b:hover {
    background: #1d4ed8
}

.tm-bch.d {
    background: var(--tm-red)
}

.tm-bch.d:hover {
    background: var(--tm-red-dk)
}

.tm-bch.g {
    background: var(--tm-green)
}

.tm-bch.g:hover {
    background: #166534
}

.tm-pfl {
    margin-top: 14px;
    list-style: none
}

.tm-pfl li {
    font-size: .79rem;
    color: var(--tm-text);
    margin-bottom: 7px;
    display: flex;
    align-items: flex-start;
    gap: 7px
}

.tm-pfl li::before {
    content: '✓';
    color: var(--tm-green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px
}

.tm-pfl-lbl {
    font-size: .8rem;
    font-weight: 700;
    color: var(--tm-navy);
    margin-bottom: 8px
}

/* Search upsell */
.tm-sb {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: var(--tm-shadow)
}

.tm-bens {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 26px
}

@media(max-width:500px) {
    .tm-bens {
        grid-template-columns: 1fr
    }
}

.tm-ben {
    text-align: center
}

.tm-bck {
    font-size: 1.1rem;
    color: var(--tm-green);
    margin-bottom: 6px
}

.tm-bn {
    font-weight: 700;
    font-size: .87rem;
    color: var(--tm-navy);
    margin-bottom: 3px
}

.tm-bd {
    font-size: .78rem;
    color: var(--tm-muted);
    line-height: 1.5
}

.tm-spn {
    text-align: center;
    margin-bottom: 18px;
    color: var(--tm-muted);
    font-size: .9rem
}

.tm-spn strong {
    color: var(--tm-navy)
}

/* Checkout */
.tm-co-lay {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start
}

@media(max-width:680px) {
    .tm-co-lay {
        grid-template-columns: 1fr
    }
}

.tm-co-card {
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    box-shadow: var(--tm-shadow)
}

.tm-co-st {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tm-navy);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.tm-clgs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap
}

.tm-clg {
    padding: 3px 7px;
    border-radius: 4px;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .03em;
    color: #fff
}

.tm-clg.v {
    background: #1a1f71
}

.tm-clg.m {
    background: #eb001b
}

.tm-clg.a {
    background: #007bc1
}

.tm-clg.d {
    background: #f76010
}

.tm-frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.tm-osum {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--tm-shadow)
}

.tm-ost {
    font-size: .97rem;
    font-weight: 700;
    color: var(--tm-navy);
    margin-bottom: 18px
}

.tm-si {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid var(--tm-border)
}

.tm-si:last-of-type {
    border: none
}

.tm-sin {
    font-size: .85rem;
    font-weight: 600;
    color: var(--tm-navy)
}

.tm-sif {
    font-size: .73rem;
    color: var(--tm-muted)
}

.tm-sia {
    font-size: .76rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    color: var(--tm-navy);
    display: block;
    margin-top: 2px
}

.tm-sip {
    font-size: .92rem;
    font-weight: 700;
    color: var(--tm-navy);
    white-space: nowrap
}

.tm-stot {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid var(--tm-navy);
    display: flex;
    justify-content: space-between;
    align-items: center
}

.tm-stl {
    font-weight: 700;
    color: var(--tm-navy);
    font-size: .95rem
}

.tm-sta {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--tm-navy)
}

/* Nav buttons */
.tm-nav {
    display: flex;
    gap: 11px;
    margin-top: 24px
}

.tm-btn-back {
    padding: 13px 26px;
    border: 2px solid var(--tm-border);
    border-radius: 10px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .92rem;
    color: var(--tm-navy);
    transition: all .2s;
    flex-shrink: 0
}

.tm-btn-back:hover {
    border-color: var(--tm-navy)
}

.tm-btn-next {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    background: var(--tm-blue);
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .97rem;
    transition: all .2s
}

.tm-btn-next:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .28)
}

.tm-btn-next:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none
}

/* Success */
.tm-ok-wrap {
    text-align: center;
    padding: 60px 24px;
    max-width: 520px;
    margin: 0 auto
}

.tm-ok-icon {
    width: 76px;
    height: 76px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    margin: 0 auto 22px
}

.tm-ok-h {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--tm-navy);
    margin-bottom: 10px
}

.tm-ok-p {
    color: var(--tm-muted);
    line-height: 1.75;
    font-size: .95rem
}

/* Toast */
.tm-toast {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: var(--tm-navy);
    color: #fff;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 500;
    z-index: 99999;
    transform: translateY(50px);
    opacity: 0;
    transition: all .3s cubic-bezier(.34, 1.3, .64, 1);
    max-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22)
}

.tm-toast.on {
    transform: translateY(0);
    opacity: 1
}

.tm-toast.ok {
    background: var(--tm-green)
}

.tm-toast.bad {
    background: var(--tm-red)
}