/* ============================================================
   Wins Transport — Booking Form Styles
   ============================================================ */

.wt-booking-form {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Progress Steps ──────────────────────────────────────── */

.wt-booking-form__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.wt-booking-form__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.wt-booking-form__step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

.wt-booking-form__step-item.active .wt-booking-form__step-circle {
    background: #000;
    color: #fff;
}

.wt-booking-form__step-item.completed .wt-booking-form__step-circle {
    background: #000;
    color: #fff;
}

.wt-booking-form__step-item.completed .wt-booking-form__step-circle::after {
    content: '✓';
}

.wt-booking-form__step-item.completed .wt-booking-form__step-circle {
    font-size: 0;
}

.wt-booking-form__step-item.completed .wt-booking-form__step-circle::after {
    font-size: 16px;
}

.wt-booking-form__step-label {
    color: #9CA3AF;
    transition: color 0.2s;
    text-align: center;
    white-space: nowrap;
}

.wt-booking-form__step-item.active .wt-booking-form__step-label,
.wt-booking-form__step-item.completed .wt-booking-form__step-label {
    color: #111827;
}

.wt-booking-form__step-divider {
    flex: 1;
    height: 2px;
    background: #E5E7EB;
    margin: 0 8px;
    margin-bottom: 26px;
    min-width: 20px;
}

/* ── Panel ────────────────────────────────────────────────── */

.wt-booking-form__panel {
    display: none;
}

.wt-booking-form__panel.active {
    display: block;
}

.wt-booking-form__panel-title {
    margin-bottom: 4px;
    color: #111827;
}

.wt-booking-form__panel-subtitle {
    color: #6B7280;
    margin-bottom: 28px;
}

/* ── Fields ───────────────────────────────────────────────── */

.wt-booking-form__field {
    margin-bottom: 20px;
}

.wt-booking-form__field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.wt-booking-form__label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
}

.wt-booking-form__required {
    color: #EF4444;
}

.wt-booking-form__optional {
    color: #9CA3AF;
    font-weight: 400;
}

.wt-booking-form__hint {
    margin-top: 6px;
    color: #6B7280;
}

.wt-booking-form__select,
.wt-booking-form__input,
.wt-booking-form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.wt-booking-form__select {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.wt-booking-form__select:focus,
.wt-booking-form__input:focus,
.wt-booking-form__textarea:focus {
    border-color: #111827;
}

.wt-booking-form__select:disabled {
    background-color: #F9FAFB;
    color: #9CA3AF;
    cursor: not-allowed;
}

.wt-booking-form__textarea {
    resize: vertical;
    min-height: 80px;
}

/* ── Service Type Cards ───────────────────────────────────── */

.wt-booking-form__service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wt-booking-form__service-card {
    position: relative;
    cursor: pointer;
}

.wt-booking-form__service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wt-booking-form__service-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 10px;
    border: 1.5px solid #D1D5DB;
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
    min-height: 80px;
}

.wt-booking-form__service-card-inner svg {
    color: #6B7280;
    transition: color 0.15s;
}

.wt-booking-form__service-card input:checked + .wt-booking-form__service-card-inner {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.wt-booking-form__service-card:hover .wt-booking-form__service-card-inner {
    border-color: #6B7280;
}

.wt-booking-form__service-card input:checked + .wt-booking-form__service-card-inner .wt-text,
.wt-booking-form__service-card input:checked + .wt-booking-form__service-card-inner svg {
    color: #fff;
}

/* ── Duration Cards ───────────────────────────────────────── */

.wt-booking-form__duration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wt-booking-form__duration-card {
    position: relative;
    cursor: pointer;
}

.wt-booking-form__duration-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wt-booking-form__duration-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    border: 1.5px solid #D1D5DB;
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
    min-height: 56px;
    position: relative;
}

.wt-booking-form__duration-card input:checked + .wt-booking-form__duration-card-inner {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.wt-booking-form__duration-card:hover .wt-booking-form__duration-card-inner {
    border-color: #6B7280;
}

.wt-booking-form__duration-card input:checked + .wt-booking-form__duration-card-inner .wt-text {
    color: #fff;
}

/* Discount badge */
.wt-booking-form__discount-badge {
    display: inline-block;
    background: #DCFCE7;
    color: #15803D;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

.wt-booking-form__duration-card input:checked + .wt-booking-form__duration-card-inner .wt-booking-form__discount-badge {
    background: #16A34A;
    color: #fff;
}

/* ── Price Banner ─────────────────────────────────────────── */

.wt-booking-form__price-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.wt-booking-form__price-label {
    color: #6B7280;
    margin-bottom: 2px;
}

.wt-booking-form__price-value {
    color: #111827;
    line-height: 1;
}

.wt-booking-form__price-note {
    color: #9CA3AF;
    text-align: right;
}

/* ── Dates Row ────────────────────────────────────────────── */

.wt-booking-form__dates {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: end;
}

.wt-booking-form__dates .wt-booking-form__field {
    margin-bottom: 0;
}

.wt-booking-form__dates-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 12px;
    color: #9CA3AF;
    font-size: 18px;
    flex-shrink: 0;
}

/* Days auto-display */
.wt-booking-form__days-display {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: -8px;
    margin-bottom: 8px;
    color: #15803D;
}

/* ── Renter Type ──────────────────────────────────────────── */

.wt-booking-form__renter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.wt-booking-form__renter-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.wt-booking-form__renter-grid--2x2 {
    grid-template-columns: 1fr 1fr;
}

.wt-booking-form__renter-card {
    cursor: pointer;
}

.wt-booking-form__renter-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wt-booking-form__renter-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px;
    border: 1.5px solid #D1D5DB;
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}

