:root {
  --sme-primary: #0d5f6f;
  --sme-primary-deep: #0a4a57;
  --sme-secondary: #d4a373;
  --sme-surface: rgba(255, 255, 255, 0.88);
  --sme-surface-strong: #ffffff;
  --sme-panel: #f7fbfc;
  --sme-border: rgba(13, 95, 111, 0.14);
  --sme-border-strong: rgba(13, 95, 111, 0.24);
  --sme-text: #173840;
  --sme-muted: #5f7680;
  --sme-shadow: 0 24px 60px rgba(8, 40, 47, 0.12);
}

* {
  --tblr-primary: var(--sme-primary);
  --tblr-border-color: var(--sme-border);
}

body.sme-register-page {
  color: var(--sme-text);
  background:
    radial-gradient(circle at top left, rgba(13, 95, 111, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(212, 163, 115, 0.15), transparent 30%),
    linear-gradient(180deg, #f6fafb 0%, #edf4f6 100%);
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

body.sme-register-page h1,
body.sme-register-page h2,
body.sme-register-page h3,
body.sme-register-page h4,
body.sme-register-page h5,
body.sme-register-page h6 {
  letter-spacing: -0.03em;
  font-weight: 700;
}

.sme-register-shell {
  position: relative;
  flex: 1 0 auto;
  overflow: hidden;
}

.sme-register-shell::before,
.sme-register-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.5;
}

.sme-register-shell::before {
  top: 6rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(13, 95, 111, 0.12);
}

.sme-register-shell::after {
  right: -7rem;
  bottom: 8rem;
  width: 16rem;
  height: 16rem;
  background: rgba(212, 163, 115, 0.12);
}

.sme-register-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  background: rgba(246, 250, 251, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13, 95, 111, 0.08);
}

.sme-register-topbar > .container-fluid,
.sme-register-main > .container-fluid {
  width: min(1240px, calc(100vw - 1.5rem));
  margin: 0 auto;
}

.sme-register-topbar > .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sme-register-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sme-register-brand__mark {
  width: 2.875rem;
  height: 2.875rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--sme-primary) 0%, var(--sme-primary-deep) 100%);
  box-shadow: 0 12px 28px rgba(13, 95, 111, 0.2);
}

.sme-register-brand__title {
  font-size: 1.2rem;
  line-height: 1.05;
  font-weight: 800;
}

.sme-register-brand__subtitle {
  color: var(--sme-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.1rem;
}

.sme-register-topbar__link {
  border-color: var(--sme-border-strong);
  color: var(--sme-primary);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.sme-register-main {
  padding: 2rem 0 2.5rem;
}

.sme-register-hero,
.sme-register-card {
  position: relative;
  border: 1px solid var(--sme-border);
  box-shadow: var(--sme-shadow);
  overflow: hidden;
}

.sme-register-hero {
  min-height: 100%;
  border-radius: 1.5rem;
  padding: 2rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.5), transparent 36%),
    linear-gradient(160deg, rgba(13, 95, 111, 0.98) 0%, rgba(10, 74, 87, 0.96) 100%);
  color: #eaf6f8;
}

.sme-register-hero::before {
  content: "";
  position: absolute;
  inset: auto -1rem -2rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: rgba(212, 163, 115, 0.16);
  filter: blur(4px);
}

.sme-register-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sme-register-hero h1 {
  margin: 1.2rem 0 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.03;
  color: #fff;
}

.sme-register-hero p {
  margin: 1rem 0 0;
  color: rgba(234, 246, 248, 0.9);
  line-height: 1.65;
  font-size: 0.98rem;
}

.sme-register-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.sme-register-stat {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.sme-register-stat__value {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.sme-register-stat__label {
  margin-top: 0.35rem;
  color: rgba(234, 246, 248, 0.78);
  font-size: 0.76rem;
  line-height: 1.25;
}

.sme-register-callout,
.sme-register-privacy {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sme-register-callout__title,
.sme-register-privacy__title {
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
}

.sme-register-callout__list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: rgba(234, 246, 248, 0.92);
  line-height: 1.55;
}

.sme-register-privacy p {
  margin: 0.6rem 0 0;
  color: rgba(234, 246, 248, 0.86);
  line-height: 1.6;
}

.sme-register-card {
  border-radius: 1.5rem;
  background: var(--sme-surface);
  backdrop-filter: blur(18px);
}

.sme-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.6rem 1.25rem;
  background:
    linear-gradient(135deg, rgba(13, 95, 111, 0.98), rgba(10, 74, 87, 0.98)),
    var(--sme-primary);
  color: #fff;
}

.sme-card-header__eyebrow {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sme-card-header__title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

.sme-card-header__subtitle {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
  max-width: 42rem;
}

.sme-card-header__badge {
  flex: 0 0 auto;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.sme-progress-section {
  padding: 1.25rem 1.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(13, 95, 111, 0.08);
}

.sme-progress-bar {
  width: 100%;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(13, 95, 111, 0.08);
  overflow: hidden;
}

.sme-progress-fill {
  width: 33.33%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sme-primary) 0%, var(--sme-secondary) 100%);
  transition: width 0.35s ease;
}

.step-indicator {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.step-indicator .step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 95, 111, 0.08);
  color: var(--sme-muted);
  transition: all 0.2s ease;
}

.step-indicator .step.done {
  color: var(--sme-primary);
  border-color: rgba(13, 95, 111, 0.18);
}

