:root {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17171c;
    background: #f3f3f7;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }

.shell {
    width: min(100%, 680px);
    margin: 0 auto;
    padding: 24px 16px 32px;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 4px 22px;
}

.eyebrow {
    margin: 0 0 6px;
    color: #7357e8;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 { margin: 0; font-size: 30px; line-height: 1.15; }
h2 { margin: 0 0 20px; font-size: 20px; }
.subtitle { margin: 8px 0 0; color: #6b6b76; }
.badge {
    flex: none;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e9e4ff;
    color: #5638c8;
    font-size: 12px;
    font-weight: 700;
}
.card {
    margin-bottom: 16px;
    padding: 22px;
    border: 1px solid #e7e7ed;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 30px rgb(35 25 70 / 5%);
}
.field { margin-bottom: 18px; }
.field label, .label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 650; }
.field small { display: block; min-height: 16px; margin-top: 6px; color: #73737f; }
.optional { color: #8a8a94; font-weight: 400; }
input, select, textarea {
    width: 100%;
    border: 1px solid #d9d9e2;
    border-radius: 12px;
    background: #fff;
    color: #17171c;
    padding: 12px 13px;
    outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #7357e8; box-shadow: 0 0 0 3px #7357e81a; }
textarea { resize: vertical; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone-row { display: flex; gap: 8px; }
.phone-row input { min-width: 0; }
.secondary {
    flex: none;
    border: 1px solid #d9d9e2;
    border-radius: 12px;
    background: #fff;
    padding: 0 14px;
}
.primary {
    width: 100%;
    margin-top: 18px;
    padding: 14px 18px;
    border: 0;
    border-radius: 14px;
    background: #7357e8;
    color: white;
    font-weight: 750;
}
.consent { display: flex; align-items: flex-start; gap: 10px; color: #555561; font-size: 13px; line-height: 1.4; }
.consent input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: #7357e8; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; min-height: 38px; }
.slot { padding: 10px 6px; border: 1px solid #dcd6fa; border-radius: 10px; background: #f8f6ff; color: #5139ad; }
.slot.selected { background: #7357e8; color: #fff; }
.muted { color: #85858f; font-size: 14px; }
.message { margin-bottom: 16px; padding: 13px 15px; border-radius: 12px; font-size: 14px; }
.message.error { background: #fff0f0; color: #a32525; }
.message.success { background: #eaf8ef; color: #1c6d37; }
.hidden { display: none !important; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.text-button { border: 0; background: transparent; color: #6446da; padding: 2px; }
.appointment { padding: 15px 0; border-top: 1px solid #ececf1; }
.appointment:first-child { border-top: 0; padding-top: 0; }
.appointment:last-child { padding-bottom: 0; }
.appointment-title { font-weight: 750; }
.appointment-meta { margin: 5px 0 10px; color: #6f6f79; font-size: 14px; }
.cancel { border: 0; background: transparent; color: #b02b37; padding: 0; font-size: 14px; }
.footer { text-align: center; color: #85858f; font-size: 12px; line-height: 1.5; }

@media (max-width: 480px) {
    .shell { padding: 16px 12px 24px; }
    .hero { display: block; }
    .badge { display: inline-block; margin-top: 12px; }
    .card { padding: 18px; border-radius: 18px; }
    .grid-two { grid-template-columns: 1fr; gap: 0; }
}
