:root {
    --primary-bg: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-main: #0a0a0a;
    --text-muted: #6b7280;
    --accent: #F5D88E;
    --accent-hover: #e8cb82;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --radius-lg: 24px;
    --radius-pill: 9999px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    
    /* Subtle blue vignette effect */
    background: radial-gradient(circle at center, #F8F9FA 0%, #eef2f6 100%);
}

.app-container {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    min-height: 600px;
    display: flex; /* Helps with transitions */
    flex-direction: column;
}

.view {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.3s ease-out;
}

.view.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Common Layout */
.content-wrapper {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.padding-top-lg {
    padding-top: 2rem;
}

.hero-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* Navigation Elements */
.back-link {
    background: none;
    border: none;
    color: #3b82f6; /* A standard blue link color */
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0;
    transition: var(--transition);
}

.back-link:hover {
    color: #2563eb;
}

.back-link i {
    font-size: 0.75rem;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 0.875rem;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.icon-btn:hover {
    background-color: var(--primary-bg);
}

.month-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Grid Layouts - generic */
.section-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.time-section {
    margin-bottom: 2rem;
}

/* Calendar Grid specific */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.date-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
    position: relative;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    outline: none;
}

.date-day-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.date-number {
    font-size: 1.125rem;
    font-weight: 600;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 1;
}

.date-btn:hover .date-number {
    background-color: var(--primary-bg);
}

.date-btn.active .date-number {
    background-color: var(--accent);
    color: var(--text-main);
}

/* Time Grid specific */
.time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.time-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.time-btn:hover {
    border-color: var(--accent);
    background-color: #fdfbf7;
}

.time-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--accent);
}

/* Form Styles */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input {
    height: 52px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0 1.25rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    border-color: var(--accent);
    background-color: #fdfbf7;
}

.primary-btn {
    margin-top: 1rem;
    height: 56px;
    background-color: var(--accent);
    color: var(--text-main);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.primary-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Success View */
.success-wrapper {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.success-text {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.success-details {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem;
    background-color: #fdfbf7;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--accent);
    width: 100%;
}
