/* ============================================
   SPA BOOKING PRO - MAIN STYLESHEET
   ============================================ */

/* CSS Variables (Custom Properties)
   These make it easy to change colors site-wide */
:root {
    --primary-color: #2d5a27;
    --primary-dark: #1a3a16;
    --primary-light: #4a8c3f;
    --accent-color: #d4a574;
    --accent-dark: #b8864e;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f9f7f5;
    --medium-bg: #f0ebe4;
    --border-color: #e0d5c7;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --border-radius: 8px;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', Arial, sans-serif;
    --max-width: 1200px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0;
}

.site-title a {
    color: var(--primary-dark);
}

.site-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

#primary-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

#primary-menu li {
    position: relative;
}

#primary-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 500;
    border-radius: 4px;
}

#primary-menu a:hover,
#primary-menu .current-menu-item a {
    color: var(--primary-color);
    background-color: var(--light-bg);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header .container {
    max-width: 800px;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.125rem;
}

.service-content {
    padding: 25px;
}

.service-title {
    font-size: 1.375rem;
    margin-bottom: 10px;
}

.service-title a {
    color: var(--primary-dark);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.service-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.service-actions {
    display: flex;
    gap: 10px;
}

/* ============================================
   BOOKING FORM
   ============================================ */
.booking-page {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.booking-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.booking-form-wrapper {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.booking-form {
    position: relative;
}

.booking-step {
    animation: fadeIn 0.3s ease;
}

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

.booking-step h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.form-control.error {
    border-color: var(--error-color);
    background-color: #fff5f5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Time Slots Grid */
.time-slots-grid {
    margin-top: 20px;
}

.time-slots-label {
    font-weight: 600;
    margin-bottom: 10px;
}

.slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-slot-btn {
    padding: 10px 20px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.time-slot-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.time-slot-btn.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Booking Summary */
.booking-summary {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.booking-summary h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.summary-total {
    font-weight: 700;
    font-size: 1.125rem;
    border-bottom: none;
    color: var(--primary-color);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.payment-method-option:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

.payment-method-option input[type="radio"] {
    margin-right: 15px;
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-logo {
    height: 30px;
    object-fit: contain;
}

/* Progress Bar */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition);
}

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

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

.progress-bar {
    width: 50px;
    height: 3px;
    background: var(--border-color);
    margin: 0 10px;
}

/* Form Messages */
.booking-messages {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.booking-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.booking-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   BOOKING SIDEBAR
   ============================================ */
.sidebar-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.hours-list,
.policy-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.policy-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}

.policy-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ============================================
   MY ACCOUNT PAGE
   ============================================ */
.my-account-page {
    padding: 60px 0;
}

.account-tabs {
    margin-top: 40px;
}

.account-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.tab-btn {
    padding: 10px 25px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.logout-btn {
    margin-left: auto;
}

/* Booking Cards */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-left: 5px solid var(--primary-color);
}

.booking-card.status-cancelled {
    border-left-color: var(--error-color);
    opacity: 0.8;
}

.booking-card.status-completed {
    border-left-color: var(--success-color);
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
    background: var(--light-bg);
}

.booking-reference {
    font-weight: 600;
    font-size: 0.9rem;
}

.booking-status {
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-completed {
    background: #cce5ff;
    color: #004085;
}

.booking-card-body {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.booking-detail {
    display: flex;
    flex-direction: column;
}

.booking-detail .label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 3px;
}

.booking-card-footer {
    padding: 15px 25px;
    background: var(--light-bg);
    text-align: right;
}

/* ============================================
   PAYMENT PAGE
   ============================================ */
.payment-container {
    max-width: 500px;
    margin: 60px auto;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.payment-summary {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

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

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

.payment-security-note {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-widgets-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-color);
}

#footer-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

#footer-menu a {
    color: rgba(255,255,255,0.7);
}

#footer-menu a:hover {
    color: var(--white);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}