/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Layout Components */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NEW: Global Header Styling */
.global-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); /* Aesthetic Purple Gradient */
    color: white;
    padding: 1rem 2rem; /* Adjusted padding */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* More prominent shadow */
    position: fixed; /* Fixed position to stay at the top */
    top: 0;
    width: 100%;
    z-index: 100; /* Ensure it stays on top of other content */
    display: flex; /* Use flex to align content inside */
    align-items: center;
    justify-content: space-between; /* Space between back button and logo/title */
}

.global-header .header-content {
    display: flex;
    align-items: center;
    width: 100%; /* Take full width of header */
    /* REMOVED: justify-content: flex-start; and gap: 1.5rem; */
    /* The primary logo (h1 and span) will be centered using text-align and margin auto */
}

/* Align the back button to the left within the header */
.global-header .global-back-btn {
    color: white; /* White text for back button */
    font-size: 1rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    display: flex; /* Ensure icon and text align */
    align-items: center;
    gap: 0.5rem;
    /* Ensure this button always stays left even with centered logo */
    position: absolute; /* Position absolutely within header-content */
    left: 2rem; /* Align to the padding of the header */
}

.global-header .global-back-btn:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Light hover effect */
}

.global-header .logo {
    display: flex;
    flex-direction: column;
    /* NEW: Center the logo block within the available space */
    flex-grow: 1; /* Allow it to grow and push other elements */
    text-align: center; /* Center the text inside the logo div */
    margin: 0; /* Remove any default margins that might interfere */
}

.global-header .logo h1 {
    font-size: 1.5rem; /* Slightly smaller for a header bar */
    font-weight: 700;
    margin: 0;
    color: white;
}

.global-header .logo span {
    font-size: 0.75rem;
    opacity: 0.9;
    color: #e0e0e0; /* Lighter white for subtitle */
}


.main-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding-top: 80px; /* Approximate height of your header + some spacing */
    box-sizing: border-box; /* Include padding in element's total width and height */
}


/* Step System */
.step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    width: 100%;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.step.active {
    display: flex;
}

/* Special styling for the Hero Section to make it full width */
#hero-section {
    max-width: 100%;
    margin: 0;
    padding: 0;
    
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 0 !important; /* Ensure no padding-top on hero */
}

/* Hide the step-header's back button now that it's global */
.step-header .back-btn {
    display: none;
}


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

/* Rest of your main.css remains the same as before, only adding new sections/overrides where necessary */

/* Step Headers */
.step-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.step-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.step-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn.secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn.secondary:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

.btn.danger {
    background-color: #ef4444;
    color: white;
}

.btn.danger:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

