/* Randevu Portalı — renkler HSK İsviçre temasından gelir (lacivert, beyaz, kırmızı); tema yoksa varsayılanlar. */
.rp {
	--r-navy: var(--hsk-navy, #0b2545);
	--r-navy2: var(--hsk-navy-2, #163a6b);
	--r-red: var(--hsk-red, #c8102e);
	--r-ink: var(--hsk-ink, #1b2433);
	--r-muted: var(--hsk-muted, #5b6879);
	--r-line: var(--hsk-line, #e4dfd6);
	--r-cream: var(--hsk-cream, #faf7f1);
	--r-radius: var(--hsk-radius, 14px);
	max-width: 860px;
	margin: 0 auto 2em;
	color: var(--r-ink);
	overflow-wrap: anywhere;
	hyphens: auto;
}
.rp *, .rp *::before, .rp *::after { box-sizing: border-box; }
.rp [hidden] { display: none !important; }
.rp :focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

.rp-head { margin: 0 0 14px; padding: 18px 20px; border-radius: var(--r-radius); background: var(--r-navy); color: #fff; border-bottom: 4px solid var(--r-red); }
.rp-kicker { margin: 0 0 2px; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .9; }
.rp .rp-title { margin: 0; color: #fff; font-size: 1.45rem; line-height: 1.25; }
.rp-notice { margin: 0 0 12px; padding: 12px 14px; border-left: 4px solid var(--r-red); border-radius: 8px; background: #fdeced; color: #5c0716; font-weight: 600; }
.rp-notice-small { font-size: .92rem; }
.rp-hours { margin: 0 0 18px; color: var(--r-muted); font-size: .95rem; }
.rp-help { margin: 6px 0 0; color: var(--r-muted); font-size: .88rem; }
.rp-warn { margin: 0 0 12px; padding: 12px 14px; border-left: 4px solid #c98a00; border-radius: 8px; background: #fff6dc; }
.rp-ok { margin: 0 0 12px; padding: 12px 14px; border-left: 4px solid #1e7d3a; border-radius: 8px; background: #e9f6ec; }

.rp-errors { margin: 0 0 16px; padding: 14px 16px; border: 2px solid var(--r-red); border-radius: var(--r-radius); background: #fff; }
.rp-errors p { margin: 0 0 6px; font-weight: 700; color: var(--r-red); }
.rp-errors ul { margin: 0; padding-left: 20px; }
.rp-errors a { color: var(--r-ink); }
.rp-error { margin: 6px 0 0; color: var(--r-red); font-size: .9rem; font-weight: 600; }

.rp-step { margin: 0 0 16px; padding: 16px; border: 1px solid var(--r-line); border-radius: var(--r-radius); background: #fff; min-width: 0; }
.rp-step legend { padding: 0 6px; color: var(--r-navy); font-weight: 700; font-size: 1.05rem; }
.rp-step-no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 4px; border-radius: 50%; background: var(--r-navy); color: #fff; font-size: .85rem; }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
.rp-field { margin: 0 0 14px; min-width: 0; }
.rp-field:last-child { margin-bottom: 0; }
.rp label, .rp-label { display: block; margin: 0 0 6px; color: var(--r-navy); font-size: .92rem; font-weight: 650; }
.rp-req { color: var(--r-red); }
.rp input[type=text], .rp input[type=email], .rp input[type=tel], .rp select, .rp textarea {
	display: block; width: 100%; max-width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #b8c1cf; border-radius: 10px; background: #fff; color: var(--r-ink); font: inherit; font-size: 16px; line-height: 1.35; -webkit-appearance: none; appearance: none;
}
.rp select { padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b2545' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center; }
.rp select:disabled { background-color: #f3f4f6; color: var(--r-muted); }
.rp textarea { min-height: 110px; resize: vertical; }
.rp [aria-invalid=true] { border-color: var(--r-red); background-color: #fff7f7; }
.rp-choices { display: grid; gap: 8px; }
.rp-choice, .rp-check { display: flex !important; align-items: flex-start; gap: 10px; margin: 0 !important; padding: 12px 14px; border: 1.5px solid var(--r-line); border-radius: 12px; color: var(--r-ink) !important; font-weight: 500 !important; cursor: pointer; }
.rp-choice:has(input:checked) { border-color: var(--r-navy); background: #eef2f8; }
.rp-check { border: 0; padding: 4px 0; }
.rp-choice input, .rp-check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--r-navy); }
.rp-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Takvim */
.rp-cal { max-width: 420px; }
.rp-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.rp-cal-title { margin: 0; color: var(--r-navy); font-weight: 700; font-size: 1.05rem; text-align: center; }
.rp-cal-nav { width: 44px; height: 44px; border: 1px solid var(--r-line); border-radius: 50%; background: #fff; color: var(--r-navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.rp-cal-nav:disabled { opacity: .35; cursor: default; }
.rp-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.rp-cal-dow { padding: 4px 0; color: var(--r-muted); font-size: .75rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.rp-day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 2px; border: 1.5px solid transparent; border-radius: 10px; background: transparent; color: #a5adb8; font: inherit; line-height: 1.1; cursor: default; }
.rp-day.is-open { border-color: #c9d3e3; background: #eef2f8; color: var(--r-navy); font-weight: 700; cursor: pointer; }
.rp-day.is-open:hover { border-color: var(--r-navy2); }
.rp-day.is-full { background: #f6f2ea; color: #9b8f7c; text-decoration: line-through; }
.rp-day.is-selected { border-color: var(--r-navy); background: var(--r-navy); color: #fff; }
.rp-day-n { font-size: 1rem; font-variant-numeric: tabular-nums; }
.rp-day-s { margin-top: 2px; font-size: .68rem; font-weight: 600; opacity: .85; }
.rp-slots { margin-top: 14px; }
.rp-slots-title { margin: 0 0 8px; color: var(--r-navy); font-weight: 700; }
.rp-slot-group { margin: 0 0 12px; }
.rp-slot-head { margin: 0 0 6px; color: var(--r-muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rp-slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.rp-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 6px 8px; border: 1.5px solid #c9d3e3; border-radius: 12px; background: #fff; color: var(--r-navy); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.rp-slot:hover { border-color: var(--r-navy2); }
.rp-slot.is-selected { border-color: var(--r-navy); background: var(--r-navy); color: #fff; box-shadow: 0 0 0 3px rgba(11, 37, 69, .15); }
.rp-slot:disabled { border-style: dashed; background: #f7f7f8; color: #9aa2ad; cursor: not-allowed; }
.rp-slot-s { margin-top: 2px; font-size: .72rem; font-weight: 600; }
.rp-picked { hyphens: manual; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #e9f6ec; color: #164d26; font-weight: 700; }

.rp-privacy { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--r-line); border-radius: 10px; background: var(--r-cream); font-size: .92rem; }
.rp-privacy summary { min-height: 32px; color: var(--r-navy); font-weight: 700; cursor: pointer; }
.rp-privacy p { margin: 8px 0 0; }

.rp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6em 1.3em; border: 1.5px solid var(--r-navy); border-radius: 999px; background: var(--r-navy); color: #fff; font: inherit; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; }
.rp-btn:hover { background: var(--r-navy2); color: #fff; }
.rp-btn-ghost { background: #fff; color: var(--r-navy); }
.rp-btn-ghost:hover { background: var(--r-cream); color: var(--r-navy); }
.rp-btn-danger { border-color: var(--r-red); background: var(--r-red); }
.rp-btn-danger:hover { background: #9e0c24; }
.rp-submit { width: 100%; }
.rp-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.rp-success { margin: 0 0 12px; padding: 18px; border: 2px solid #1e7d3a; border-radius: var(--r-radius); background: #fff; }
.rp-success-title { margin: 0 0 10px; color: #164d26; font-size: 1.2rem; font-weight: 800; }
.rp-summary { display: grid; gap: 8px; margin: 0 0 14px; }
.rp-summary div { display: grid; grid-template-columns: minmax(0, 1fr); }
.rp-summary dt { color: var(--r-muted); font-size: .85rem; font-weight: 600; }
.rp-summary dd { margin: 0; font-weight: 700; }
.rp-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; letter-spacing: .04em; color: var(--r-navy); }

@media (min-width: 640px) {
	.rp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rp-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rp-submit { width: auto; }
	.rp-summary div { grid-template-columns: 160px minmax(0, 1fr); }
	.rp-step { padding: 20px 22px; }
}
@media (min-width: 900px) {
	.rp-cal-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .rp * { scroll-behavior: auto !important; } }
