/* ─────────────────────────────────────────────────────────────────────────────
   demo-registration.css — Standalone demo registration page
   ───────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:         #076476;
  --primary-dark:    #054e5c;
  --primary-deep:    #004b59;
  --text-heading:    #1a1c1c;
  --text-body:       #3f484b;
  --text-secondary:  #555f6f;
  --text-muted:      #6f797c;
  --text-light:      #94a3b8;
  --white:           #ffffff;
  --bg-section:      #f5f7f8;
  --accent-light:    #97def3;
  --border-input:    #bfc8cc;
  --border-nav:      #f3f4f6;
  --error:           #dc2626;
  --error-bg:        #fef2f2;
  --error-border:    #fecaca;
  --success-text:    #065f46;
  --success-bg:      #ecfdf5;
  --success-border:  #a7f3d0;
  --font-display:    'Manrope', sans-serif;
  --font-body:       'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--primary-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── UTILITIES ──────────────────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border-nav);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 36px;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  list-style: none;
  flex-direction: column;
  padding: 8px 32px 16px;
  border-bottom: 1px solid var(--border-nav);
  background: var(--white);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 0;
  display: block;
  border-bottom: 1px solid var(--border-nav);
}

.nav-mobile li:last-child a { border-bottom: none; }
.nav-mobile a:hover { color: var(--primary); }

/* ─── REGISTRATION SECTION ───────────────────────────────────────────────── */

.reg-section {
  background: var(--primary-deep);
  padding: 64px 0 80px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: flex-start;
}

.reg-section .container {
  width: 100%;
}

/* ─── REGISTRATION CARD ──────────────────────────────────────────────────── */

.reg-card {
  background: var(--white);
  border-radius: 20px;
  padding: 56px 56px 64px;
  max-width: 768px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.reg-card-header {
  text-align: center;
  margin-bottom: 40px;
}

.reg-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}

.reg-card-sub {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 10px;
}

.reg-card-instruction {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── FORM LAYOUT ────────────────────────────────────────────────────────── */

.reg-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ─── LABELS ─────────────────────────────────────────────────────────────── */

.field-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
}

.field-required {
  color: var(--error);
  margin-left: 2px;
}

/* ─── INPUTS ─────────────────────────────────────────────────────────────── */

.field-input,
.field-select,
.field-textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-heading);
  background: var(--white);
  border: 1.5px solid var(--border-input);
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--text-light);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(7, 100, 118, 0.12);
}

.field-input[aria-invalid="true"],
.field-select[aria-invalid="true"],
.field-textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field-textarea {
  min-height: 106px;
  resize: vertical;
  line-height: 1.6;
}

/* ─── SELECT ─────────────────────────────────────────────────────────────── */

.field-select-wrap {
  position: relative;
}

.field-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  pointer-events: none;
}

.field-select {
  cursor: pointer;
  padding-right: 36px;
}

.field-select option { color: var(--text-heading); }

/* ─── FIELD ERROR ────────────────────────────────────────────────────────── */

.field-error {
  font-size: 0.8rem;
  color: var(--error);
  font-weight: 500;
  min-height: 1.2em;
}

/* ─── CHECKBOXES ─────────────────────────────────────────────────────────── */

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-body);
  user-select: none;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-input);
  border-radius: 3px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

.checkbox-input:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.checkbox-input:focus-visible + .checkbox-custom {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.checkbox-label:hover .checkbox-custom {
  border-color: var(--primary);
}

.checkbox-text {
  line-height: 1.4;
}

/* ─── FORM STATUS ────────────────────────────────────────────────────────── */

.form-status {
  font-size: 0.9rem;
  padding: 14px 16px;
  border-radius: 8px;
  line-height: 1.5;
}

.form-status--success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.form-status--error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error-border);
}

/* ─── SUBMIT BUTTON ───────────────────────────────────────────────────────── */

.btn-submit {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 4px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner { display: flex; flex-direction: column; gap: 48px; }

.footer-top {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.footer-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
  display: block;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-deep);
  background: var(--white);
  padding: 10px 20px;
  border-radius: 7px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
  width: fit-content;
}

.btn-primary:hover { background: var(--accent-light); }

.footer-links {
  display: flex;
  gap: 64px;
  flex: 1;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover { color: var(--white); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .reg-section { padding: 40px 0 64px; }
  .reg-card { padding: 40px 32px 48px; border-radius: 16px; }
  .reg-card-title { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .reg-card { padding: 32px 20px 40px; border-radius: 12px; }
  .reg-card-title { font-size: 1.35rem; }
}
