/* MMZ - Trang đặt lịch (khách hàng) - CSS thuần, không CDN */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f3f4f6;
    min-height: 100vh;
    padding: 32px 16px;
    color: #111827;
}

.card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
    border: 1px solid #f3f4f6;
}

/* Header */
.header { background: #047857; color: #fff; padding: 24px; text-align: center; }
.brand {
    display: inline-block; background: #fff; color: #047857;
    font-weight: 900; font-size: 20px; letter-spacing: 1px;
    padding: 8px 14px; border-radius: 12px; margin-bottom: 8px;
}
.brand span { color: #84cc16; }
.header h1 { font-size: 16px; text-transform: uppercase; letter-spacing: .5px; }
.header .location { font-size: 12px; color: #d1fae5; margin-top: 4px; }
.time-chip {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px; background: #a3e635; color: #022c22;
    font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
}

/* Form */
.form { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
label {
    display: block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; color: #374151; margin-bottom: 6px;
}
label .req { color: #ef4444; }

.input-wrap { position: relative; }
.input-wrap .icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #9ca3af; font-size: 14px; pointer-events: none;
}
input, select, textarea {
    width: 100%; border: 1px solid #d1d5db; border-radius: 10px;
    padding: 10px 12px; font-size: 14px; font-family: inherit;
    background: #fff; color: #111827; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input-wrap input { padding-left: 36px; }
input:focus, select:focus, textarea:focus {
    border-color: #047857; box-shadow: 0 0 0 3px rgba(4, 120, 87, .15);
}
textarea { resize: vertical; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Badge slot x/5 */
.slot-badge {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    margin-top: 8px; padding: 8px 12px; border-radius: 10px;
    font-size: 12px; font-weight: 700; border: 1px solid transparent;
}
.slot-badge.hidden { display: none; }
.slot-badge.available { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.slot-badge.full { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.slot-badge .hint { font-weight: 500; opacity: .85; }

/* Ghi chú */
.note {
    background: #eff6ff; border-left: 4px solid #2563eb;
    padding: 10px 12px; border-radius: 6px;
    font-size: 12px; line-height: 1.6; color: #1e3a8a;
}

/* Nút */
.btn {
    width: 100%; background: #047857; color: #fff; border: none;
    font-size: 14px; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase; padding: 14px; border-radius: 12px;
    cursor: pointer; transition: background .15s, transform .05s;
}
.btn:hover { background: #065f46; }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Thông báo */
.msg {
    margin: 0 24px 24px; padding: 14px; border-radius: 12px;
    font-size: 13px; line-height: 1.6; display: none;
}
.msg.show { display: block; }
.msg.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.msg.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.msg strong { display: inline; }

@media (max-width: 420px) {
    body { padding: 16px 8px; }
    .row2 { grid-template-columns: 1fr; }
}
