:root {
    /* Color Palette - Medical Premium */
    --primary: #0ea5e9; /* Light Blue / Cyan */
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    
    --secondary: #10b981; /* Success Green */
    --accent: #f59e0b; /* Attention Yellow/Orange */
    
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-elements {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background-color: #f0fdfa; /* extremely light cyan base */
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #bae6fd; /* Light blue */
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #ccfbf1; /* Light teal */
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 50px) scale(1.05); }
}

/* Typography & Utils */
h1, h2, h3, h4, h5 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: var(--primary); }
ul { list-style: none; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.font-semibold { font-weight: 600; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

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

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-secondary:hover:not(:disabled) {
    background-color: #bae6fd;
}

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

.btn-block {
    width: 100%;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--text-main);
}

/* Header */
.header {
    padding: 1.5rem 0;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: height 0.3s ease;
}

@media (min-width: 768px) {
    .logo-img {
        height: 200px;
    }
}

.logo span {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    position: relative;
}

@media (min-width: 992px) {
    .hero-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.hero-text {
    flex: 1;
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .hero-text {
        text-align: left;
        padding-right: 1rem;
        margin-bottom: 0;
    }
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-text h2 br { display: none; }
@media (min-width: 992px) {
    .hero-text h2 { font-size: 3.5rem; }
    .hero-text h2 br { display: block; }
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .hero-text p { margin-left: 0; }
}

/* Mockup Card in Hero */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.mockup-card {
    width: 100%;
    max-width: 380px;
    height: 400px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transform: rotate(2deg) translateY(0);
    animation: float-mockup 6s infinite ease-in-out;
}

@keyframes float-mockup {
    0% { transform: rotate(2deg) translateY(0); }
    50% { transform: rotate(1deg) translateY(-15px); }
    100% { transform: rotate(2deg) translateY(0); }
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.skeleton-line {
    height: 16px;
    background-color: var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}
.skeleton-line.full { width: 100%; }
.skeleton-line.half { width: 60%; }
.skeleton-btn {
    margin-top: auto;
    height: 48px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
}

/* Booking Modal / Section */
.booking-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

.booking-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.wizard-card {
    width: 100%;
    height: 100%;
    max-width: 600px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.booking-container.hidden .wizard-card {
    transform: translateY(50px);
}

@media (min-width: 768px) {
    .wizard-card {
        height: auto;
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }
}

.wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.wizard-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.wizard-progress {
    height: 4px;
    background-color: var(--primary-light);
    width: 100%;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 20%; /* dynamic */
    transition: width 0.3s ease;
}

.wizard-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* Wizard Steps */
.step-container {
    animation: fadeIn 0.4s ease;
}

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

.step-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Selection Grids */
.grid-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .grid-options { grid-template-columns: repeat(2, 1fr); }
}

.selection-card {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

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

.selection-card.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.selection-card-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.selection-card-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Lists */
.list-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.list-item-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.list-item-content { flex: 1; }
.list-item-title { font-weight: 600; margin-bottom: 0.25rem; }
.list-item-desc { font-size: 0.85rem; color: var(--text-muted); }

/* Dates & Times specifix */
.dates-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.times-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

/* Forms */
.patient-form { display: flex; flex-direction: column; gap: 1.25rem; }

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background-color: white;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button input { flex: 1; }

.help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.help-text.error { color: #ef4444; }
.help-text.success { color: #10b981; }

/* Summary */
.summary-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 0.9ref;
    margin-top: 0.5rem;
}
.summary-box p { margin-bottom: 0.25rem; }

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    color: var(--text-muted);
}

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

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

/* Success Ticket */
.success-icon {
    width: 80px; height: 80px;
    background-color: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.ticket-info {
    background-color: #f8fafc;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: left;
}

.ticket-info p { margin-bottom: 0.5rem; }
.ticket-info p:last-child { margin-bottom: 0; }

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 0.9rem;
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2000;
}

.toast {
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    background-color: white;
    border-left: 4px solid var(--primary);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
}

.toast.show { transform: translateX(0); }
.toast.error { border-left-color: #ef4444; }
.toast.success { border-left-color: #10b981; }

.text-muted { color: var(--text-muted) }

/* Hero Actions */
.hero-actions { display: grid; gap: 1rem; width: 100%; max-width: 400px; margin: 0 auto; }
@media (min-width: 992px) { .hero-actions { margin: 0; } }
.action-btn { width: 100%; padding: 1.25rem 1rem; font-size: 1.1rem; border-radius: var(--radius-md); font-weight: 600; text-align: center; display: inline-block;}
.action-btn.primary { background-color: var(--primary); color: white; box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3); border: none; }
.action-btn.primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }
.action-btn.secondary { background-color: white; color: var(--text-main); border: 2px solid var(--border-color); }
.action-btn.secondary:hover { border-color: var(--primary); background-color: var(--primary-light); color: var(--primary-dark); transform: translateY(-2px); }
