/* ═══════════════════════════════════════════════════════════════════
   registration/css/reg.css
   Styles for index.php (multi-step registration form)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset & base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; background: #f0f2f4; color: #333; line-height: 1.6; }

/* ── Forum header ──────────────────────────────────────────────── */
.forum-header { background: linear-gradient(135deg, #1a3f6e 0%, #2b6cb0 40%, #5b8fd4 70%, #8eb8e8 100%); padding: 22px 28px 18px; position: relative; overflow: hidden; }
.forum-header::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='80'%3E%3Cellipse cx='200' cy='90' rx='220' ry='55' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") center bottom/cover no-repeat; pointer-events: none; }
.forum-title { font-size: 2rem; font-weight: 700; color: #fff; text-shadow: 1px 2px 8px rgba(0,0,0,.45); letter-spacing: .02em; position: relative; z-index: 1; }
.forum-title sup { font-size: .9rem; vertical-align: super; }

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb { background: #2b6cb0; padding: 8px 16px; display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #cde; }
.breadcrumb a { color: #cde; text-decoration: none; }
.breadcrumb .sep { color: rgba(255,255,255,.4); }
.breadcrumb .current { color: #fff; }

/* ── Stepper ───────────────────────────────────────────────────── */
.stepper { background: #fff; border-bottom: 1px solid #dde3ea; padding: 0 24px; display: flex; }
.step-item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 8px; font-size: .88rem; font-weight: 600; color: #aaa; border-bottom: 3px solid transparent; transition: all .3s; text-transform: uppercase; letter-spacing: .04em; }
.step-item.active { color: #2b6cb0; border-bottom-color: #2b6cb0; }
.step-item.done   { color: #4a9e5c; border-bottom-color: #4a9e5c; }
.step-num { width: 24px; height: 24px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: .75rem; flex-shrink: 0; }
.step-item.done .step-num { background: #4a9e5c; border-color: #4a9e5c; color: #fff; }

/* ── Layout ────────────────────────────────────────────────────── */
.page-wrap { max-width: 960px; margin: 0 auto; padding: 0 16px 60px; }
.slide { display: none; }
.slide.active { display: block; animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Section box ───────────────────────────────────────────────── */
.section-box { background: #fff; border: 1px solid #d6dce4; border-radius: 4px; margin-top: 22px; overflow: hidden; }
.section-head { background: #e8ecf0; border-bottom: 1px solid #d0d7e0; padding: 11px 18px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #555; }
.section-body { padding: 24px 50px; }

/* ── ToS content (rendered from .htm fragments) ────────────────── */
.tos-content .tos-h-plain { font-size: 1.05rem; font-weight: 700; color: #1a3f6e; margin: 22px 0 8px; padding-bottom: 5px; border-bottom: 1px solid #e5eaf0; }
.tos-content .tos-h-plain:first-child { margin-top: 0; }
.tos-content .tos-h-num  { font-size: 1.05rem; font-weight: 700; color: #2b6cb0; 25px 0 10px -25px; padding-bottom: 5px; border-bottom: 1px solid #e5eaf0; margin-left: -25px; }
.tos-content p  { font-size: 1rem; color: #444; margin-bottom: 10px; line-height: 1.45; }
.tos-content ul { margin: 6px 0 12px 22px; color: #444; }
.tos-content li { font-size: 1rem;  margin-bottom: 4px;  line-height: 1.4;}
.tos-content a  { color: #2b6cb0; }
.tos-footer { font-size: .85rem; color: #999; margin-top: 20px; padding-top: 12px; border-top: 1px solid #eee; }

/* ── Privacy policy collapsible ────────────────────────────────── */
.pp-toggle { font-size: .9rem; color: #2b6cb0; cursor: pointer; text-decoration: underline; margin-top: 14px; display: inline-block; user-select: none; }
.pp-panel { display: none; margin-top: 12px; padding: 18px 20px; background: #fafbfc; border: 1px solid #dde3ea; border-radius: 4px; max-height: 320px; overflow-y: auto; }
.pp-panel.open { display: block; animation: fadeIn .3s ease; }

/* ── Agree panel ───────────────────────────────────────────────── */
.agree-panel { background: #f4f7fb; border: 1px solid #c8d6e8; border-radius: 4px; padding: 16px 20px; display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; }
.agree-panel.has-error { background: #fff5f5; border-color: #e53e3e; }
.agree-panel input[type=checkbox] { appearance: none; width: 20px; height: 20px; border: 2px solid #2b6cb0; border-radius: 3px; flex-shrink: 0; margin-top: 2px; cursor: pointer; position: relative; transition: background .2s; background: #fff; }
.agree-panel input[type=checkbox]:checked { background: #2b6cb0; }
.agree-panel input[type=checkbox]:checked::after { content: '✓'; position: absolute; top: -2px; left: 2px; font-size: .85rem; color: #fff; font-weight: 700; }
.agree-panel label { font-size: 1rem; color: #333; cursor: pointer; line-height: 1.6; }
.agree-panel label strong { color: #2b6cb0; }

/* ── Error banner ──────────────────────────────────────────────── */
.error-banner { display: none; background: #fff5f5; border: 1px solid #feb2b2; border-left: 4px solid #e53e3e; border-radius: 3px; padding: 12px 16px; font-size: .95rem; color: #c53030; margin-top: 16px; }
.error-banner.visible { display: flex; align-items: center; gap: 10px; }
.error-icon { font-size: 1.2rem; flex-shrink: 0; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.shake { animation: shake .3s ease; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 28px; font-family: inherit; font-size: .95rem; font-weight: 600; border-radius: 3px; border: none; cursor: pointer; transition: all .2s; }
.btn-primary { background: #2b6cb0; color: #fff; }
.btn-primary:hover  { background: #2558a0; }
.btn-primary:active { background: #1e4a8a; transform: scale(.99); }
.btn-disabled { opacity: .55; pointer-events: none; }

/* ── Form fields ───────────────────────────────────────────────── */
.field-wrap  { margin-bottom: 22px; }
.field-label { display: block; font-size: .92rem; font-weight: 700; color: #2b6cb0; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.field-label .opt { font-weight: 400; color: #999; text-transform: none; letter-spacing: 0; font-size: .88em; }
.field-sub  { display: block; font-size: .9rem; color: #777; margin-bottom: 7px; font-style: italic; }
.field-note { font-size: .88rem; color: #888; margin-top: 6px; font-style: italic; line-height: 1.5; }
.field-hint { font-size: .88rem; margin-top: 5px; min-height: 20px; color: #888; display: flex; align-items: center; gap: 5px; }
.field-hint.ok    { color: #2f855a; }
.field-hint.warn  { color: #c05a00; }
.field-hint.error { color: #c53030; }
.hint-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid #c8d0da; border-top-color: #2b6cb0; border-radius: 50%; animation: spin .6s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

textarea, input[type=text], input[type=email], input[type=password], select {
  width: 100%; border: 1px solid #c8d0da; border-radius: 3px; padding: 10px 13px;
  font-family: inherit; font-size: 1rem; color: #333; background: #fdfdfd;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea:focus, input:focus, select:focus { border-color: #2b6cb0; box-shadow: 0 0 0 3px rgba(43,108,176,.12); background: #fff; }
textarea.field-error, input.field-error, select.field-error { border-color: #e53e3e !important; background: #fff5f5; box-shadow: none; }
input.field-ok, select.field-ok { border-color: #4a9e5c; }
textarea { resize: vertical; min-height: 80px; }

/* ── Honeypot ──────────────────────────────────────────────────── */
.hp-field { opacity: 0; position: absolute; top: -9999px; left: -9999px; height: 0; pointer-events: none; }

/* ── Survey ────────────────────────────────────────────────────── */
.survey-intro { padding: 0 0 6px; }
.survey-intro h2 { font-size: 1.4rem; font-weight: 700; color: #1a3f6e; margin-bottom: 10px; }
.survey-intro p  { font-size: 1rem; color: #555; line-height: 1.7; }
.thankyou-line { font-size: 1rem; color: #555; font-style: italic; text-align: center; padding: 10px 0 4px; border-top: 1px solid #e5eaf0; margin-top: 10px; }

/* ── Account ───────────────────────────────────────────────────── */
.account-intro { font-size: 1rem; color: #555; line-height: 1.7; margin-bottom: 22px; }

/* ── Password strength ─────────────────────────────────────────── */
.pw-meter { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.pw-bar   { height: 5px; flex: 1; border-radius: 3px; background: #dde3ea; transition: background .25s; }
.pw-strength-label { font-size: .82rem; font-weight: 600; min-width: 56px; text-align: right; color: #aaa; transition: color .25s; }
.pw-req-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pw-req { font-size: .82rem; padding: 2px 10px; border-radius: 20px; border: 1px solid #c8d0da; color: #999; background: #f5f7fa; transition: all .2s; }
.pw-req.met { border-color: #48bb78; color: #276749; background: #f0fff4; }

/* ── Timezone selector ─────────────────────────────────────────── */
.tz-wrap { position: relative; }
.tz-select-styled { appearance: none; -webkit-appearance: none; width: 100%; border: 1px solid #c8d0da; border-radius: 3px; padding: 10px 44px 10px 13px; font-family: inherit; font-size: .95rem; color: #333; background: #fdfdfd; outline: none; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.tz-select-styled:focus { border-color: #2b6cb0; box-shadow: 0 0 0 3px rgba(43,108,176,.12); background: #fff; }
.tz-select-styled.field-error { border-color: #e53e3e !important; background: #fff5f5; }
.tz-chevron { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #777; pointer-events: none; font-size: .75rem; }

/* Timezone live clock card */
.tz-clock-card { margin-top: 10px; background: #f4f7fb; border: 1px solid #c8d6e8; border-radius: 4px; padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
.tz-clock-card.hidden { display: none; }
.tz-clock-time   { font-size: 1.55rem; font-weight: 700; color: #1a3f6e; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 84px; }
div.tz-clock-info { padding-left: 25px; }
.tz-clock-offset { font-size: .88rem; font-weight: 700; color: #2b6cb0; }
.tz-clock-cities { font-size: .82rem; color: #777; margin-top: 2px; line-height: 1.4; }

/* ── Success ───────────────────────────────────────────────────── */
.success-wrap { text-align: center; padding: 30px 16px 10px; }
.success-check { width: 72px; height: 72px; border-radius: 50%; background: #f0fff4; border: 2px solid #48bb78; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; color: #2f855a; margin-bottom: 22px; animation: pop .5s ease both; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.success-wrap h2 { font-size: 1.6rem; color: #1a3f6e; margin-bottom: 16px; }
.success-wrap p  { font-size: 1rem; color: #555; line-height: 1.8; max-width: 520px; margin: 0 auto 10px; }
.success-wrap .note { font-size: .9rem; color: #888; font-style: italic; margin-top: 14px; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .forum-title  { font-size: 1.5rem; }
  .section-body { padding: 18px 16px; }
  .step-label   { font-size: .7rem; }
  .tz-clock-card { flex-direction: column; gap: 8px; }
  div.tz-clock-info { padding-left: 0; }
}

/* ── Survey choice groups (radio / checkbox) ─────────────────────────────── */
.choice-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fafbfc;
  transition: border-color .15s;
}
.choice-group.field-error {
  border-color: #fc8181;
  background: #fff5f5;
}
.choice-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: #333;
  cursor: pointer;
  line-height: 1.5;
  padding: 3px 0;
}
.choice-label input[type=radio],
.choice-label input[type=checkbox] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #2b6cb0;
}
.choice-label:hover { color: #1a3f6e; }

/* "Other…" free-text textarea, revealed when other is selected */
.other-textarea {
  width: 100%;
  margin-top: 2px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.5;
  border: 1px solid #90cdf4;
  border-radius: 4px;
  background: #ebf8ff;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.other-textarea:focus { border-color: #2b6cb0; background: #fff; }

/* ── Form-closed card ────────────────────────────────────────────── */
.closed-card {
  background: #fff;
  border: 1px solid #d6dce4;
  border-radius: 6px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  margin: 60px auto;
}
.closed-card .card-icon { font-size: 2.8rem; margin-bottom: 20px; display: block; }
.closed-card h1 { font-size: 1.45rem; font-weight: 700; color: #1a3f6e; margin-bottom: 12px; }
.closed-card p  { font-size: .97rem; color: #555; line-height: 1.7; margin-bottom: 28px; }
.closed-card .btn {
  display: inline-block;
  background: #2b6cb0; color: #fff; text-decoration: none;
  padding: 12px 32px; border-radius: 4px;
  font-size: .97rem; font-weight: 700; transition: background .15s;
}
.closed-card .btn:hover { background: #2558a0; }

/* ── Maintenance screen ──────────────────────────────────────────── */
.maint-wrap {
  max-width: 560px;
  margin: 60px auto 40px;
  padding: 0 20px;
  text-align: center;
}
.maint-icon  { font-size: 3.5rem; margin-bottom: 16px; display: block; }
.maint-title { font-size: 1.55rem; font-weight: 700; color: #1a3f6e; margin: 0 0 14px; }
.maint-message { font-size: .97rem; color: #4a5568; line-height: 1.75; margin-bottom: 28px; }
.maint-until { font-size: .88rem; color: #718096; margin-bottom: 10px; }
.maint-until strong { color: #2d3748; }
.countdown-wrap {
  display: inline-flex; gap: 12px; justify-content: center;
  margin: 18px auto 28px; flex-wrap: wrap;
}
.cd-block {
  background: #f0f4f8; border: 1px solid #c8d0da; border-radius: 6px;
  padding: 14px 18px; min-width: 72px; text-align: center;
}
.cd-num   { font-size: 1.7rem; font-weight: 700; color: #2b6cb0; line-height: 1; }
.cd-label { font-size: .7rem; color: #718096; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.cd-soon  {
  font-size: 1rem; font-weight: 600; color: #2f855a;
  background: #f0fff4; border: 1px solid #9ae6b4; border-radius: 4px;
  padding: 12px 20px; margin: 18px 0 28px; display: inline-block;
}
.maint-forum-link { display: inline-block; margin-top: 8px; font-size: .85rem; color: #718096; text-decoration: none; }
.maint-forum-link:hover { color: #2b6cb0; }

blockquote {
    font-size: .95rem;
    font-style: italic;
    color: #535a63;
    padding-bottom: 10px;
}