.emder-tv-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 30px;
    background-color: #FAFAFA;
    color: #000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 8px;
}

.emder-tv-container h2 {
    color: #2AB3D6;
    text-align: center;
    margin-bottom: 30px;
}

.emder-tv-section {
    margin-bottom: 40px;
}

.emder-tv-section h3.step-title {
    color: #2AB3D6;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: bold;
}

.emder-tv-section h3 {
    color: #2AB3D6;
    margin-bottom: 20px;
    font-size: 22px;
}

/* Van Selection Grid (Step 1) */
#emder-tv-booking-container .van-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
}

.van-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-in-out;
    height: 100%;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.van-option input[type="radio"] {
    display: none;
}

.van-option input[type="radio"]:checked + label {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.02);
    border-color: #ddd !important;
}

.van-image-wrapper {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    border: none !important;
    display: block !important;
    background: #fff !important;
    position: relative;
}

.van-option img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Selected State: Grayscale and Checkmark */
.van-option input[type="radio"]:checked + label .van-image-wrapper img {
    filter: grayscale(100%) brightness(1.1) opacity(0.5);
}

.van-option input[type="radio"]:checked + label .van-image-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232AB3D6'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 10;
}

.van-info {
    padding: 20px 15px;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #eee;
}

.van-info strong {
    display: block;
    font-size: 18px;
    color: #2AB3D6;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.van-details {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    text-align: center;
    font-weight: normal;
}

/* Step 2 Flex Layout - Exact 1:1 */
.step-2-flex-container {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.van-preview-card {
    flex: 0 0 320px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.van-preview-card .preview-img-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.van-preview-card img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) brightness(1.1) opacity(0.5);
}

.van-preview-card .preview-img-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232AB3D6'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.calendar-time-column {
    flex: 1;
}

/* Calendar Styling (Flatpickr) */
#emder-tv-inline-calendar {
    width: 100%;
    margin-bottom: 25px;
    overflow: hidden !important;
}

.flatpickr-calendar.inline {
    box-shadow: none !important;
    border: 1px solid #eee !important;
    background: #fff !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.flatpickr-calendar.inline * {
    outline: none !important;
    box-shadow: none !important;
}

.calendar-wrapper, .calendar-time-column {
    overflow: hidden !important;
}

.flatpickr-month {
    height: 50px !important;
}

.flatpickr-current-month {
    font-size: 20px !important;
    font-weight: bold !important;
}

/* Time Selection Design - Exact 1:1 */
.time-selection-container {
    margin-top: 20px;
}

.time-block {
    margin-bottom: 20px;
}

.time-block label {
    display: block;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #000;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-inputs input {
    width: 100px;
    height: 45px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 18px;
    background: #fff;
}

.time-inputs .separator {
    font-size: 24px;
    font-weight: bold;
}

/* Final Location Info */
.final-location-info {
    margin-top: 40px;
    text-align: left;
}

.final-location-info p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.final-location-info strong {
    font-size: 22px;
    display: block;
    margin-top: 5px;
    font-weight: bold;
}

/* Hourly Availability Grid Fix */
.hourly-bar-wrapper {
    border: 1px solid #ccc !important;
    background: #fff !important;
    width: 100% !important;
    margin-top: 10px !important;
    overflow-x: auto !important;
}

.hourly-header, .hourly-cells {
    display: flex !important;
    width: 100% !important;
    min-width: 600px !important;
}

.hourly-header span, .h-label, .hour-cell {
    flex: 1 !important;
    border-right: 1px solid #ccc !important;
    text-align: center !important;
    padding: 5px 0 !important;
    box-sizing: border-box !important;
    min-width: 25px !important;
}

.hourly-header span:last-child, .hour-cell:last-child {
    border-right: none !important;
}

.h-label, .hourly-header span:first-child {
    flex: 0 0 30px !important;
    background: #f0f0f0 !important;
}

.hour-cell {
    height: 35px !important;
    position: relative !important;
}

.hour-cell.booked {
    background-color: #ffebeb !important;
}

.hour-cell.booked::after {
    content: "❌";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #ff4d4d;
}

/* Flatpickr Disabled Days Styling */
.flatpickr-day.flatpickr-disabled {
    position: relative !important;
    color: #ccc !important;
    cursor: not-allowed !important;
}

/* Only show Red X for truly BOOKED dates */
.flatpickr-day.is-booked::after {
    content: "✕";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff4d4d;
    font-size: 22px;
    font-weight: bold;
    z-index: 2;
    opacity: 0.9;
}

/* Calendar Centering */
.flatpickr-day {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-weekday {
    text-align: center !important;
}

/* Form Sections 3-6 */
.info-grid, .upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#submit-booking-btn {
    width: 100%;
    padding: 18px;
    background: #2AB3D6;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 30px;
}

@media (max-width: 800px) {
    .step-2-flex-container {
        flex-direction: column;
    }
    .van-preview-card {
        flex: 1 1 auto;
        width: 100%;
    }
    #emder-tv-booking-container .van-grid {
        grid-template-columns: 1fr !important;
    }
    .info-grid, .upload-grid {
        grid-template-columns: 1fr;
    }
}
