/* =========================================================
   BOOK A FREE TRIAL (book-trial.php) — builds on home.css (.hm)
   ========================================================= */

.hm .bt-hero {
    padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 6vw, 96px);
}

.bt-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.bt .hm-hero-title {
    font-size: clamp(2.2rem, 4vw, 3.3rem);
}

/* ---------- Left column ---------- */
.bt-next {
    list-style: none;
    margin-top: 32px;
    display: grid;
    gap: 4px;
    position: relative;
}

.bt-next::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 24px;
    bottom: 24px;
    border-left: 2px dashed rgba(13, 148, 136, 0.35);
}

.bt-next li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
}

.bt-next-num {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid rgba(13, 148, 136, 0.3);
    color: var(--teal-d);
    font-family: var(--font-h);
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.bt-next strong {
    display: block;
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--ink);
}

.bt-next small {
    display: block;
    margin-top: 2px;
    font-size: 0.9rem;
    color: var(--muted);
}

.hm .bt-quote {
    margin-top: 28px;
    width: auto;
    box-shadow: var(--shadow-md);
}

.bt-quote {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
}

.bt-quote blockquote {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--ink-2);
}

.bt-quote figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bt-quote figcaption strong {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    color: var(--ink);
}

.bt-quote figcaption small {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

.bt-trust {
    list-style: none;
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-2);
}

.bt-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bt-trust svg {
    width: 17px;
    height: 17px;
    color: var(--teal);
}

/* ---------- Form card ---------- */
.bt-card-wrap {
    position: sticky;
    top: 92px;
    z-index: 1;
}

.bt-card {
    position: relative;
    padding: clamp(22px, 3vw, 36px);
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -32px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.bt-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.5), rgba(251, 191, 36, 0.35), rgba(20, 184, 166, 0.1));
    filter: blur(18px);
    opacity: 0.45;
}

.bt-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hm .bt-card-head h2 {
    font-family: var(--font-h);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bt-card-head p {
    font-size: 0.88rem;
    color: var(--muted);
}

.bt-step-count {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--teal-d);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 800;
}

/* Stepper */
.bt-steps {
    list-style: none;
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bt-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.86rem;
    font-weight: 700;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.bt-dot {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.bt-dot b {
    font-weight: 800;
}

.bt-dot svg {
    position: absolute;
    width: 15px;
    height: 15px;
    stroke-width: 3;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.bt-steps li.is-current {
    color: var(--ink);
}

.bt-steps li.is-current .bt-dot {
    border-color: var(--teal);
    color: var(--teal-d);
    box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.15);
}

.bt-steps li.is-done {
    color: var(--teal-d);
}

.bt-steps li.is-done .bt-dot {
    border-color: var(--teal);
    background: var(--teal);
    color: #ffffff;
}

.bt-steps li.is-done .bt-dot b {
    opacity: 0;
}

.bt-steps li.is-done .bt-dot svg {
    opacity: 1;
    transform: none;
}

.bt-bar {
    margin-top: 14px;
    height: 4px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.bt-bar span {
    display: block;
    height: 100%;
    min-width: 4%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal-2), var(--teal-d));
    transition: width 0.5s var(--mo-ease, ease);
}

.bt-alert {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-weight: 600;
    font-size: 0.9rem;
}

.bt-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Panes */
#btForm {
    margin-top: 22px;
}

.bt-pane {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
    display: grid;
    gap: 16px;
}

.bt-pane[hidden] {
    display: none;
}

.bt-pane.bt-in {
    animation: bt-slide 0.45s var(--mo-ease, ease) both;
}

@keyframes bt-slide {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: none; }
}

.bt-legend {
    padding: 0;
    margin-bottom: 2px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.bt-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.bt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bt-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.bt-field > span {
    font-family: var(--font-ui);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink);
}

.bt-input {
    position: relative;
    display: flex;
    align-items: center;
}

.bt-input > svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.bt-input input,
.bt-input select {
    width: 100%;
    height: 52px;
    padding: 0 14px 0 44px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bt-input select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.bt-input input::placeholder {
    color: #a0aec0;
}

.bt-input input:hover,
.bt-input select:hover {
    border-color: #cbd5e1;
}

.bt-input input:focus,
.bt-input select:focus {
    outline: none;
    border-color: var(--teal);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.bt-input:focus-within > svg {
    color: var(--teal);
}

.bt-field.has-error .bt-input input,
.bt-field.has-error .bt-input select {
    border-color: #f87171;
    background-color: #fffafa;
}

.bt-field.has-error .bt-input > svg {
    color: #ef4444;
}

.bt-err {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 600;
    animation: bt-shake 0.35s ease;
}

.bt-err[hidden] {
    display: none;
}

@keyframes bt-shake {
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
}

/* Segmented control */
.bt-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    height: 52px;
    border-radius: 14px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
}

.bt-seg label {
    position: relative;
    cursor: pointer;
}

.bt-seg input {
    position: absolute;
    opacity: 0;
}

.bt-seg span {
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--muted);
    transition: all 0.2s ease;
}

