.tom-reservation-box {
    --tom-brand-ink: #0f172a;
    --tom-brand-sea: #0ea5a4;
    --tom-brand-lime: #84cc16;
    --tom-brand-sand: #f8fafc;
    --tom-card-border: rgba(14, 165, 164, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 18px;
    margin: 16px 0;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 164, 0.12), transparent 45%),
        linear-gradient(180deg, #ffffff, var(--tom-brand-sand));
    border-color: var(--tom-card-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.tom-progress {
    --tom-elephant-half: 26px;
    position: relative;
    height: 44px;
    margin: 14px 0 16px;
}

.tom-progress-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    border-radius: 99px;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(15, 23, 42, 0.06) 0,
            rgba(15, 23, 42, 0.06) 8px,
            rgba(15, 23, 42, 0.1) 8px,
            rgba(15, 23, 42, 0.1) 16px
        );
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.15);
}

.tom-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--tom-brand-sea), #22d3ee 58%, var(--tom-brand-lime));
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.5);
    transition: width 0.45s ease;
}

.tom-progress-elephant {
    position: absolute;
    bottom: 8px;
    transform: translateX(-50%);
    width: 52px;
    height: auto;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
    pointer-events: none;
    transition: left 0.45s ease;
}

.tom-reservation-box h3 {
    color: var(--tom-brand-ink);
    letter-spacing: 0.02em;
}

.tom-reservation-box > p strong {
    color: var(--tom-brand-ink);
    font-weight: 800;
}

.tom-sticky-progress {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.tom-sticky-progress.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.tom-sticky-progress__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr auto;
    gap: 16px;
    align-items: center;
}

.tom-sticky-progress__meta {
    display: flex;
    flex-direction: column;
    color: #0f172a;
    line-height: 1.2;
}

.tom-sticky-progress__meta strong {
    font-size: 14px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tom-sticky-progress__meta span {
    font-size: 13px;
    opacity: 0.82;
}

.tom-sticky-progress .tom-progress {
    margin: 0;
}

.tom-sticky-progress__cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: #0f172a;
    background: linear-gradient(90deg, #99f6e4, #bef264);
}

.tom-sticky-progress__cta:hover,
.tom-sticky-progress__cta:focus {
    color: #0f172a;
    text-decoration: none;
}

.tom-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tom-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.tom-reservation-form p {
    margin-bottom: 10px;
}

.tom-reservation-form input,
.tom-reservation-form textarea {
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 767px) {
    .tom-reservation-box {
        padding: 14px;
    }

    .tom-progress {
        --tom-elephant-half: 21px;
        height: 38px;
    }

    .tom-progress-track {
        height: 14px;
    }

    .tom-progress-elephant {
        width: 42px;
        bottom: 7px;
    }

    .tom-sticky-progress {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    }

    .tom-sticky-progress__inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tom-sticky-progress__meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 10px;
    }

    .tom-sticky-progress__cta {
        width: 100%;
    }
}
