:root {
    --primary-color: #2E4A6B;
    --primary-dark: #1E3449;
    --secondary-color: #3B82C7;
    --accent-color: #E6F1FA;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --text-color: #2D3748;
    --text-dark: #1A202C;
    --text-light: #718096;
    --background-light: #F7FAFC;
    --background-main: #F5F9FC;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #2E4A6B 0%, #3B82C7 100%);
    --shadow: 0 8px 25px rgba(46, 74, 107, 0.15);
    --shadow-light: 0 4px 12px rgba(46, 74, 107, 0.1);
    --border-radius: 12px;
    --border-radius-small: 8px;
    --breakpoint-mobile: 768px;
    --breakpoint-tablet: 992px;
    
    /* Responsive font sizes */
    --font-size-small: clamp(0.875rem, 1.5vw, 1rem);
    --font-size-base: clamp(1rem, 2vw, 1.125rem);
    --font-size-large: clamp(1.125rem, 2.5vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 3vw, 1.5rem);
    --font-size-xxl: clamp(1.75rem, 4vw, 2.5rem);
    
    /* Consistent spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-main);
    min-height: 100vh;
}

/* Header - Sticky Navbar */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all 0.3s ease;
}

/* Header state when scrolled down */
header.header-scrolled {
    padding: var(--space-sm) 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Smooth transition for logo */
.logo-image {
    transition: height 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-lg);
    position: relative;
}

/* Add body padding to account for fixed header */
body {
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    padding-top: 120px; /* Account for fixed header height */
}

/* Global heading styles to prevent overlapping with fixed navbar */
h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 120px;
}

/* Wave divider has been removed */

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
    transform-origin: center;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    body {
        padding-top: 100px; /* Adjusted for smaller header on mobile */
    }
    
    /* Mobile heading styles */
    h1, h2, h3, h4, h5, h6 {
        scroll-margin-top: 100px;
    }
    
    .header-content {
        padding: 0 var(--space-md);
        flex-wrap: nowrap;
    }
    
    header {
        padding: var(--space-sm) 0; /* Less padding on mobile */
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow);
        transition: left 0.3s ease-in-out;
        flex-direction: column;
        padding: 5rem var(--space-lg) var(--space-lg);
        z-index: 999;
        overflow-y: auto;
        gap: var(--space-lg);
    }
    
    .nav-container.active {
        left: 0;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: left;
        gap: var(--space-sm);
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        padding: var(--space-md);
        font-size: var(--font-size-large);
        display: block;
        width: 100%;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
        padding: var(--space-md) var(--space-lg);
    }
    
    /* Menu overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        backdrop-filter: blur(2px);
    }
    
    .menu-overlay.active {
        display: block;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    color: var(--primary-color);
    font-size: var(--font-size-small);
    margin: 0;
    line-height: 1;
}

/* Navigation Container */
.nav-container {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
    font-size: 20px;
}

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

.cta-button {
    background: var(--gradient);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    font-size: var(--font-size-base);
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(127, 196, 229, 0.3);
}

/* Hero Section */
.hero {
    padding: var(--space-xxl) var(--space-lg);
    text-align: center;
    margin-top: 89px;
}

.hero h2 {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: var(--font-size-large);
    color: var(--text-light);
    margin-bottom: var(--space-xxl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Reservation Form - Main Focus */
.reservation-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--space-xxl);
    margin: var(--space-xl) auto;
    max-width: 900px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
}

.reservation-section h3 {
    font-size: var(--font-size-xxl);
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--primary-dark);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text-color);
    font-size: var(--font-size-base);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-md);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(127, 196, 229, 0.1);
}

.submit-button {
    background: var(--gradient);
    color: var(--white);
    padding: var(--space-lg) var(--space-xxl);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-large);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: var(--shadow);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(127, 196, 229, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    padding: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(127, 196, 229, 0.25);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--white);
    font-size: 1.75rem;
}

/* Admin Panel */
.admin-panel {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.admin-header {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.reservations-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.reservations-table table {
    width: 100%;
    border-collapse: collapse;
}

.reservations-table th,
.reservations-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--accent-color);
}

.reservations-table th {
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
}

.status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.pending {
    background: #FFF3CD;
    color: #856404;
}

.status.confirmed {
    background: #D1E7DD;
    color: #0F5132;
}

