/* ============================================
   BOOKING PAGE STYLES
   Premium, elegant, neutral design
   ============================================ */

:root {
    /* Colors - Warm neutral palette */
    --color-primary: #8b7355;
    --color-primary-light: #a68b6a;
    --color-primary-dark: #6b5642;
    --color-accent: #c4a77d;
    --color-accent-light: #e8ddd4;
    
    --color-bg: #faf8f5;
    --color-bg-card: #ffffff;
    --color-bg-subtle: #f5f0eb;
    
    --color-text: #3d3428;
    --color-text-secondary: #6b5f52;
    --color-text-muted: #9a8d7f;
    
    --color-border: #e8ddd4;
    --color-border-light: #f0e9e1;
    
    --color-success: #5a8f5a;
    --color-error: #c75050;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(61, 52, 40, 0.04);
    --shadow-md: 0 4px 12px rgba(61, 52, 40, 0.06);
    --shadow-lg: 0 8px 24px rgba(61, 52, 40, 0.08);
    --shadow-xl: 0 16px 48px rgba(61, 52, 40, 0.12);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
}

/* Container */
.booking-container {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-lg);
    padding-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .booking-container {
        padding: var(--space-2xl);
    }
}

/* Header */
.booking-header {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    margin-bottom: var(--space-xl);
}

.booking-header .logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .booking-header .logo h1 {
        font-size: 2.5rem;
    }
}

.booking-header .tagline {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    padding: 0 var(--space-md);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--color-bg-card);
    color: var(--color-text-muted);
    border: 2px solid var(--color-border);
    transition: all var(--transition-base);
}

.progress-step.active .step-number {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.progress-step.completed .step-number {
    background: var(--color-success);
    color: white;
    border-color: var(--color-success);
}

.step-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    display: none;
}

@media (min-width: 480px) {
    .step-label {
        display: block;
    }
}

.progress-step.active .step-label {
    color: var(--color-primary);
}

.progress-line {
    flex: 1;
    max-width: 60px;
    height: 2px;
    background: var(--color-border);
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn var(--transition-base);
}

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

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

.step-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .step-title {
        font-size: 1.75rem;
    }
}

/* Service Cards */
.services-grid {
    display: grid;
    gap: var(--space-md);
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.service-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card.selected {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-subtle) 100%);
    box-shadow: 0 0 0 2px rgba(139, 115, 85, 0.1);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.service-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.service-meta .duration {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.service-meta .duration svg {
    color: var(--color-text-muted);
}

.service-meta .price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Staff Cards */
.staff-grid {
    display: grid;
    gap: var(--space-md);
}

.staff-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.staff-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.staff-card.selected {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-subtle) 100%);
}

.staff-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--color-primary);
    flex-shrink: 0;
}

.staff-card.anyone .staff-avatar {
    background: var(--color-bg-subtle);
    color: var(--color-text-secondary);
}

.staff-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.staff-info p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Calendar */
.datetime-container {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 640px) {
    .datetime-container {
        grid-template-columns: 1fr 1fr;
    }
}

.calendar-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.calendar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.cal-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.cal-nav:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.weekdays span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-xs);
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.day:hover:not(.disabled):not(.empty) {
    background: var(--color-bg-subtle);
    color: var(--color-primary);
}

.day.selected {
    background: var(--color-primary);
    color: white;
}

.day.disabled {
    color: var(--color-text-muted);
    opacity: 0.4;
    cursor: not-allowed;
}

.day.empty {
    cursor: default;
}

/* Timeslots */
.timeslots-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.timeslots-section h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.timeslots-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    max-height: 280px;
    overflow-y: auto;
}

.timeslot {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.timeslot:hover {
    border-color: var(--color-primary-light);
    background: var(--color-bg-subtle);
}

.timeslot.selected {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.placeholder-text,
.error-text {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.error-text {
    color: var(--color-error);
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-muted);
}

/* Booking Summary */
.booking-summary {
    background: var(--color-bg-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.booking-summary h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.summary-row .label {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.summary-row .value {
    font-weight: 500;
    color: var(--color-text);
}

.summary-row.total {
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 2px solid var(--color-border);
}

.summary-row.total .value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
}

/* Customer Form */
.customer-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.form-row {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg-card);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

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

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-primary:disabled {
    background: var(--color-text-muted);
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-primary-light);
}

/* Step Navigation */
.step-navigation {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: var(--space-2xl);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-success) 0%, #4a7c4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
    color: white;
}

.success-message h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.success-message > p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.confirmation-details {
    background: var(--color-bg-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.confirmation-details p {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.confirmation-details p:last-child {
    border-bottom: none;
}

/* Footer */
.booking-footer {
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.booking-footer a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.booking-footer a:hover {
    color: var(--color-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-subtle);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}
