/* Booking Page Specific Styles */

/* Prevent horizontal scrollbars on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    * {
        box-sizing: border-box;
    }
}

/* Booking Header */
.booking-header {
    padding: 8rem 0 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.booking-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(236, 72, 153, 0.8));
    z-index: 1;
}

.booking-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.booking-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.booking-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Selection */
.service-selection {
    padding: 4rem 0;
    background: var(--background);
}

.service-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-option {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.service-option.featured {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

/* Allow the badge to sit half outside the card like on the homepage */
.service-option.featured {
    overflow: visible;
}

.service-option.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02), rgba(236, 72, 153, 0.02));
    z-index: 1;
}

.service-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-option.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.service-option-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.service-option-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-option-header .duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
}

.service-option-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-option .service-image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}

.service-option .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-details {
    text-align: center;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

/* Booking Scheduler */
.booking-scheduler {
    padding: 4rem 0;
    background: white;
}

.scheduler-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.back-to-services {
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.back-to-services:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.scheduler-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.selected-service-info {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 0 auto;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selected-service-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.selected-service-info .duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.selected-service-info .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.scheduler-container {
    position: relative;
    width: 100%;
}

.scheduler-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.scheduler-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    padding: 2rem;
}

.error-content {
    text-align: center;
    max-width: 400px;
}

.error-content i {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 1rem;
}

.error-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

#acuity-iframe {
    border: none;
    background: transparent;
    width: 100%;
    height: auto;
    min-height: 1100px;
    overflow: hidden;
}

.scheduler-help-text {
    margin-top: 0.75rem;
    text-align: center;
    color: var(--text-secondary);
}

.scheduler-help-text .highlight-link {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: underline;
}

/* removed legacy inline fallback link styles */

/* Benefits Section */
.booking-benefits {
    padding: 4rem 0;
    background: var(--surface);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem 1rem;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.booking-contact {
    padding: 4rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3,
.booking-policies h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-method:hover {
    background: var(--border-color);
    transform: translateX(5px);
}

.contact-method i {
    font-size: 1.25rem;
    color: var(--primary-color);
    min-width: 20px;
}

.booking-policies ul {
    list-style: none;
    padding: 0;
}

.booking-policies li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.booking-policies li:last-child {
    border-bottom: none;
}

.booking-policies li i {
    color: var(--success-color);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-title {
        font-size: 2rem;
    }
    
    .booking-subtitle {
        font-size: 1rem;
    }
    
    .service-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-option.featured {
        transform: none;
    }
    
    .service-option.featured:hover {
        transform: translateY(-5px);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .selected-service-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    #acuity-iframe {
        height: auto !important;
        min-height: 1300px !important;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .booking-header {
        padding: 6rem 0 2rem;
    }
    
    .booking-title {
        font-size: 1.75rem;
    }
    
    .service-selection,
    .booking-scheduler,
    .booking-benefits,
    .booking-contact {
        padding: 2rem 0;
    }
    
    .service-option-content {
        padding: 1rem;
    }
    
    #acuity-iframe {
        height: auto !important;
        min-height: 1400px !important;
        overflow: hidden;
    }
}

/* Custom Acuity Scheduler Styling */
.acuity-embed-container {
    width: 100%;
}

/* Ensure iframe responsiveness */
@media (max-width: 768px) {
    .acuity-embed-container iframe,
    #acuity-iframe {
        height: auto !important;
        overflow: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .scheduler-container {
        overflow: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }
}

/* Loading and error states */
.scheduler-loading p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Animation for service selection */
.service-option {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.service-option:nth-child(1) { animation-delay: 0.1s; }
.service-option:nth-child(2) { animation-delay: 0.2s; }
.service-option:nth-child(3) { animation-delay: 0.3s; }
.service-option:nth-child(4) { animation-delay: 0.4s; }

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

/* Success states */
.booking-success {
    text-align: center;
    padding: 3rem;
    background: var(--surface);
    border-radius: var(--radius-xl);
    margin: 2rem 0;
}

.booking-success i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.booking-success h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.booking-success p {
    color: var(--text-secondary);
    line-height: 1.6;
}