.step-indicator .step.active {
  color: var(--sme-primary);
  border-color: rgba(13, 95, 111, 0.34);
  box-shadow: 0 8px 24px rgba(13, 95, 111, 0.08);
}

.step-badge {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(13, 95, 111, 0.08);
  color: var(--sme-primary);
  font-size: 0.88rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step-indicator .step.active .step-badge {
  background: var(--sme-primary);
  color: #fff;
}

.step-indicator .step.done .step-badge {
  background: rgba(76, 175, 80, 0.14);
  color: #2f8d3a;
}

.step-indicator .step > span:last-child {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.sme-form-body {
  padding: 1.6rem;
}

.wizard-step {
  display: none;
  animation: smeFadeUp 0.35s ease;
}

.wizard-step.active {
  display: block;
}

.wizard-step__intro {
  margin-bottom: 1.1rem;
}

.wizard-step__intro h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--sme-text);
}

.wizard-step__intro p {
  margin: 0.35rem 0 0;
  color: var(--sme-muted);
  line-height: 1.55;
}

.wizard-step .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.form-label {
  font-weight: 700;
  color: var(--sme-text);
  margin-bottom: 0.45rem;
}

.form-label.required::after {
  content: " *";
  color: #d04545;
  font-weight: 800;
}

.form-control,
.form-select,
.input-group-text {
  border-color: var(--sme-border-strong);
}

.form-control,
.form-select {
  min-height: 3rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--sme-text);
  transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sme-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 95, 111, 0.1);
}

.form-control::placeholder {
  color: #8aa0a7;
}

.form-select {
  appearance: auto;
}

.input-group {
  flex-wrap: nowrap;
}

.input-group .input-group-text {
  background: rgba(13, 95, 111, 0.04);
  color: var(--sme-muted);
  border-radius: 0.95rem 0 0 0.95rem;
}

.input-group .form-control {
  border-radius: 0 0.95rem 0.95rem 0;
}

.form-hint {
  margin-top: 0.4rem;
  color: var(--sme-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.form-control.is-invalid,
.form-select.is-invalid,
.input-group .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: none;
}

.invalid-feedback {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.sme-consent-box,
.captcha-box {
  padding: 1.2rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(13, 95, 111, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(10, 40, 47, 0.04);
}

.sme-consent-box__title,
.captcha-box__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--sme-primary);
  font-weight: 800;
  font-size: 0.98rem;
}

.sme-consent-box p {
  margin: 0.85rem 0 0;
  color: var(--sme-muted);
  line-height: 1.65;
}

.sme-consent-box__list {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--sme-text);
  line-height: 1.6;
}

.sme-consent-check {
  margin-top: 1rem;
}

.sme-consent-check .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
}

.captcha-box {
  margin-top: 1rem;
}

.captcha-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.captcha-img {
  display: block;
  max-width: 100%;
  height: 58px;
  padding: 0.25rem 0.45rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid var(--sme-border-strong);
}

.sme-captcha-input {
  max-width: 18rem;
}

.btn {
  border-radius: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.btn-primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--sme-primary) 0%, var(--sme-primary-deep) 100%);
  box-shadow: 0 14px 24px rgba(13, 95, 111, 0.18);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(13, 95, 111, 0.22);
}

.btn-outline-secondary {
  border: 1px solid rgba(13, 95, 111, 0.2);
  color: var(--sme-primary);
  background: rgba(255, 255, 255, 0.92);
}

.btn-outline-secondary:hover {
  color: var(--sme-primary-deep);
  border-color: rgba(13, 95, 111, 0.34);
  background: rgba(13, 95, 111, 0.04);
}

.btn-sm {
  min-height: 2.35rem;
}

.sme-button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(13, 95, 111, 0.1);
}

.sme-button-row--end {
  justify-content: flex-end;
}

.sme-button-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 10rem;
}

.sme-button-row__primary {
  min-width: 13rem;
}

.sme-footer-text {
  margin-top: 1.2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(13, 95, 111, 0.08);
  color: var(--sme-muted);
  text-align: center;
}

.sme-footer-text a {
  color: var(--sme-primary);
  font-weight: 700;
  text-decoration: none;
}

.sme-footer-text a:hover {
  text-decoration: underline;
}

@keyframes smeFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .sme-register-main {
    padding-top: 1.25rem;
  }

  .sme-register-hero {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .sme-register-topbar > .container-fluid,
  .sme-register-main > .container-fluid {
    width: calc(100vw - 1rem);
  }

  .sme-register-topbar > .container-fluid {
    padding-right: 0;
    padding-left: 0;
  }

  .sme-register-topbar__link {
    padding-inline: 0.9rem;
    white-space: nowrap;
  }

  .sme-register-hero,
  .sme-register-card {
    border-radius: 1.1rem;
  }

  .sme-register-hero {
    padding: 1.35rem;
  }

  .sme-register-hero__stats {
    grid-template-columns: 1fr;
  }

  .sme-card-header,
  .sme-progress-section,
  .sme-form-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sme-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sme-card-header__badge {
    align-self: flex-start;
  }

  .step-indicator {
    grid-template-columns: 1fr;
  }

  .step-indicator .step {
    padding: 0.8rem 0.85rem;
  }

  .sme-button-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .sme-button-row .btn,
  .sme-button-row__primary {
    width: 100%;
    min-width: 0;
  }

  .sme-captcha-input {
    max-width: none;
  }
}
