.registration-page > h1,
.registration-page > h2 {
  text-align: center;
}

.registration-page > p,
.registration-page > h2 {
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.registration-page-description {
  line-height: 1.5;
  margin: 0 auto 18px;
  max-width: 720px;
  text-align: center;
}

.registration-page-description p {
  margin: 0;
  text-align: center;
}

.registration-shell {
  max-width: 820px;
  margin: 20px auto 50px;
}

.registration-card {
  background: #fff;
  border: 1px solid #e2ddd9;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(51, 51, 51, 0.08);
  padding: 28px;
}

.registration-intro {
  color: #555;
  line-height: 1.55;
  margin: 0 auto 22px;
  max-width: 650px;
  text-align: center;
}

.registration-intro .fa {
  color: #894a1f;
  margin-right: 4px;
}

.reg-progress {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.reg-progress li {
  color: #666;
  flex: 1;
  font-size: 1.3rem;
  line-height: 1.35;
  position: relative;
  text-align: center;
}

.reg-progress li::before {
  align-items: center;
  background: #eee9e5;
  border-radius: 50%;
  color: #555;
  content: attr(data-step-number);
  display: flex;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  margin: 0 auto 8px;
  width: 34px;
}

.reg-progress li::after {
  background: #eee9e5;
  content: "";
  height: 2px;
  left: calc(50% + 21px);
  position: absolute;
  top: 16px;
  width: calc(100% - 42px);
}

.reg-progress li:last-child::after {
  display: none;
}

.reg-progress li.is-active,
.reg-progress li.is-complete {
  color: #333;
  font-weight: 600;
}

.reg-progress li.is-active::before,
.reg-progress li.is-complete::before,
.reg-progress li.is-complete::after {
  background: #894a1f;
  color: #fff;
}

.reg-step {
  display: none;
}

.reg-step.is-active {
  display: block;
}

.reg-step h2 {
  font-size: 2.2rem;
  margin: 0 0 6px;
  text-align: center;
  text-transform: none;
}

.reg-step-description {
  color: #666;
  line-height: 1.5;
  margin: 0 auto 22px;
  max-width: 650px;
  text-align: center;
}

.registration-card label {
  display: block;
  font-weight: 600;
  text-align: left;
}

.registration-card .form-control {
  min-height: 44px;
}

.reg-required {
  color: #a12c20;
}

.reg-optional {
  color: #666;
  font-size: 1.2rem;
  font-weight: 400;
}

.reg-password-wrap {
  position: relative;
}

.reg-password-wrap .form-control {
  padding-right: 105px;
}

.reg-password-toggle {
  background: transparent;
  border: 0;
  color: #694127;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 10px 12px;
  position: absolute;
  right: 2px;
  top: 2px;
}

.reg-password-toggle:focus {
  outline: 2px solid #894a1f;
  outline-offset: -2px;
}

.reg-password-requirements {
  color: #666;
  font-size: 1.25rem;
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
}

.reg-password-requirements li {
  display: inline-block;
  margin: 0 12px 3px 0;
}

.reg-password-requirements .is-valid {
  color: #2d6f36;
}

.reg-password-requirements .is-invalid {
  color: #a94442;
}

.reg-requirement-icon {
  display: inline-block;
  font-weight: 700;
  text-align: center;
  width: 13px;
}

.reg-email-suggestion {
  background: #fff8e5;
  border-left: 3px solid #d39b22;
  color: #5d4718;
  margin-top: 8px;
  padding: 8px 10px;
}

.reg-email-suggestion-apply {
  background: transparent;
  border: 0;
  color: #70411f;
  font-weight: 700;
  margin-left: 4px;
  padding: 0;
  text-decoration: underline;
}

.reg-email-suggestion-apply:focus {
  outline: 2px solid #894a1f;
  outline-offset: 2px;
}

.registration-card .has-error .form-control,
.registration-card .form-control[aria-invalid="true"] {
  border-color: #a12c20;
}

.registration-card .help-block {
  min-height: 20px;
  text-align: left;
}

.registration-card .server-error,
.registration-card .client-error {
  color: #a12c20;
  display: block;
  font-size: 1.3rem;
  margin-top: 5px;
}

.reg-alert {
  background: #fff4f2;
  border: 1px solid #d8a39d;
  border-radius: 6px;
  color: #79251c;
  margin-bottom: 20px;
  padding: 12px 15px;
}

.reg-actions {
  align-items: center;
  border-top: 1px solid #eee9e5;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 20px;
}

.reg-actions .reg-next,
.reg-actions .reg-submit {
  margin-left: auto;
}

.reg-address-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-bottom: 5px;
}
.reg-address-heading label { margin-bottom: 0; }
.reg-address-actions { margin-left: auto; }
.reg-google-link {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #755333;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: underline;
  cursor: pointer;
}
.reg-google-link:focus-visible { outline: 2px solid #755333; outline-offset: 3px; }
.reg-google-link:disabled { opacity: .6; cursor: wait; }
#reg-google-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  min-height: 32px;
  border: 1px solid #bba994;
  border-radius: 5px;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
}
#reg-google-start:hover:not(:disabled) {
  border-color: #755333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.reg-google-widget gmp-place-autocomplete { display: block; width: 100%; }
.reg-google-widget { width: 100%; min-width: 0; }
.reg-address-heading [hidden],
.reg-google-widget[hidden],
.registration-page #indirizzo[hidden] { display: none !important; }
.reg-google-status { color: #555; font-size: 1.3rem; margin-top: 6px; }
.reg-google-status:empty { display: none; }

.reg-consent label {
  align-items: flex-start;
  display: flex;
  font-weight: 400;
  gap: 10px;
}

.reg-consent input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 5px;
}

.reg-security-note {
  color: #666;
  font-size: 1.25rem;
  margin: 8px 0 0;
  text-align: left;
}

.reg-birth-note {
  color: #555;
  line-height: 1.5;
  text-align: left;
}

.reg-submit-reassurance {
  color: #555;
  font-size: 1.3rem;
  margin: 15px 0 0;
  text-align: center;
}

.reg-submit-reassurance .fa {
  color: #2d6f36;
  margin-right: 4px;
}

.registration-login-card {
  background: #fff;
  border: 1px solid #e2ddd9;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(51, 51, 51, 0.08);
  padding: 22px;
}

.registration-login-header {
  border-bottom: 1px solid #eee9e5;
  margin-bottom: 20px;
  padding-bottom: 16px;
  text-align: center;
}

.registration-login-header h3 {
  color: #694127;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.registration-login-intro {
  color: #666;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.registration-login-form .form-group {
  margin-bottom: 14px;
}

.registration-login-form label {
  color: #333;
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: left;
}

.registration-login-form .form-control {
  background: #fff;
  border-color: #d7d2ce;
  border-radius: 6px;
  box-shadow: none;
  min-height: 44px;
}

.registration-login-form .form-control:focus {
  border-color: #894a1f;
  box-shadow: 0 0 0 2px rgba(137, 74, 31, 0.12);
}

.registration-login-form .help-block {
  font-size: 1.2rem;
  margin: 4px 0 0;
  min-height: 0;
  text-align: left;
}

.registration-login-submit {
  background: #2b2b2b;
  border: 1px solid #2b2b2b;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  min-height: 44px;
  transition: background-color 0.2s, border-color 0.2s;
  width: 100%;
}

.registration-login-submit:hover,
.registration-login-submit:focus {
  background: #111;
  border-color: #111;
  color: #fff;
}

.registration-login-recovery {
  margin-top: 15px;
  text-align: center;
}

.registration-login-recovery #lost2 {
  color: #694127;
  display: inline-block;
  font-size: 1.3rem;
  text-decoration: underline;
}

.registration-sidebar .ekomi {
  margin-top: 28px;
}

.registration-help-card {
  align-items: center;
  background: #f8f7f5;
  border: 1px solid #e2ddd9;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
}

.registration-help-card .fa {
  color: #894a1f;
  flex: 0 0 auto;
  font-size: 2rem;
}

.registration-help-card p {
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

.registration-help-card a {
  color: #694127;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .registration-card {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    box-shadow: none;
    margin-left: -15px;
    margin-right: -15px;
    padding: 22px 15px;
  }

  .reg-progress li {
    font-size: 1.15rem;
  }

  .reg-progress li::before {
    height: 30px;
    width: 30px;
  }

  .reg-progress li::after {
    left: calc(50% + 18px);
    top: 14px;
    width: calc(100% - 36px);
  }

  .reg-actions .btn {
    min-height: 44px;
  }

  .registration-login-card {
    margin-top: 25px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .reg-step {
    scroll-behavior: auto;
  }
}
