:root {
    --bg: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --border: #e5e5e5;
    --border-light: #d1d5db;
    --text: #111111;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent: #111111;
    --accent-hover: #333333;
    --accent-text: #ffffff;
    --error: #ef4444;
    --success: #22c55e;
    --radius: 10px;
    --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #111; background: #fff; line-height: 1.6;
    min-height: 100vh; -webkit-font-smoothing: antialiased;
}

.container { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.page-section { padding: 48px 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; }

h1 {
    font-size: 34px; font-weight: 800; line-height: 1.15; margin-bottom: 16px;
    text-align: center; letter-spacing: -0.5px; color: #111;
}
h2 {
    font-size: 28px; font-weight: 700; line-height: 1.25; margin-bottom: 12px;
    text-align: center; letter-spacing: -0.3px; color: #111;
}
h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: #111; }

.subtitle {
    font-size: 16px; color: #666; text-align: center;
    max-width: 480px; margin: 0 auto 32px; line-height: 1.6;
}
.fine-print { font-size: 13px; color: #999; text-align: center; margin-top: 16px; }

.btn {
    display: inline-block; padding: 14px 32px; font-size: 16px; font-weight: 600;
    font-family: inherit; border: none; border-radius: var(--radius);
    cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: #111; color: #fff; }
.btn-primary:hover { background: #333; }
.btn-primary:disabled { background: #e5e5e5; color: #999; cursor: not-allowed; }
.btn-secondary { background: transparent; color: #666; border: 1.5px solid #e5e5e5; }
.btn-secondary:hover { border-color: #111; color: #111; }

/* ---- Form ---- */
.form-section { max-width: 520px; margin: 0 auto; }
.form-section-label {
    font-size: 13px; font-weight: 600; color: #111;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px;
}
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block; font-size: 15px; font-weight: 500; color: #333; margin-bottom: 8px;
}
.field-row { display: flex; gap: 12px; }
.field-row .form-group { flex: 1; }

input[type="text"], input[type="tel"], input[type="email"], select {
    width: 100%; padding: 14px 16px; font-size: 16px;
    border: 1.5px solid #e5e5e5; border-radius: var(--radius);
    outline: none; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff; color: #111;
    -webkit-appearance: none; appearance: none;
}
input::placeholder { color: #999; }
input:focus, select:focus {
    border-color: #111; box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
input.error, select.error { border-color: var(--error); }

.input-error { display: none; color: var(--error); font-size: 13px; margin-top: 6px; }
.input-error.show { display: block; }

/* ---- Scroll List ---- */
.scroll-list {
    height: 280px; overflow-y: auto; border: 1.5px solid #e5e5e5;
    border-radius: var(--radius); background: #fff; scroll-behavior: smooth;
}
.scroll-list::-webkit-scrollbar { width: 6px; }
.scroll-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.scroll-search {
    position: sticky; top: 0; z-index: 1;
    padding: 12px 16px; background: #fff; border-bottom: 1px solid #e5e5e5;
}
.scroll-search input {
    width: 100%; padding: 10px 14px; font-size: 14px;
    border: 1.5px solid #e5e5e5; border-radius: 8px;
    outline: none; font-family: inherit; background: #f9f9f9; color: #111;
}
.scroll-search input:focus { border-color: #111; background: #fff; }
.scroll-search input::placeholder { color: #ccc; }
.scroll-item {
    padding: 12px 20px; font-size: 15px; color: #666;
    cursor: pointer; transition: all 0.15s; border-bottom: 1px solid #f5f5f5;
}
.scroll-item:hover { background: #f9f9f9; color: #111; }
.scroll-item.selected {
    background: #f5f5f5; color: #111; font-weight: 600; border-left: 3px solid #111;
}

/* ---- Options ---- */
.option-group { display: flex; flex-wrap: wrap; gap: 10px; }
.option-group .option {
    flex: 1 1 auto; min-width: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 12px 16px; border: 1.5px solid #e5e5e5; border-radius: var(--radius);
    background: #fff; font-size: 14px; font-family: inherit;
    color: #333; cursor: pointer; transition: all 0.15s; text-align: center; white-space: nowrap;
}
.option-group .option:hover { border-color: #999; background: #f9f9f9; color: #111; }
.option-group .option.selected { border-color: #111; background: #f5f5f5; color: #111; font-weight: 500; }
.option-group.inline { flex-wrap: nowrap; }
.option-group.inline .option { flex: 1; }
.option-group.wrap .option { min-width: calc(50% - 5px); }
.submit-row { text-align: center; margin-top: 32px; }

/* ---- Calendar ---- */
.calendar-embed { max-width: 640px; margin: 0 auto; }
.calendar-loading, .calendar-empty {
    padding: 48px 24px; text-align: center; color: #999; font-size: 15px;
}
.calendar-loading { color: #111; }
.mock-calendar {
    border: 1.5px solid #e5e5e5; border-radius: var(--radius-lg);
    overflow: hidden; background: #fff;
}
.mock-calendar-header { padding: 24px; border-bottom: 1px solid #e5e5e5; text-align: center; }
.mock-calendar-header h3 { margin-bottom: 4px; }
.mock-calendar-header p { font-size: 14px; color: #666; }
.excluded-note { font-size: 12px; color: #999; font-style: italic; margin-top: 4px; }
.mock-calendar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.mock-day { padding: 20px; border-right: 1px solid #e5e5e5; text-align: center; }
.mock-day:last-child { border-right: none; }
.mock-day-label { font-size: 13px; font-weight: 600; margin-bottom: 12px; color: #666; }
.mock-slot {
    display: block; width: 100%; padding: 10px; margin-bottom: 8px;
    border: 1px solid #e5e5e5; border-radius: 8px;
    background: #f9f9f9; color: #333;
    font-size: 14px; font-family: inherit; cursor: pointer; transition: all 0.15s;
}
.mock-slot:hover { border-color: #111; background: #fff; color: #111; }
.mock-slot.booked { background: #111; color: #fff; border-color: #111; font-weight: 600; }
.mock-slot:disabled { opacity: 0.5; cursor: wait; }
.mock-confirm {
    padding: 24px; text-align: center; border-top: 1px solid #e5e5e5; background: #f5f5f5;
}
.mock-confirm p { margin-bottom: 8px; color: #333; }
.mock-time { font-size: 14px; color: #999; }
.mock-confirm .btn { margin-top: 16px; }

/* ---- Confirmation ---- */
.confirmation-check {
    width: 64px; height: 64px; border-radius: 50%;
    background: #f0fdf4; border: 2px solid #22c55e;
    color: var(--success); font-size: 28px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.booking-summary {
    border: 1px solid #e5e5e5; border-radius: var(--radius);
    padding: 20px; margin: 32px auto; max-width: 400px; background: #fff;
}
.booking-detail { display: flex; justify-content: space-between; padding: 8px 0; }
.booking-detail + .booking-detail { border-top: 1px solid #e5e5e5; }
.booking-label { font-size: 14px; color: #999; }
.booking-value { font-size: 14px; font-weight: 600; color: #111; }

.second-opinion-offer { text-align: center; margin-top: 40px; padding-top: 32px; border-top: 1px solid #e5e5e5; }
.second-opinion-offer h3 { margin-bottom: 8px; }
.second-opinion-offer p { font-size: 15px; color: #666; max-width: 420px; margin: 0 auto 24px; }
.offer-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Rejected ---- */
.rejected-cta {
    margin-top: 40px; padding: 24px;
    border: 1px solid #e5e5e5; border-radius: var(--radius-lg); background: #f9f9f9;
}
.recommendation-list { list-style: none; padding: 0; }
.recommendation-list li {
    padding: 10px 0; padding-left: 24px; position: relative;
    font-size: 15px; color: #666; line-height: 1.5;
}
.recommendation-list li + li { border-top: 1px solid #e5e5e5; }
.recommendation-list li::before { content: "\2192"; position: absolute; left: 0; color: #111; }

/* ---- Expect ---- */
.expect-section { margin-top: 40px; text-align: left; }
.expect-section h3 { text-align: center; margin-bottom: 24px; }
.expect-list { max-width: 480px; margin: 0 auto; }
.expect-item { display: flex; gap: 16px; padding: 16px 0; }
.expect-item + .expect-item { border-top: 1px solid #e5e5e5; }
.expect-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: #f5f5f5; border: 1px solid #e5e5e5; color: #111;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.expect-content strong { display: block; margin-bottom: 2px; color: #111; }
.expect-content p { font-size: 14px; color: #666; }

/* ---- Score Badge ---- */
.result-intro { text-align: center; margin-bottom: 40px; }
.score-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 80px; height: 80px; border-radius: 50%;
    background: #f5f5f5; border: 2px solid #111; color: #111;
    font-size: 28px; font-weight: 700; margin-bottom: 20px;
}
.score-badge.score-low { border-color: #e5e5e5; color: #999; background: #f9f9f9; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    .mock-calendar-grid { grid-template-columns: 1fr; }
    .mock-day { border-right: none; border-bottom: 1px solid #e5e5e5; }
    .mock-day:last-child { border-bottom: none; }
    .offer-buttons { flex-direction: column; }
    .offer-buttons .btn { width: 100%; }
    .option-group.wrap .option { min-width: calc(50% - 5px); }
}