.bt-seg input:checked + span {
    background: #ffffff;
    color: var(--teal-d);
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.bt-seg input:focus-visible + span {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}

.bt-field.has-error .bt-seg {
    border-color: #f87171;
}

/* Class type options */
.bt-options {
    display: grid;
    gap: 10px;
}

.bt-option {
    cursor: pointer;
}

.bt-option input {
    position: absolute;
    opacity: 0;
}

.bt-option-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bt-option:hover .bt-option-box {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.bt-option input:checked + .bt-option-box {
    border-color: var(--teal);
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.bt-option input:focus-visible + .bt-option-box {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.bt-option-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: var(--ink-2);
    transition: all 0.2s ease;
}

.bt-option-icon svg {
    width: 20px;
    height: 20px;
}

.bt-option input:checked + .bt-option-box .bt-option-icon {
    background: var(--teal);
    color: #ffffff;
}

.bt-option-text {
    flex: 1;
    min-width: 0;
}

.bt-option-text strong {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.98rem;
    color: var(--ink);
}

.bt-option-text em {
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bt-option-text small {
    display: block;
    margin-top: 2px;
    font-size: 0.84rem;
    color: var(--muted);
}

.bt-radio-dot {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    transition: all 0.2s ease;
}

.bt-option input:checked + .bt-option-box .bt-radio-dot {
    border: 6px solid var(--teal);
}

/* Summary */
.bt-summary {
    position: relative;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--soft);
    border: 1px dashed #cbd5e1;
}

.bt-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ink);
}

.bt-summary-title svg {
    width: 16px;
    height: 16px;
    color: var(--teal);
}

.bt-summary dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.bt-summary dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.bt-summary dd {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bt-edit {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--teal-d);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}

.bt-edit:hover {
    text-decoration: underline;
}

/* Actions */
.bt-actions {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.bt-actions .bt-next-btn,
.bt-actions .bt-submit {
    flex: 1;
    justify-content: space-between;
    max-width: 320px;
}

.bt-pane[data-pane="1"] .bt-actions .bt-next-btn {
    max-width: none;
}

.bt-back-btn svg {
    width: 16px;
    height: 16px;
}

.bt-submit:disabled {
    opacity: 0.8;
    cursor: progress;
}

.bt-fine {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--muted);
}

.bt-fine svg {
    width: 14px;
    height: 14px;
}

/* ---------- Success ---------- */
.bt-success {
    text-align: center;
    padding: 10px 0;
}

.bt-check {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
}

.bt-check svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bt-check circle {
    stroke: var(--teal);
    fill: var(--mint);
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: bt-draw 0.7s ease forwards;
}

.bt-check path {
    stroke: var(--teal-d);
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: bt-draw 0.4s ease 0.55s forwards;
}

@keyframes bt-draw {
    to { stroke-dashoffset: 0; }
}

.hm .bt-success h2 {
    font-family: var(--font-h);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bt-success > p {
    max-width: 440px;
    margin: 10px auto 0;
    line-height: 1.65;
    color: var(--muted);
}

.bt-success > p strong {
    color: var(--ink);
}

.bt-timeline {
    list-style: none;
    margin: 26px auto 0;
    max-width: 400px;
    display: grid;
    gap: 14px;
    text-align: left;
}

.bt-timeline li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bt-timeline li > span {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid #e2e8f0;
    font-family: var(--font-h);
    font-weight: 800;
    color: var(--muted);
}

.bt-timeline li.is-done > span {
    border-color: var(--teal);
    background: var(--teal);
    color: #ffffff;
}

.bt-timeline svg {
    width: 16px;
    height: 16px;
    stroke-width: 3;
}

.bt-timeline strong {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--ink);
}

.bt-timeline small {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
}

.bt-success-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hm .bt-btn-plain {
    padding: 0 22px;
}

.bt-link {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--teal-d);
}

.bt-link svg {
    width: 16px;
    height: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .bt-grid {
        grid-template-columns: 1fr;
    }

    .bt-card-wrap {
        position: static;
        order: -1;
    }

    /* On phones/tablets: short intro, then the form, then the reassurance */
    .bt-intro {
        display: contents;
    }

    .bt-intro > .hm-eyebrow,
    .bt-intro > .hm-hero-title,
    .bt-intro > .hm-hero-sub {
        order: -2;
    }

    .bt-intro > .hm-hero-title {
        margin-top: 0;
    }

    .bt-intro > .hm-hero-sub {
        margin-top: -12px;
    }
}