.btn.large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.back-btn { /* This style is now mainly for the global-back-btn, but keep general if needed */
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.back-btn:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

/* Search Bar (kept in case you reuse it) */
.search-bar {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

/* Business Grid (kept in case you reuse it) */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.business-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
}

.business-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.business-card p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.business-card .business-type {
    display: inline-block;
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Booking Interface - These are general styles for containers within steps */
.booking-header {
    margin-bottom: 2rem;
}

.business-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.business-info p {
    color: #64748b;
    font-size: 1.125rem;
}

/* Filters */
.filters-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.filters-container h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.filter-select {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Calendar */
.calendar-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.calendar-day-header {
    background-color: #f8fafc;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
}

.calendar-day {
    background-color: white;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background-color: #f0f9ff;
}

.calendar-day.other-month {
    color: #cbd5e1;
    background-color: #f8fafc;
}

.calendar-day.selected {
    background-color: #2563eb;
    color: white;
}

.calendar-day.has-availability {
    background-color: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.calendar-day.has-availability:hover {
    background-color: #bbf7d0;
}

.calendar-day.closed {
    background-color: #fef2f2;
    color: #dc2626;
    cursor: not-allowed;
}

/* Selection Grid (for services/trainers) */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
}

.selection-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.selection-card:hover {
    border-color: #2563eb;
    background-color: #f0f9ff;
    transform: translateY(-2px);
}

.selection-card.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.selection-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.selection-card p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.selection-card .service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.service-duration {
    color: #64748b;
    font-size: 0.875rem;
}

.service-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
}

/* Staff Cards */
.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Pax Selection (not used in current flow but kept for completeness) */
.pax-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.pax-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.pax-option:hover {
    border-color: #2563eb;
    background-color: #f0f9ff;
}

.pax-option.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
}

/* Time Slots */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.time-slot {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
    font-weight: 500;
}

.time-slot:hover {
    border-color: #2563eb;
    background-color: #f0f9ff;
}

.time-slot.selected {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.time-slot.unavailable {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* Selection Summary (for booking summary on customer details page) */
.selection-summary { /* This class is now used by .booking-summary-confirmation too */
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #2563eb;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.selection-summary h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.selected-service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.selected-service:last-child {
    border-bottom: none;
}

.total-cost {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f0fdf4;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.25rem;
    color: #059669;
    width: 100%;
}

/* Service/Trainer Selection Area - Ensures proper full-width layout */
.service-trainer-selection-area {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.service-trainer-selection-area h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}


/* Forms */
.booking-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* New Login Form Design */
.login-form-design {
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 2.5rem 3rem;
    background: linear-gradient(145deg, #ffffff, #f0f8ff);
}

.login-form-design h2 {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.login-form-design .form-group label {
    color: #2563eb;
}

.login-form-design .form-group input {
    border-color: #a7d3f8;
    background-color: #f8fcff;
}

.login-form-design .form-group input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.login-form-design .btn.primary {
    width: 100%;
    margin-top: 1.5rem;
}

.login-form-design .mt-4 a {
    color: #2563eb;
    font-weight: 600;
}
/* End New Login Form Design */

/* NEW: Register Form Design (similar to login) */
#register-page .booking-form { /* Target the form specifically on the register page */
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 2.5rem 3rem;
    background: linear-gradient(145deg, #ffffff, #f0f8ff);
}

#register-page .booking-form h2 {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

#register-page .booking-form .form-group label {
    color: #2563eb;
}

#register-page .booking-form .form-group input {
    border-color: #a7d3f8;
    background-color: #f8fcff;
}

#register-page .booking-form .form-group input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

#register-page .booking-form .btn.primary {
    width: 100%;
    margin-top: 1.5rem;
}

#register-page .booking-form .mt-4 a {
    color: #2563eb;
    font-weight: 600;
}
/* End NEW: Register Form Design */


.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group.required label::after {
    content: " *";
    color: #ef4444;
}

/* Confirmation Content - Base (used for Face ID Success as well) */
.confirmation-content {
    text-align: center;
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.success-icon { /* Original checkmark icon, now for Face ID Success */
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -10px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0,-1px,0);
    }
}

.confirmation-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.confirmation-details { /* Generic details, overridden by specific classes below */
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.booking-summary { /* Generic summary styling, often overridden */
    text-align: left;
}

.booking-summary h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.booking-summary p {
    margin-bottom: 0.5rem;
    color: #374151;
}

.booking-summary ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.booking-summary li {
    margin-bottom: 0.25rem;
    color: #374151;
}

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

/* --- New Styles for Hero, Login, Register, Face ID --- */

/* Hero Section */
#hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./cute.jpg') no-repeat center center/cover;
    filter: brightness(0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Face ID Scan Page */
.face-scan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 2rem auto;
}

.face-scan-circle {
    width: 200px;
    height: 200px;
    border: 5px solid #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #f0f9ff;
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.1);
}

.face-scan-icon {
    color: #2563eb;
    z-index: 2;
}

.face-scan-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #2563eb, #1d4ed8);
    opacity: 0.7;
    transition: height 3s ease-in-out;
    z-index: 1;
}

.face-scan-container.scanning .face-scan-progress {
    height: 100%;
}

.face-scan-container.complete .face-scan-progress {
    background: linear-gradient(to top, #10b981, #059669);
}

#scan-status {
    font-size: 1.1rem;
    font-weight: 500;
    color: #475569;
}


/* Customer Details Step - Modernized Layout */
.customer-details-area {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column for mobile */
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

@media (min-width: 768px) {
    .customer-details-area {
        grid-template-columns: 1fr 1.5fr; /* Two columns: summary on left, form on right */
        align-items: flex-start;
    }
}

.booking-summary-modern {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #2563eb;
    height: fit-content;
    position: sticky;
    top: 2rem; /* Adjusted for global header */
}

.booking-summary-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.booking-summary-modern .selected-service {
    padding: 0.8rem 0;
    font-size: 0.95rem;
}
.booking-summary-modern .selected-service span:first-child {
    font-weight: 500;
    color: #475569;
}
.booking-summary-modern .selected-service span:last-child {
    font-weight: 600;
    color: #1e293b;
}

.booking-summary-modern .total-cost {
    background-color: #e0fdf0;
    color: #047857;
    padding: 1.2rem;
    border-radius: 0.75rem;
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 2rem;
}

.customer-form-modern {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.customer-form-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

/* --- NEW: Confirmation Page Modern Design --- */
.confirmation-content-modern {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.confirmation-content-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at top left, rgba(37, 99, 235, 0.05) 1%, transparent 30%),
                      radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.05) 1%, transparent 30%);
    z-index: 0;
    pointer-events: none;
}

