body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
}

.app {
  max-width: 640px;
  margin: 32px auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.booking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.booking-header h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.lang-switcher {
  flex-shrink: 0;
}

.lang-switcher select {
  max-width: 11.5rem;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}

.app h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.subtitle {
  margin: 0 0 16px;
  color: #334155;
}

.status,
.slot-status {
  margin: 0 0 16px;
  color: #334155;
}

.error {
  margin: 0 0 16px;
  color: #b91c1c;
}

.warning {
  margin: 0 0 16px;
  color: #9a3412;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-weight: 600;
}

input[type="number"],
input[type="date"],
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.slot-section h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.time-button {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}

.time-button[aria-pressed="true"] {
  border-color: #0f172a;
  background: #e2e8f0;
}

.captcha-wrap {
  min-height: 88px;
}

.captcha-label {
  margin: 0 0 8px;
  font-weight: 600;
}

.captcha-status {
  margin: 0 0 8px;
  color: #334155;
  font-size: 0.9rem;
}

cap-widget {
  display: block;
  width: 100%;
  max-width: 100%;
}

.confirmation {
  display: grid;
  gap: 12px;
  padding: 8px 0 4px;
  text-align: left;
}

.confirmation[hidden] {
  display: none;
}

.confirmation-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 1.25rem;
  font-weight: 700;
}

.confirmation.confirmation-pending .confirmation-badge {
  background: #fef3c7;
  color: #92400e;
}

.confirmation h2 {
  margin: 0;
  font-size: 1.5rem;
}

.confirmation-lead {
  margin: 0;
  color: #334155;
  line-height: 1.45;
}

.confirmation-details {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.confirmation-details div {
  display: grid;
  gap: 4px;
}

.confirmation-details dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.confirmation-details dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.confirmation-code-row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.confirmation-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.copy-code {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.confirmation-hint {
  margin: 4px 0 0;
  color: #475569;
  line-height: 1.45;
}

.actions {
  margin-top: 8px;
}

button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 600;
}

#continue-button {
  background: #0f172a;
  color: #ffffff;
}

#continue-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}