@media (max-width: 640px) {
    .bt-row,
    .bt-summary dl {
        grid-template-columns: 1fr;
    }

    .bt-card {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .bt-steps li {
        font-size: 0.78rem;
    }

    .bt-card-head p {
        display: none;
    }

    .bt-actions .bt-back-btn {
        padding: 0 16px;
    }

    .bt-success-actions .hm-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bt-pane.bt-in,
    .bt-err,
    .bt-check circle,
    .bt-check path {
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* =====================================================================
   HERO — centred form stage (.bt-stage): headline on top, the form in the middle,
   "what happens next" on the left rail, proof + reassurance on the right rail.
   ===================================================================== */
.hm .bt-stage { background:
    radial-gradient(45% 55% at 50% 60%, rgba(20, 184, 166, .16) 0%, rgba(20, 184, 166, 0) 70%),
    radial-gradient(30% 40% at 0% 20%, rgba(253, 230, 138, .35) 0%, rgba(253, 230, 138, 0) 70%),
    radial-gradient(30% 40% at 100% 30%, rgba(254, 205, 211, .4) 0%, rgba(254, 205, 211, 0) 70%),
    linear-gradient(180deg, #f6fdfb 0%, #ffffff 100%); }
.bt-stage-head { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 760px; margin: 0 auto; }
.bt-stage-head .hm-hero-sub { margin-left: auto; margin-right: auto; max-width: 600px; }
.bt-stage .bt-stage-grid { margin-top: clamp(32px, 4vw, 52px); grid-template-columns: minmax(0, 250px) minmax(0, 580px) minmax(0, 270px); justify-content: center; align-items: start; gap: clamp(20px, 3vw, 40px); }
.bt-stage .bt-card-wrap { position: relative; top: auto; }
.bt-stage .bt-card-wrap::before { content: ""; position: absolute; inset: -18px; z-index: -1; border-radius: 40px; background: conic-gradient(from 0deg, rgba(45, 212, 191, .35), rgba(253, 230, 138, .35), rgba(251, 113, 133, .25), rgba(45, 212, 191, .35)); filter: blur(28px); opacity: .7; animation: bt-halo 12s linear infinite; }
@keyframes bt-halo { to { transform: rotate(360deg); } }

.bt-rail { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; padding-top: 18px; }
.bt-rail-label { font: 800 .75rem var(--font-ui, 'Inter', sans-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--teal, #0d9488); }
.bt-rail-l .bt-next { margin-top: 0; }
.bt-rail-l .bt-next li { animation: bt-rail-in .8s cubic-bezier(.16, 1, .3, 1) backwards; }
.bt-rail-l .bt-next li:nth-child(1) { animation-delay: .4s; } .bt-rail-l .bt-next li:nth-child(2) { animation-delay: .55s; } .bt-rail-l .bt-next li:nth-child(3) { animation-delay: .7s; }
.bt-rail-r > * { animation: bt-rail-in-r .8s cubic-bezier(.16, 1, .3, 1) backwards .6s; }
.hm .bt-rail-r .bt-quote { margin-top: 0; }
.bt-rail-r .bt-trust { margin-top: 0; flex-direction: column; padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line, #e2e8f0); box-shadow: 0 16px 34px -26px rgba(15, 23, 42, .35); }
.bt-rail-r .bt-trust svg { color: var(--teal, #0d9488); }
@keyframes bt-rail-in { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes bt-rail-in-r { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
    .bt-stage .bt-stage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); max-width: 920px; margin-left: auto; margin-right: auto; }
    .bt-stage .bt-card-wrap { grid-column: 1; grid-row: 1 / span 2; }
    .bt-rail { position: static; padding-top: 0; }
    .bt-rail-l { grid-column: 2; grid-row: 1; }
    .bt-rail-r { grid-column: 2; grid-row: 2; }
}
@media (max-width: 992px) {
    .bt-stage .bt-stage-grid { grid-template-columns: 1fr; max-width: 600px; }
    .bt-stage .bt-card-wrap, .bt-rail-l, .bt-rail-r { grid-column: 1; grid-row: auto; }
    .bt-stage .bt-card-wrap { order: -1; }
    .bt-stage .bt-card-wrap::before { inset: -8px; filter: blur(20px); }
}
@media (prefers-reduced-motion: reduce) {
    .bt-stage .bt-card-wrap::before, .bt-rail-l .bt-next li, .bt-rail-r > * { animation: none; }
}
