/* ===== БАЗОВАЯ ПОДЛОЖКА И МОДАЛКА ===== */
.track-modal-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(25,25,30,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
}

.track-modal {
    background: #19191a;
    border-radius: 16px;
    padding: 32px 38px 28px 38px;
    min-width: 440px;
    min-height: 220px;
    color: #fff;
    position: relative;
    box-shadow: 0 8px 40px 0 rgba(0,0,0,0.25);
}

.track-modal .close-btn {
    position: absolute;
    right: 5px;
    top: 8px;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #fff;
}

.track-modal .close-btn::before,
.track-modal .close-btn::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 7px;
    width: 18px;
    height: 2px;
    background: #fff;
}

.track-modal .close-btn::before { transform: rotate(45deg); }
.track-modal .close-btn::after { transform: rotate(-45deg); }

/* ===== ШАПКА ===== */
.track-order-head { margin-bottom: 24px; }

.track-order-title {
    color: #bcbcbc;
    font-size: 1.1rem;
    margin-bottom: 7px;
}

.track-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2px;
}

/* ===== СПИСОК ШАГОВ ===== */
.track-steps-list {
    margin-top: 22px;
    margin-bottom: 8px;
}

.track-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    margin-bottom: 38px;
}

.track-step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #19191a;
    margin-top: 2px;
    position: relative;
    flex-shrink: 0;
    background: #fff;
}

.track-step-dot::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 8px;
    width: 3px;
    height: calc(100% + 36px);
    background: #fff;
    z-index: 0;
}

.track-step:last-child .track-step-dot::after {
    display: none;
}

.track-step.done .track-step-dot {
    background: #5f7eb6;
    border-color: #5f7eb6;
}

.track-step.done .track-step-dot::after {
    background: #5f7eb6;
}

.track-step.current .track-step-dot {
    background: #5f7eb6;
    border-color: #5f7eb6;
}

.track-step-content {
    margin-left: 2px;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 5px;

}
.track-step-address {
    display: block;
    width: 100%;
    position: absolute;
    top: 30px;
}
.track-step-title {
    font-size: 1.13rem;
    font-weight: 500;
}

.track-step-date {
    color: #fff;
    font-size: 0.99rem;
    margin-top: 2px;
}

/* ===== СОСТОЯНИЯ ===== */
.track-loading,
.track-error {
    text-align: center;
    margin: 38px 0;
}

.track-error {
    color: #ff6565;
    font-weight: 500;
}

/* ===== ФОРМА ВВОДА (первое окно) ===== */
.track-form-guest {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
}

.track-form-guest label {
    display: block;
    color: #bcbcbc;
    font-size: 1rem;
    margin-bottom: 6px;
}

.track-form-guest input {
    width: 100%;
    border: 1px solid #4d4d50;
    border-radius: 8px;
    background: #232325;
    padding: 10px 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s;
}

.track-form-guest input:focus {
    border-color: #2a63e0;
}

/* ===== КНОПКИ ===== */
.btn-primary {
    background: #5D80BC;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
    font-weight: 500;
}

.btn-primary:hover {
    background: #1f4bb8;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 600px) {
    .track-modal {
        min-width: auto;
        width: 90%;
        padding: 24px 20px;
    }

    .track-title {
        font-size: 1.5rem;
    }

    .track-order-title {
        font-size: 1rem;
    }

    .track-step-title {
        font-size: 1rem;
    }

    .track-step-date {
        font-size: 0.85rem;
    }
}

/* ===== ДОПОЛНИТЕЛЬНО: ПЕРЕХОДЫ ===== */
.track-modal-overlay[hidden] {
    display: none !important;
}

.start-track-model {
 background: #FFFFFF;
}
.start-track-model .track-order-title{
    color: #000;
    margin-top: 10px;
    font-size: 1.0rem;
}
.start-track-model .track-form-guest input {
    background: #fff;
    color: #000;
}
.start-track-model .track-title{
    color: #000;
}
.start-track-model .close-btn::before, .start-track-model .close-btn::after {
    background: #000
}
.start-track-model .close-btn{
    color: #000;
}
.start-track-model  .btn-primary {
    background-color: #5479b8;
    max-width: 215px;
}