/* Booking System Styles */

/* Hide background slideshow on booking page */
.bg-scroll {
    display: none;
}

/* Allow scrolling on booking page */
html, body {
    overflow: auto;
}

.booking-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(235, 232, 224, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.back-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #666;
}

.booking-header h1 {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin: 0;
}

.booking-container {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
}

.booking-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

.booking-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.booking-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.booking-step h2 {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Service Selection */
.service-categories {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-category h3 {
    font-size: 18px;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ebe8e0;
}

.service-options {
    display: grid;
    gap: 0.75rem;
}

.service-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #ebe8e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.service-option:hover {
    border-color: #d0c8b8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.service-option input[type="radio"]:checked + .service-details {
    background: #ebe8e0;
    border-color: #333;
}

.service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.service-duration {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.service-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Date & Time Selection */
.datetime-selection {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.date-picker h3,
.time-slots h3 {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.75rem;
}

#appointment-date {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ebe8e0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    color: #333;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.time-slot {
    padding: 0.75rem;
    text-align: center;
    border: 2px solid #ebe8e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 14px;
    color: #333;
}

.time-slot:hover {
    border-color: #d0c8b8;
    background: #f9f9f9;
}

.time-slot.selected {
    background: #ebe8e0;
    border-color: #333;
    color: #333;
}

.time-slot.unavailable {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

/* Client Form */
.client-form {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #ebe8e0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Booking Summary */
.booking-summary {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

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

.summary-item strong {
    color: #555;
    font-weight: 500;
}

/* Buttons */
.step-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.next-btn,
.back-btn,
.confirm-btn,
.home-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    pointer-events: auto;
    z-index: 1000;
    position: relative;
}

.next-btn,
.confirm-btn {
    background: #333;
    color: white;
}

.next-btn:hover,
.confirm-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.back-btn {
    background: #f5f5f5;
    color: #666;
}

.back-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.home-btn {
    background: #ebe8e0;
    color: #333;
    margin-top: 1rem;
}

.home-btn:hover {
    background: #d0c8b8;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message h2 {
    color: #28a745;
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 18px;
    color: #666;
    margin-bottom: 2rem;
}

.confirmation-details {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.confirmation-details p {
    margin: 0.5rem 0;
    font-size: 16px;
}

/* Payment System */
.payment-container {
    display: grid;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.payment-summary {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.payment-summary h3 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
}

.payment-details {
    display: grid;
    gap: 0.75rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

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

.payment-item.total {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    border-top: 2px solid #333;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.payment-methods {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #ebe8e0;
}

.payment-methods h3 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
}

.payment-options {
    display: grid;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #ebe8e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: #d0c8b8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.payment-option input[type="radio"]:checked + .payment-option-details {
    background: #ebe8e0;
    border-color: #333;
}

.payment-option-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.payment-logo {
    width: 40px;
    height: 25px;
    object-fit: contain;
}

.payment-option-details span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.payment-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #ebe8e0;
}

#payment-element {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 2px solid #ebe8e0;
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.payment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pay-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #28a745;
    color: white;
    flex: 1;
}

.pay-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pay-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Processing States */
.payment-processing {
    text-align: center;
    padding: 2rem;
}

.payment-processing h3 {
    color: #333;
    margin-bottom: 1rem;
}

.payment-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-container {
        padding: 1rem;
        margin-top: 70px;
    }
    
    .booking-form {
        padding: 2rem;
    }
    
    .booking-header {
        padding: 1rem;
    }
    
    .booking-header h1 {
        font-size: 20px;
    }
    
    .service-details {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .time-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .step-buttons {
        flex-direction: column;
    }
    
    .next-btn,
    .back-btn,
    .confirm-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .booking-form {
        padding: 1.5rem;
    }
    
    .booking-step h2 {
        font-size: 24px;
    }
    
    .service-option {
        padding: 1rem;
    }
    
    .service-name {
        font-size: 16px;
    }
    
    .service-price {
        font-size: 18px;
    }
} 

/* Responsive Design for Payment */
@media (max-width: 768px) {
    .payment-container {
        gap: 1rem;
    }
    
    .payment-summary,
    .payment-methods,
    .payment-form {
        padding: 1rem;
    }
    
    .payment-option-details {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .pay-btn {
        width: 100%;
    }
} 