.confirmation-content-modern > *:not(.confirmation-content-modern::before) {
    position: relative;
    z-index: 1;
}


.success-icon-modern {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem auto;
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.4);
    animation: bounce 0.8s ease-in-out;
}

.success-icon-modern .checkmark-icon {
    width: 60px;
    height: 60px;
    stroke: white;
}


.confirmation-content-modern h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.confirmation-message {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.booking-summary-confirmation {
    background-color: #f0f8ff;
    border-radius: 1rem;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    text-align: left;
    border: 1px solid #dbeafe;
    box-shadow: inset 0 1px 5px rgba(37, 99, 235, 0.05);
}

.booking-summary-confirmation h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1.2rem;
    text-align: center;
}

.booking-summary-confirmation p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.95rem;
    color: #374151;
}

.booking-summary-confirmation p:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.booking-summary-confirmation p strong {
    font-weight: 600;
    color: #1e293b;
}
.booking-summary-confirmation .service-price {
    font-weight: 700;
    color: #059669;
    font-size: 1.1rem;
}

.cta-message {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 2rem;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

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

.confirmation-actions .btn {
    min-width: 200px;
    font-size: 0.95rem;
    padding: 0.9rem 1.8rem;
}

.confirmation-actions .btn.primary {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}
.confirmation-actions .btn.primary:hover {
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}

/* NEW: QR Code Styles */
.qr-code-container {
    background-color: #f8fcfd;
    border: 1px solid #e0f2fe;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.qr-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.e-receipt-qr-code {
    width: 150px;
    height: 150px;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    display: block;
    margin-bottom: 1rem;
}

.qr-hint {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
}


/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 0;
    }

    .step {
        padding: 1rem;
    }

    .step-header h2 {
        font-size: 2rem;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .calendar {
        font-size: 0.875rem;
    }

    .calendar-day {
        min-height: 50px;
        padding: 0.5rem;
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }

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

    .pax-selection {
        grid-template-columns: 1fr;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    #hero-section {
        height: 100vh;
        padding-top: 0 !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn.large {
        width: 100%;
    }

    .service-trainer-selection-area {
        padding: 1rem;
    }

    .customer-details-area {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .booking-summary-modern {
        top: 0;
        position: static;
    }

    /* Confirmation page responsive adjustments */
    .confirmation-content-modern {
        padding: 2rem 1rem;
        margin: 1rem auto;
    }
    .success-icon-modern {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    .success-icon-modern .checkmark-icon {
        width: 50px;
        height: 50px;
    }
    .confirmation-content-modern h2 {
        font-size: 2rem;
    }
    .confirmation-message {
        font-size: 1rem;
    }
    .booking-summary-confirmation {
        padding: 1.5rem;
    }
    .booking-summary-confirmation h3 {
        font-size: 1.15rem;
    }
    .booking-summary-confirmation p {
        font-size: 0.875rem;
    }
    .booking-summary-confirmation .service-price {
        font-size: 1rem;
    }
    .cta-message {
        font-size: 1.1rem;
    }
    .confirmation-actions .btn {
        min-width: unset;
        width: 100%;
    }

    .e-receipt-qr-code {
        width: 120px;
        height: 120px;
    }

    /* Global header responsive adjustments */
    .global-header {
        padding: 0.75rem 1rem;
    }
    .global-header .global-back-btn {
        left: 1rem; /* Adjust position for smaller screens */
        padding: 0.5rem;
    }
    .global-header .logo {
        margin-left: 0; /* Remove specific margin on small screens */
    }
    .global-header .logo h1 {
        font-size: 1.3rem;
    }
    .global-header .logo span {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .step-header h2 {
        font-size: 1.75rem;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .calendar-day-header,
    .calendar-day {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }

    .time-slots-grid,
    .pax-selection {
        grid-template-columns: 1fr;
    }
    
    .service-trainer-selection-area {
        padding: 0.75rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.hidden { display: none !important; }
.visible { display: block !important; }