/**
 * Venue Ticketing - Frontend Styles
 * 
 * @package VenueTicketing
 * @since 1.0.0
 */

/* Booking Stepper */
.vt-booking-stepper {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.vt-step {
    display: none;
    padding: 20px 0;
}

.vt-step.active {
    display: block;
}

.vt-step-title {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

/* Date Picker */
.vt-date-picker-wrapper {
    margin-bottom: 20px;
}

.vt-date-picker {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.vt-available-dates {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vt-available-date {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: #f9f9f9;
}

.vt-available-date:hover {
    background: #e9e9e9;
}

.vt-available-date.selected {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Time Slots */
.vt-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.vt-slot-option {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.vt-slot-option:hover {
    border-color: #0073aa;
    background: #f0f6fc;
}

.vt-slot-option.selected {
    border-color: #0073aa;
    background: #0073aa;
    color: #fff;
}

.vt-slot-option.sold-out {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.vt-slot-option.limited {
    border-color: #dba617;
}

.vt-slot-time {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.vt-slot-availability {
    font-size: 12px;
    color: #666;
}

.vt-slot-option.selected .vt-slot-availability {
    color: rgba(255, 255, 255, 0.9);
}

/* Ticket Types */
.vt-ticket-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.vt-ticket-type-option {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.vt-ticket-type-option:hover {
    border-color: #0073aa;
}

.vt-ticket-type-option input[type="radio"]:checked + label {
    font-weight: bold;
}

.vt-ticket-type-option:has(input[type="radio"]:checked) {
    border-color: #0073aa;
    background: #f0f6fc;
}

.vt-ticket-type-option label {
    display: block;
    cursor: pointer;
}

.vt-type-name {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.vt-type-price {
    display: block;
    font-size: 18px;
    color: #0073aa;
    font-weight: bold;
}

.vt-vip-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ffc107;
    color: #000;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
}

/* Quantity Selector */
.vt-quantity-selector {
    margin-bottom: 30px;
}

.vt-quantity-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.vt-quantity-selector input[type="number"] {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vt-available-quantity {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* Booking Summary */
.vt-booking-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.vt-booking-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.vt-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.vt-summary-item:last-child {
    border-bottom: none;
}

.vt-summary-item.vt-summary-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #ddd;
    font-weight: bold;
    font-size: 18px;
}

.vt-summary-label {
    color: #666;
}

.vt-summary-value {
    font-weight: 600;
}

/* Navigation */
.vt-stepper-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.vt-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.vt-btn-next {
    background: #0073aa;
    color: #fff;
    margin-left: auto;
}

.vt-btn-next:hover {
    background: #005a87;
}

.vt-btn-prev {
    background: #f0f0f0;
    color: #333;
}

.vt-btn-prev:hover {
    background: #e0e0e0;
}

/* Errors */
.vt-step-error {
    margin-top: 10px;
    padding: 10px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    display: none;
}

.vt-step-error.show {
    display: block;
}

/* Loading */
.vt-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .vt-time-slots,
    .vt-ticket-types {
        grid-template-columns: 1fr;
    }
    
    .vt-stepper-navigation {
        flex-direction: column;
    }
    
    .vt-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ============================================
   V2 Stepper Styles (Enhanced 7-Step Flow)
   ============================================ */

.vt-stepper-v2 {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vt-stepper-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.vt-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.vt-progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s;
}

.vt-progress-step.active .vt-progress-circle {
    background: #2271b1;
    color: #fff;
}

.vt-progress-step.completed .vt-progress-circle {
    background: #46b450;
    color: #fff;
}

.vt-progress-label {
    font-size: 12px;
    color: #666;
}

.vt-progress-step.active .vt-progress-label {
    color: #2271b1;
    font-weight: 600;
}

/* Guest Counters */
.vt-guest-count {
    max-width: 400px;
    margin: 0 auto;
}

.vt-guest-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.vt-guest-counter label {
    font-weight: 600;
    font-size: 16px;
}

.vt-counter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vt-counter-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #2271b1;
    background: #fff;
    color: #2271b1;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.vt-counter-btn:hover {
    background: #2271b1;
    color: #fff;
}

.vt-counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vt-counter-input {
    width: 60px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: none;
    background: transparent;
}

.vt-guest-total {
    text-align: center;
    padding: 15px;
    background: #e8f4f8;
    border-radius: 8px;
    margin-top: 20px;
}

.vt-capacity-hint {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.vt-capacity-hint .vt-error {
    color: #d63638;
}

/* Experience Selector */
.vt-experience-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.vt-experience-option {
    position: relative;
}

.vt-experience-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.vt-experience-option label {
    display: block;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.vt-experience-option input[type="checkbox"]:checked + label {
    border-color: #2271b1;
    background: #e8f4f8;
}

.vt-experience-option input[type="checkbox"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.vt-exp-name {
    font-weight: 600;
    font-size: 16px;
    display: block;
}

.vt-exp-disabled {
    display: block;
    font-size: 12px;
    color: #d63638;
    margin-top: 5px;
}

/* Time Slots Grid V2 */
.vt-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.vt-slot-option.vt-slot-unavailable label {
    opacity: 0.5;
    cursor: not-allowed;
}

.vt-slot-option.vt-slot-limited label {
    border-color: #f0b849;
}

/* Customer Form */
.vt-customer-form {
    max-width: 500px;
    margin: 0 auto;
}

.vt-form-row {
    margin-bottom: 20px;
}

.vt-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.vt-form-row .required {
    color: #d63638;
}

.vt-form-row input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Booking Summary V2 */
.vt-booking-summary-v2 {
    max-width: 600px;
    margin: 0 auto;
}

.vt-summary-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.vt-summary-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2271b1;
}

.vt-summary-pricing {
    margin: 15px 0;
}

.vt-pricing-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* Payment Redirect */
.vt-payment-redirect {
    text-align: center;
    padding: 40px;
}

.vt-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Step Help Text */
.vt-step-help {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Responsive V2 */
@media (max-width: 768px) {
    .vt-stepper-v2 {
        padding: 20px;
    }
    
    .vt-stepper-progress {
        flex-wrap: wrap;
    }
    
    .vt-progress-step {
        flex: 0 0 50%;
        margin-bottom: 20px;
    }
    
    .vt-experience-selector {
        grid-template-columns: 1fr;
    }
    
    .vt-slots-grid {
        grid-template-columns: 1fr;
    }
}