.wt-booking-form__renter-card input:checked + .wt-booking-form__renter-card-inner {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.wt-booking-form__renter-card input:checked + .wt-booking-form__renter-card-inner .wt-text {
    color: #fff;
}

.wt-booking-form__renter-card input:checked + .wt-booking-form__renter-card-inner svg {
    stroke: #fff;
}

.wt-booking-form__renter-card:hover .wt-booking-form__renter-card-inner {
    border-color: #6B7280;
}

/* ── Documents Checklist ──────────────────────────────────── */

.wt-booking-form__docs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.wt-booking-form__doc-item {
    display: flex;
}

.wt-booking-form__doc-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    border: 1.5px solid #D1D5DB;
    border-radius: 10px;
    width: 100%;
    transition: border-color 0.15s, background 0.15s;
}

.wt-booking-form__doc-label:has(input:checked) {
    border-color: #111827;
    background: #F9FAFB;
}

.wt-booking-form__doc-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wt-booking-form__doc-checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid #D1D5DB;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: background 0.15s, border-color 0.15s;
    background: #fff;
}

.wt-booking-form__doc-label:has(input:checked) .wt-booking-form__doc-checkmark {
    background: #111827;
    border-color: #111827;
}

.wt-booking-form__doc-label:has(input:checked) .wt-booking-form__doc-checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    margin-top: -2px;
}

/* ── Discount Banner ──────────────────────────────────────── */

.wt-booking-form__discount-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F0FDF4;
    border: 1.5px solid #86EFAC;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #15803D;
}

/* ── Add Stop Button ──────────────────────────────────────── */

.wt-booking-form__add-stop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px dashed #D1D5DB;
    border-radius: 8px;
    padding: 10px 16px;
    color: #6B7280;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
    margin-top: 8px;
}

.wt-booking-form__add-stop:hover {
    border-color: #111827;
    color: #111827;
}

/* ── Stop Items ───────────────────────────────────────────── */

.wt-booking-form__stop-item {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.wt-booking-form__stop-item .wt-booking-form__input {
    flex: 1;
    margin-bottom: 0;
}

.wt-booking-form__remove-stop {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 6px;
    color: #DC2626;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wt-booking-form__remove-stop:hover {
    background: #DC2626;
    color: #fff;
}

/* ── Error Message ────────────────────────────────────────── */

.wt-booking-form__error {
    display: none;
    color: #DC2626;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ── Actions ──────────────────────────────────────────────── */

.wt-booking-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.wt-booking-form__actions--row {
    justify-content: space-between;
}

/* ── Success State ────────────────────────────────────────── */

.wt-booking-form__success {
    text-align: center;
    padding: 40px 20px;
}

.wt-booking-form__success-icon {
    width: 80px;
    height: 80px;
    background: #ECFDF5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #059669;
}

.wt-booking-form__success h3 {
    margin-bottom: 12px;
    color: #111827;
}

.wt-booking-form__success p {
    color: #6B7280;
    margin-bottom: 8px;
}

.wt-booking-form__success-contact a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.wt-booking-form__success-contact a:hover {
    text-decoration: underline;
}

/* ── Vehicle Card Grid ────────────────────────────────────── */

.wt-booking-form__vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
    margin-bottom: 0;
}

.wt-booking-form__vehicle-empty {
    color: #9CA3AF;
    padding: 12px 0 4px;
    grid-column: 1 / -1;
}

.wt-booking-form__vehicle-card {
    cursor: pointer;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.wt-booking-form__vehicle-card:hover {
    border-color: #9CA3AF;
}

.wt-booking-form__vehicle-card--selected {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.wt-booking-form__vehicle-card-img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    background: #F3F4F6;
    display: block;
}

.wt-booking-form__vehicle-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wt-booking-form__vehicle-card-name {
    color: #111827;
    display: block;
    line-height: 1.3;
}

.wt-booking-form__vehicle-card-desc {
    color: #6B7280;
    display: block;
    line-height: 1.3;
}

.wt-booking-form__vehicle-card-price {
    display: block;
    margin-top: 6px;
    color: #111827;
}

/* ── Transfer Quote Notice ────────────────────────────────── */

.wt-booking-form__transfer-quote-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #EFF6FF;
    border: 1.5px solid #BFDBFE;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #1D4ED8;
}

.wt-booking-form__transfer-quote-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .wt-booking-form {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .wt-booking-form__progress {
        margin-bottom: 28px;
    }

    .wt-booking-form__step-label {
        font-size: 10px;
    }

    .wt-booking-form__step-divider {
        min-width: 12px;
        margin: 0 4px;
        margin-bottom: 24px;
    }

    .wt-booking-form__service-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .wt-booking-form__duration-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .wt-booking-form__dates {
        grid-template-columns: 1fr;
    }

    .wt-booking-form__dates-arrow {
        display: none;
    }

    .wt-booking-form__field-row {
        grid-template-columns: 1fr;
    }

    .wt-booking-form__renter-grid {
        grid-template-columns: 1fr;
    }

    .wt-booking-form__price-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .wt-booking-form__price-note {
        text-align: left;
    }

    .wt-booking-form__actions--row {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .wt-booking-form__actions--row .wt-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 425px) {
    .wt-booking-form__service-grid,
    .wt-booking-form__duration-grid {
        grid-template-columns: 1fr;
    }

    .wt-booking-form__step-label {
        display: none;
    }

    .wt-booking-form__step-divider {
        min-width: 24px;
        margin-bottom: 0;
    }

    .wt-booking-form__progress {
        align-items: flex-start;
    }
}
