/* styles/checkout.css */

.checkout-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding-bottom: 90px; /* по высоте футера */
}

h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}


/* Форма */
.form-label {
    margin-bottom: 4px;
    color: var(--color-gray);
}

.form-control {
    border-radius: 12px;
    height: 48px;
    font-size: 16px;
}

/* Тумблеры */
.form-check-label {
    font-size: 15px;
    color: #333;
}

.form-check-input {
    width: 46px;
    height: 24px;
    cursor: pointer;
}


.vehicle-scroll-wrapper {
    overflow-x: auto;
    padding: 0 20px 1px 20px; /* компенсируем padding, т.к. container его режет */
    margin: 0 -20px 20px -20px; /* выходим за пределы .checkout-container */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.vehicle-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.vehicle-cards {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    width: max-content;
}

.vehicle-card {
    flex: 0 0 auto;
    width: 220px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid #DADADA;
    border-radius: 20px;
    padding: 0px;
    box-sizing: border-box;
    position: relative; /* Чтобы иконка позиционировалась внутри */
}

.vehicle-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.vehicle-bg {
    background-color: #DADADA;
    border-radius: 18px 0 18px 0;
    padding: 8px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.vehicle-card input:checked + .vehicle-img-wrapper .vehicle-bg {
    background-color: #F5CE55;
}

.vehicle-img {
    width: 140px;
    height: auto;
    object-fit: contain;
    margin-top: -30px;
}

.vehicle-text-block {
    padding: 10px;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    gap: 0px;
    box-sizing: border-box;
    width: 156px;

}

.vehicle-name {
    font-size: 16px;
    color: #151513;
}

.vehicle-meta {
    display: flex;
    align-items: center;
        justify-content: space-between; /* ← распределение по краям */
    font-size: 16px;
    color: #929292;
}

.vehicle-capacity {
    display: flex;
    align-items: center;
    gap: 0;
}


.custom-input-wrapper {
    display: flex;
    align-items: center;
    height: 56px;
    border: 1px solid #ccc;
    border-radius: 50px;
    padding: 0 18px;
    background: #fff;
    gap: 12px;
    box-sizing: border-box;
}


.custom-text-input {
    border: none;
    outline: none;
    font-size: 16px;
    color: #151513;
    background: transparent;
    height: 100%;
    padding: 0;
}

.custom-text-input::placeholder {
    color: #929292;
}

.custom-text-input:focus {
    outline: none;
    box-shadow: none;
}

.custom-switch-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    cursor: pointer;
}

.custom-switch input {
    display: none;
}

.custom-slider {
    width: 48px;
    height: 28px;
    background-color: #DADADA;
    border-radius: 28px;
    position: relative;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.custom-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.custom-switch input:checked + .custom-slider {
    background-color: #F5CE55;
}

.custom-switch input:checked + .custom-slider::before {
    transform: translateX(20px);
}

.custom-label {
    font-size: 16px;
    color: #929292;
    word-wrap: break-word;
    flex: 1;
}

.btn-back {
    background-color: #EDEDED;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.back-icon {
    width: 24px;
    height: 24px;
    display: block; /* Убирает inline-отступы */
}

.vehicle-scroll-indicator {
    margin: 10px 0 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.vehicle-scroll-indicator .bar {
    height: 4px;
    border-radius: 999px;
    background-color: #DADADA;
    transition: all 0.3s ease;
    width: 16px;
}

.vehicle-scroll-indicator .bar.active {
    width: 24px;
    background-color: #F5CE55;
}

.vehicle-disabled {
    opacity: 0.5;
    cursor: pointer;
}

.required-star {
    color: #E53935; /* Красный */
    margin-left: 6px;
    font-weight: bold;
    font-size: 12px;
}

.vehicle-info-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.vehicle-card:hover .vehicle-info-icon {
    opacity: 1;
}

.car-info-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1020;
}

.modal-overlay.hidden {
    display: none;
}

.car-info-modal {
    min-height: 150px;
    background: white;
    padding: 20px;
    border-radius: 24px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.car-modal-close-icon {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 30px;
    height: 30px;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.car-modal-close-icon:hover {
    opacity: 1;
}

.vehicle-card-wrapper {
    position: relative;
    margin-top: 20px;
}

.form-section-title {
    font-size: 16px;
    color: var(--color-black);
    margin-left: 20px
}