.signup-modal-open {
  overflow: hidden;
}

.signup-section {
  position: fixed !important;
  z-index: 300;
  inset: 0 !important;
  display: none !important;
  width: 100% !important;
  max-width: none !important;
  padding: 34px !important;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(29, 17, 43, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.signup-section.is-open {
  display: flex !important;
}

.signup-panel {
  position: relative;
  width: min(1060px, 100%);
  max-width: 100%;
  min-width: 0;
  max-height: calc(100dvh - 68px);
  margin: auto;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 44px 120px rgba(27, 12, 48, 0.34);
}

.signup-modal-close {
  position: fixed;
  z-index: 4;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rodo-card {
  max-width: 100%;
  min-width: 0;
  margin: 18px 0;
  padding: 15px;
  border: 1px solid #e4d9f4;
  border-radius: 15px;
  background: #faf8fe;
}

.rodo-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.rodo-card-head > span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: #7c3aed;
  font-size: 13px;
  font-weight: 900;
}

.rodo-card-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.rodo-card-head strong {
  font-size: 11px;
}

.rodo-card-head small {
  color: #776d82;
  font-size: 8px;
}

.rodo-card details {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #e8e0f1;
}

.rodo-card summary {
  color: #6b2dcc;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.rodo-content {
  padding-top: 7px;
}

.rodo-content p {
  margin: 8px 0;
  color: #655b70;
  font-size: 8px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.rodo-content p strong {
  color: #2c2434;
}

@media (max-width: 800px) {
  .signup-section {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh;
    height: 100dvh;
    padding: 0 !important;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f7f3ff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .signup-section.is-open {
    display: block !important;
  }

  .signup-panel {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    min-height: 100dvh;
    max-height: none;
    margin: 0 auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .signup-modal-close {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: 12px;
    width: 40px;
    height: 40px;
    border-color: rgba(124, 58, 237, 0.16);
    color: #5b2aa8;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(58, 29, 94, 0.14);
  }

  .signup-panel-copy {
    display: none;
  }

  .signup-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 70px 20px 34px !important;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .form-row,
  .role-options,
  .field,
  .field input,
  .field select,
  .role-fieldset,
  .role-option,
  .consent,
  .submit-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .field > span,
  .role-fieldset legend {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .field input,
  .field select {
    height: 56px;
    font-size: 16px;
  }

  .field > small,
  .group-error {
    font-size: 12px;
  }

  .role-explanation strong {
    font-size: 14px;
  }

  .role-explanation p {
    font-size: 12px;
  }

  .role-option strong {
    font-size: 15px;
  }

  .role-option small {
    font-size: 12px;
  }

  .rodo-card-head strong {
    font-size: 14px;
  }

  .rodo-card-head small {
    font-size: 11px;
    line-height: 1.45;
  }

  .rodo-card summary {
    font-size: 12px;
  }

  .rodo-content p {
    font-size: 11px;
  }

  .consent span {
    font-size: 13px;
  }

  .submit-button {
    height: 58px;
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .signup-form {
    padding-inline: 14px !important;
  }
}

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