/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f8f9fa;
    --bg-white: #ffffff;
    --bg-hover: #f0f4ff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --green: #059669;
    --green-light: #d1fae5;
    --border: #e5e7eb;
    --border-focus: #2563eb;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container { max-width: 700px; margin: 0 auto; padding: 0 20px; }

/* ===== Nav ===== */
.nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.2rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo span { color: var(--primary); }
.nav-demo { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Booking Header ===== */
.booking-app { padding: 40px 0 80px; }
.booking-header { text-align: center; margin-bottom: 32px; }
.booking-header h1 { font-size: 1.8rem; margin-bottom: 4px; }
.booking-header p { color: var(--text-muted); }

/* ===== Steps ===== */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}
.step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.step.active { opacity: 1; }
.step.done { opacity: 0.7; }
.step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}
.step.active .step-num { background: var(--primary); color: #fff; }
.step.done .step-num { background: var(--green); color: #fff; }
.step-label { font-size: 0.85rem; font-weight: 500; }
.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
}

/* ===== Step Panels ===== */
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-panel h2 { font-size: 1.2rem; margin-bottom: 20px; }

.step-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
}

/* ===== Buttons ===== */
.btn {
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-secondary { background: var(--bg-white); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); }

/* ===== Service Selection ===== */
.service-options { display: flex; flex-direction: column; gap: 10px; }

.service-option input { display: none; }
.service-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
}
.service-option-content:hover { border-color: var(--primary); background: var(--bg-hover); }
.service-option input:checked + .service-option-content {
    border-color: var(--primary);
    background: var(--bg-hover);
    box-shadow: 0 0 0 1px var(--primary);
}

.service-option-main h3 { font-size: 0.95rem; margin-bottom: 2px; }
.service-option-main p { color: var(--text-muted); font-size: 0.82rem; }
.service-option-meta { text-align: right; }
.service-option-meta .duration {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}
.service-option-meta .price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== Date Picker ===== */
.date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.date-nav {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}
.date-nav:hover { border-color: var(--primary); }
.date-grid {
    display: flex;
    gap: 6px;
    flex: 1;
    overflow: hidden;
}
.date-btn {
    flex: 1;
    padding: 10px 4px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: 0.15s;
    font-family: inherit;
    min-width: 0;
}
.date-btn:hover { border-color: var(--primary); }
.date-btn.active { border-color: var(--primary); background: var(--bg-hover); box-shadow: 0 0 0 1px var(--primary); }
.date-btn.disabled { opacity: 0.3; cursor: not-allowed; }
.date-btn .day-name { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.date-btn .day-num { display: block; font-size: 1.1rem; font-weight: 600; margin: 2px 0; }
.date-btn .day-month { display: block; font-size: 0.7rem; color: var(--text-muted); }

/* ===== Time Slots ===== */
.time-slots { display: none; }
.time-slots.visible { display: block; }
.time-label { font-size: 0.9rem; font-weight: 500; margin-bottom: 12px; }
.time-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.time-btn {
    padding: 10px 18px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: 0.15s;
}
.time-btn:hover { border-color: var(--primary); }
.time-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.time-btn.disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* ===== Contact Form ===== */
.contact-form { margin-bottom: 24px; }
.form-row { display: flex; gap: 14px; }
.form-group { flex: 1; margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 4px; color: var(--text-muted); }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--border-focus); }

/* ===== Booking Summary ===== */
.booking-summary {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}
.summary-row .label { color: var(--text-muted); }
.summary-row .value { font-weight: 500; }
.summary-row.total { border-top: 1px solid var(--primary); padding-top: 10px; margin-top: 6px; }
.summary-row.total .value { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

/* ===== Confirmation ===== */
.confirmation { text-align: center; padding: 40px 0; }
.conf-icon {
    width: 64px; height: 64px;
    background: var(--green-light);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}
.confirmation h2 { color: var(--green); margin-bottom: 8px; }
.confirmation > p { color: var(--text-muted); margin-bottom: 24px; }
.conf-details {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 28px;
}
.conf-details .summary-row { font-size: 0.9rem; }

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}
.footer p { color: var(--text-muted); font-size: 0.8rem; }
.footer a { color: var(--primary); text-decoration: none; }

/* ===== Mobile ===== */
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
    .date-grid { gap: 4px; }
    .step-label { display: none; }
    .steps { gap: 0; }
    .step-line { width: 24px; }
    .time-btn { padding: 8px 14px; font-size: 0.85rem; }
}