.status.cancelled {
    background: #F8D7DA;
    color: #842029;
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-xl) var(--space-md);
    }
    
    .hero h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero p {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-xl);
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .reservation-section {
        padding: var(--space-xl);
        margin: var(--space-md);
    }
    
    .reservation-section h3 {
        font-size: var(--font-size-xl);
    }
    
    /* Form improvements for mobile */
    .form-group label {
        font-size: var(--font-size-base);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--space-md);
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    .submit-button {
        padding: var(--space-lg);
        font-size: var(--font-size-base);
    }
    
    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr;
        padding: var(--space-md);
        gap: var(--space-md);
    }
    
    .service-card {
        padding: var(--space-lg);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }
    
    .hero h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--space-sm);
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    .reservation-section {
        padding: var(--space-md);
        margin: var(--space-sm);
    }
    
    .reservation-section h3 {
        font-size: var(--font-size-large);
    }
    
    /* Payment options mobile */
    .payment-options {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .payment-option {
        width: 100%;
    }
    
    /* Touch-friendly interactive elements */
    button, 
    input[type="submit"],
    .time-slot,
    .submit-button {
        min-height: 44px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Success/Error Messages */
.message {
    padding: var(--space-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.message.success {
    background: #D1E7DD;
    color: #0F5132;
    border: 1px solid #BADBCC;
}

.message.error {
    background: #F8D7DA;
    color: #842029;
    border: 1px solid #F5C2C7;
}

/* Admin Panel */
.admin-panel {
    max-width: 1200px;
    margin: var(--space-xl) auto;
    padding: 0 var(--space-lg);
}

.admin-header {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow);
}

.reservations-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.reservations-table table {
    width: 100%;
    border-collapse: collapse;
}

.reservations-table th,
.reservations-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--accent-color);
}

.reservations-table th {
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
}

.status {
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    font-size: var(--font-size-small);
    font-weight: 500;
}

.status.pending {
    background: #FFF3CD;
    color: #856404;
}

.status.confirmed {
    background: #D1E7DD;
    color: #0F5132;
}

.status.cancelled {
    background: #F8D7DA;
    color: #842029;
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: var(--space-xxl) var(--space-lg) var(--space-lg);
    margin-top: var(--space-xxl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

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

.mt-auto {
    margin-top: auto;
}

.mb-auto {
    margin-bottom: auto;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.gap-md {
    gap: var(--space-md);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* ===== ENHANCED RESERVATION FORMS ===== */

/* Quick form on homepage */
.quick-form {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-form .submit-button {
    background: var(--gradient);
    color: var(--white);
    padding: var(--space-lg) var(--space-xl);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-large);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-transform: none;
    box-shadow: var(--shadow);
}

.quick-form .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(127, 196, 229, 0.25);
}

.quick-form-note {
    text-align: center;
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-top: var(--space-md);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

/* Prefilled form styling */
.prefilled-notice {
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced form styling for prefilled fields */
.form-group input[style*="border-left: 4px solid"],
.form-group select[style*="border-left: 4px solid"],
.form-group textarea[style*="border-left: 4px solid"] {
    animation: prefillHighlight 0.8s ease-out;
    position: relative;
}

@keyframes prefillHighlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Improved reservation page layout */
.reservation-page {
    animation: fadeInUp 0.6s ease-out;
}

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

.reservation-header h2 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

/* Enhanced button styling */
.submit-button {
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover::before {
    left: 100%;
}

/* Mobile enhancements */
@media (max-width: 768px) {
    .quick-form {
        padding: var(--space-lg);
    }
    
    .quick-form .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .prefilled-notice {
        padding: var(--space-md);
        font-size: var(--font-size-small);
    }
}

/* Loading states */
.loading-time-slots {
    opacity: 0.7;
    pointer-events: none;
}

.loading-time-slots::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    max-width: 350px;
    width: 100%;
}

.toast {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: var(--border-radius-small);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
    min-height: 64px;
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

.toast-success {
    background: linear-gradient(135deg, var(--success-color), #2ECC71);
}

.toast-error {
    background: linear-gradient(135deg, var(--danger-color), #EC7063);
}

.toast-warning {
    background: linear-gradient(135deg, var(--warning-color), #F7C52D);
}

.toast-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.toast-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    font-size: 13px;
    opacity: 0.95;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    animation: progress 5s linear forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Mobile toast adjustments */
@media (max-width: 768px) {
    .toast-container {
        bottom: 20px;
        top: auto;
        right: 10px;
        left: 10px;
        max-width: none;
        z-index: 100;
    }
    
    .toast {
        padding: 10px 14px;
        min-height: 56px;
    }
    
    .toast-title {
        font-size: 13px;
    }
    
    .toast-message {
        font-size: 12px;
    }
}
