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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* ── Header ───────────────────────────────────────────── */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.header h1 {
    font-size: 1.6rem;
    color: #16213e;
    margin-bottom: 8px;
}

.header .subtitle {
    color: #555;
    font-size: 1rem;
}

/* ── Cards ────────────────────────────────────────────── */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #16213e;
}

/* ── Form Elements ────────────────────────────────────── */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.required { color: #e74c3c; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0f3460;
}

textarea { resize: vertical; }

/* ── Slots Grid ───────────────────────────────────────── */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.slot-btn {
    padding: 10px 8px;
    border: 2px solid #0f3460;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f3460;
    transition: all 0.2s;
    text-align: center;
}

.slot-btn:hover {
    background: #0f3460;
    color: #fff;
}

.slot-btn.selected {
    background: #0f3460;
    color: #fff;
    border-color: #0f3460;
}

.slot-btn.slot-full {
    background: #eee;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.no-slots {
    color: #888;
    text-align: center;
    padding: 20px 0;
}

/* ── Checkbox ─────────────────────────────────────────── */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Button ───────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background: #0f3460;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover { background: #16213e; }

.btn-primary:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ── Success ──────────────────────────────────────────── */
#step-success {
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.record-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.record-info strong {
    color: #0f3460;
    font-size: 1.2rem;
}

/* ── Error Toast ──────────────────────────────────────── */
.error-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 90vw;
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 480px) {
    .container { padding: 16px 12px; }
    .header h1 { font-size: 1.3rem; }
    .card { padding: 18px; }
    .slots-grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); }
}
