/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ── Tokens ─────────────────────────────────────── */
:root {
  --bg:      #ffffff;
  --bg2:     #f7f8f9;
  --bg3:     #ecfeff;
  --border:  rgba(0, 0, 0, 0.07);
  --border2: rgba(0, 0, 0, 0.12);
  --text:    #0f0e1a;
  --muted:   #7878a0;
  --muted2:  #b4b4cc;
  --accent:  #06b6d4;
  --accent2: #67e8f9;
  --green:   #16a34a;
  --red:     #dc2626;
}

/* ── Base ───────────────────────────────────────── */
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg2);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ────────────────────────────────────────── */
.nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  line-height: 1;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-k   { color: var(--accent); display: inline-block; }
.nav-logo-ybr { color: var(--text);   display: inline-block; }

.nav-back {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-back:hover { color: var(--text); text-decoration: none; }

/* ── PAGE ───────────────────────────────────────── */
.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 52px 24px 80px;
  flex: 1;
  width: 100%;
}

/* ── PAGE HEADER ────────────────────────────────── */
.page-header { text-align: center; margin-bottom: 36px; }

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid rgba(6, 182, 212, 0.22);
  background: rgba(6, 182, 212, 0.05);
  padding: 5px 14px 5px 10px;
  border-radius: 100px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
}

.page-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
}
.page-title em {
  font-style: normal;
  background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── FORM CARD ──────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ── FIELD ──────────────────────────────────────── */
.field { margin-bottom: 22px; }

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: -0.1px;
}
.field-label .req { color: var(--accent); margin-left: 2px; }

.field-hint {
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ── INPUTS ─────────────────────────────────────── */
.f-input {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border2);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.f-input::placeholder { color: var(--muted2); }
.f-input:focus  { border-color: rgba(6, 182, 212, 0.45); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08); }
.f-input.error  { border-color: rgba(220, 38, 38, 0.4) !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06) !important; }
.f-textarea     { resize: vertical; min-height: 110px; line-height: 1.65; }

/* ── SELECT ─────────────────────────────────────── */
.f-select {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border2);
  color: var(--text);
  padding: 11px 36px 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b4b4cc' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.f-select:focus { border-color: rgba(6, 182, 212, 0.45); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08); }
.f-select.error { border-color: rgba(220, 38, 38, 0.4) !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06) !important; }

/* ── RADIO ──────────────────────────────────────── */
.radio-group { display: flex; flex-direction: column; gap: 8px; }

.radio-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.radio-item:hover    { border-color: rgba(6, 182, 212, 0.3); background: rgba(6, 182, 212, 0.02); }
.radio-item.selected { border-color: rgba(6, 182, 212, 0.45); background: rgba(6, 182, 212, 0.04); }

.radio-item input[type="radio"] {
  accent-color: var(--accent);
  width: 16px; height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.radio-label { font-size: 14px; font-weight: 500; color: var(--text); }

/* ── CHECKBOX ───────────────────────────────────── */
.checkbox-item { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }

.checkbox-item input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
}

.checkbox-label { font-size: 13px; color: var(--muted); line-height: 1.65; }
.checkbox-label a { color: var(--accent); font-weight: 600; text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

/* ── DIVIDER ────────────────────────────────────── */
.form-divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ── ERROR ──────────────────────────────────────── */
.field-error { font-size: 12px; color: var(--red); margin-top: 6px; display: none; font-weight: 500; }
.field-error.show { display: block; }

/* ── SUBMIT ─────────────────────────────────────── */
.submit-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: -0.2px;
  margin-top: 24px;
}
.submit-btn:hover   { opacity: 0.88; }
.submit-btn:active  { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ── SPINNER ────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ─────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 12px;
  color: var(--muted2);
  flex-shrink: 0;
}
.footer a { color: var(--muted2); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 600px) {
  .nav  { padding: 0 16px; }
  .page { padding: 36px 16px 64px; }
  .form-card { padding: 28px 20px; }
}
