/* HX Booking System - Frontend Styles */

.hx-booking-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(63, 81, 59, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Progress Steps */
.hx-booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    position: relative;
}

.hx-booking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.hx-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.hx-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

.hx-step-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.hx-step.active .hx-step-number {
    background: #3f513b;
    color: white;
    transform: scale(1.1);
}

.hx-step.active .hx-step-label {
    color: #3f513b;
    font-weight: 600;
}

.hx-step.completed .hx-step-number {
    background: #10b981;
    color: white;
}

/* Step Content */
.hx-booking-step-content h2 {
    font-size: 28px;
    color: #1e293b;
    margin: 0 0 32px 0;
    font-weight: 700;
}

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

.hx-category-card {
    padding: 32px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.hx-category-card:hover {
    border-color: #3f513b;
    background: #3f513b05;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(63, 81, 59, 0.12);
}

.hx-category-card h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #1e293b;
    font-weight: 600;
}

.hx-category-card p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* Service Cards */
.hx-service-card {
    padding: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.hx-service-card:hover {
    border-color: #3f513b;
    background: #3f513b05;
}

.hx-service-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.hx-service-card h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
}

.hx-service-price {
    font-size: 20px;
    font-weight: 700;
    color: #3f513b;
}

.hx-service-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.hx-service-description {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* DateTime */
.hx-datetime-container {
    max-width: 500px;
}

.hx-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.hx-time-slot {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.2s;
}

.hx-time-slot:hover {
    border-color: #3f513b;
    background: #3f513b05;
}

.hx-time-slot.selected {
    background: #3f513b;
    color: white;
    border-color: #3f513b;
}

/* Form */
.hx-form-group {
    margin-bottom: 24px;
}

.hx-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.hx-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.2s;
    font-family: inherit;
}

.hx-input:focus {
    outline: none;
    border-color: #3f513b;
    box-shadow: 0 0 0 4px rgba(63, 81, 59, 0.1);
}

.hx-payment-methods {
    display: flex;
    gap: 12px;
}

.hx-payment-option {
    flex: 1;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.hx-payment-option:hover {
    border-color: #3f513b;
    background: #3f513b05;
}

.hx-payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #3f513b;
}

.hx-payment-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #3f513b;
}

/* Summary */
.hx-booking-summary {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.hx-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.hx-summary-item:last-child {
    border-bottom: none;
}

.hx-summary-item span {
    color: #64748b;
    font-size: 14px;
}

.hx-summary-item strong {
    color: #1e293b;
    font-size: 16px;
}

/* Buttons */
.hx-btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.hx-btn-primary {
    background: #3f513b;
    color: white;
}

.hx-btn-primary:hover {
    background: #2d3a29;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(63, 81, 59, 0.3);
}

.hx-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.hx-btn-secondary:hover {
    background: #e2e8f0;
}

.hx-booking-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Success */
#hxBookingSuccess {
    text-align: center;
    padding: 40px 0;
}

.hx-success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
}

#hxBookingSuccess h2 {
    color: #10b981;
    margin-bottom: 24px;
}

.hx-booking-details {
    background: #f8fafc;
    padding: 32px;
    border-radius: 12px;
    margin-top: 24px;
}

.hx-payment-info {
    text-align: left;
    margin-top: 24px;
    padding: 24px;
    background: white;
    border-radius: 8px;
    border: 2px solid #3f513b;
}

.hx-payment-info h3 {
    margin: 0 0 16px 0;
    color: #3f513b;
}

.hx-bank-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.hx-bank-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.hx-qr-code {
    text-align: center;
    margin: 20px 0;
}

.hx-qr-code img {
    max-width: 250px;
    border-radius: 8px;
}

.hx-whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.hx-whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Loading */
.hx-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .hx-booking-container {
        padding: 24px;
        margin: 20px;
    }
    
    .hx-booking-steps {
        overflow-x: auto;
    }
    
    .hx-step-label {
        font-size: 11px;
    }
    
    .hx-category-grid {
        grid-template-columns: 1fr;
    }
    
    .hx-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .hx-payment-methods {
        flex-direction: column;
    }
    
    .hx-booking-nav {
        flex-direction: column-reverse;
    }
    
    .hx-booking-nav .hx-btn {
        width: 100%;
    }
}
