/**
 * Public Styles - Clean & Mobile Responsive
 */

/* Reset and Base */
.atv-booking-wizard {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Progress Bar */
.atv-wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.atv-wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.atv-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.atv-progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.atv-progress-step.active .step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.atv-progress-step.completed .step-number {
    background: #28a745;
    color: #fff;
}

.atv-progress-step .step-label {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.atv-progress-step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

/* Step Content */
.atv-wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.atv-wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.atv-wizard-step h2 {
    margin: 0 0 10px;
    color: #1e1e1e;
    font-size: 24px;
    font-weight: 600;
}

.atv-step-desc {
    color: #666;
    margin: 0 0 25px;
}

/* Category Grid */
.atv-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.atv-category-card {
    cursor: pointer;
}

.atv-category-card input {
    display: none;
}

.atv-category-content {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.atv-category-card input:checked+.atv-category-content {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.atv-category-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.atv-category-name {
    font-weight: 600;
    color: #333;
}

/* Date & Time */
.atv-datetime-container {
    display: grid;
    gap: 25px;
}

.atv-date-picker-wrap label,
.atv-slots-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* Inline Calendar Styles */
.atv-inline-calendar-wrap {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.atv-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea, #5a67d8);
    border-radius: 8px;
    color: #fff;
}

.atv-calendar-month {
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.atv-calendar-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.atv-calendar-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.atv-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    text-align: center;
}

.atv-calendar-weekdays span {
    font-weight: 600;
    font-size: 12px;
    color: #666;
    padding: 10px 0;
    text-transform: uppercase;
}

.atv-calendar-weekdays span.weekend {
    color: #c9a227;
}

.atv-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.atv-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.atv-calendar-day:hover:not(.disabled):not(.empty) {
    background: rgba(201, 162, 39, 0.1);
    border-color: #c9a227;
}

.atv-calendar-day.empty {
    cursor: default;
}

.atv-calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.atv-calendar-day.today {
    border: 2px solid #c9a227;
    font-weight: 700;
}

.atv-calendar-day.selected {
    background: linear-gradient(135deg, #c9a227, #b8941f);
    color: #fff;
    font-weight: 700;
    border-color: #c9a227;
    box-shadow: 0 4px 10px rgba(201, 162, 39, 0.4);
}

.atv-calendar-day.weekend:not(.selected) {
    color: #c9a227;
}

.atv-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.atv-time-slot {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.atv-time-slot:hover:not(.disabled) {
    border-color: #667eea;
    transform: translateY(-2px);
}

.atv-time-slot.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.atv-time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.atv-slot-time {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.atv-slot-status {
    display: block;
    font-size: 12px;
    color: #28a745;
    margin-top: 5px;
}

.atv-time-slot.disabled .atv-slot-status {
    color: #dc3545;
}

/* Products */
.atv-available-info {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.atv-products-grid {
    display: grid;
    gap: 15px;
}

.atv-product-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.atv-product-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.atv-product-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.atv-product-price {
    color: #667eea;
    font-weight: 600;
}

.atv-product-qty-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.atv-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #5a67d8);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.atv-qty-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
    color: #fff;
    transform: scale(1.05);
}

.atv-product-qty {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.atv-quantity-summary {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.atv-capacity-error {
    color: #dc3545;
    font-weight: 600;
    margin-left: auto;
}

/* Summary */
.atv-summary-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.atv-summary-card h3 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.atv-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.atv-summary-row label {
    color: #666;
}

.atv-summary-row span {
    font-weight: 600;
    color: #333;
}

.atv-summary-total {
    border-bottom: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.atv-summary-total span {
    font-size: 18px;
    color: #667eea;
}

/* Payment Options */
.atv-payment-options h3 {
    margin: 0 0 15px;
}

.atv-payment-option {
    display: block;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.atv-payment-option input {
    display: none;
}

.atv-payment-option:has(input:checked) {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.atv-option-title {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.atv-option-desc {
    font-size: 14px;
    color: #666;
}

/* Navigation */
.atv-wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.atv-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atv-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    margin-left: auto;
}

.atv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.atv-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.atv-btn-secondary:hover {
    background: #e0e0e0;
}

.atv-btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    margin-left: auto;
}

.atv-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.atv-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Placeholders */
.atv-placeholder,
.atv-loading {
    text-align: center;
    padding: 30px;
    color: #666;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .atv-booking-wizard {
        padding: 15px;
    }

    .atv-wizard-progress {
        margin-bottom: 30px;
    }

    .atv-progress-step .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .atv-progress-step .step-label {
        font-size: 10px;
    }

    .atv-wizard-step h2 {
        font-size: 20px;
    }

    .atv-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .atv-category-content {
        padding: 20px 10px;
    }

    .atv-category-icon {
        font-size: 32px;
    }

    .atv-time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .atv-product-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .atv-summary-row {
        flex-direction: column;
        gap: 5px;
    }

    .atv-wizard-nav {
        flex-direction: column;
        gap: 10px;
    }

    .atv-btn {
        width: 100%;
        justify-content: center;
    }

    .atv-btn-primary,
    .atv-btn-success {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .atv-category-grid {
        grid-template-columns: 1fr;
    }

    .atv-time-slots-grid {
        grid-template-columns: 1fr;
    }
}