.primary-button, .secondary-button, .text-button, .time-button {
  border: 0;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease, background 150ms ease;
}
.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 13px;
  font-weight: 800;
  text-decoration: none;
}
.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--primary), #a23d4c);
  box-shadow: 0 18px 34px -22px rgba(122, 31, 43, 0.95);
}
.primary-button:hover, .primary-button:focus-visible { transform: translateY(-1px); }
.secondary-button { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.text-button {
  min-height: 48px;
  padding: 12px;
  border-radius: 10px;
  color: var(--text-muted);
  background: transparent;
  font-weight: 700;
}
.primary-button:disabled, .secondary-button:disabled, .time-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}
.form-grid { display: grid; gap: 17px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; }
.field label, .field-label { font-size: 0.88rem; font-weight: 800; }
.field input, .field select, .field textarea, .otp-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--text);
  background: white;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input, .field select, .otp-input { min-height: 48px; padding: 11px 13px; }
.field textarea { min-height: 102px; padding: 12px 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .otp-input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(169, 59, 76, 0.12);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-hint, .field-error { margin: 0; font-size: 0.76rem; line-height: 1.45; }
.field-hint { color: var(--text-muted); }
.field-error { color: var(--danger); font-weight: 700; }
.time-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.time-button {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: white;
  font-weight: 700;
}
.time-button:hover, .time-button:focus-visible { border-color: rgba(122, 31, 43, 0.5); background: var(--primary-soft); }
.time-button.is-selected { border-color: var(--primary); color: white; background: var(--primary); }
.summary {
  margin-top: 22px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}
.summary h3 { margin-bottom: 12px; font-size: 1rem; }
.summary-list { display: grid; gap: 9px; margin: 0; }
.summary-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
}
.summary-row dt { color: var(--text-muted); }
.summary-row dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.86rem;
  line-height: 1.5;
}
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.actions { display: grid; gap: 10px; margin-top: 22px; }
.notice { margin: 16px 0 0; padding: 12px 14px; border-radius: 11px; font-size: 0.86rem; line-height: 1.5; }
.notice.error { border: 1px solid rgba(166, 39, 39, 0.26); color: var(--danger); background: var(--danger-soft); }
.notice.success { border: 1px solid rgba(39, 103, 71, 0.24); color: var(--success); background: var(--success-soft); }
.otp-panel { text-align: center; }
.otp-symbol, .success-symbol {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 50%;
  font-size: 1.55rem;
}
.otp-symbol { color: white; background: var(--primary); }
.success-symbol { color: var(--success); background: var(--success-soft); }
.otp-input {
  max-width: 310px;
  margin: 14px auto 7px;
  text-align: center;
  font-size: clamp(1.5rem, 8vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.34em;
}
.timer, .mock-note { color: var(--text-muted); font-size: 0.78rem; }
.mock-note { margin-top: 14px; text-align: center; }
.confirmation-code {
  margin: 22px 0;
  padding: 20px;
  border-radius: var(--radius-md);
  color: white;
  background: linear-gradient(135deg, var(--primary), #a23d4c);
  text-align: center;
}
.confirmation-code span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.78;
}
.confirmation-code strong { font-family: "Fraunces", Georgia, serif; font-size: 2rem; letter-spacing: 0.04em; }
