:root {
  --xsreg-pink: #ff0077;
  --xsreg-dark: #1e2b2f;
  --xsreg-text: #3d3d3d;
  --xsreg-muted: #6f7477;
  --xsreg-border: #e9e9e9;
  --xsreg-soft: #fff4f9;
  --xsreg-white: #ffffff;
}

.xsreg-form {
  --xsreg-radius: 14px;
}

.xsreg-form .xsreg-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.xsreg-form .xsreg-native-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.xsreg-choice-row {
  margin-bottom: 24px !important;
}

.xsreg-choice-holder {
  width: 100%;
  padding: 22px;
  border: 1px solid var(--xsreg-border);
  border-radius: 18px;
  background: var(--xsreg-white);
  box-sizing: border-box;
}

.xsreg-choice-heading {
  position: relative;
  margin: 0 0 16px;
  padding-top: 10px;
  color: var(--xsreg-dark);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.xsreg-choice-heading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  border-radius: 99px;
  background: var(--xsreg-pink);
}

.xsreg-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

[name="xs_private_type"] + .xsreg-choice-holder .xsreg-choice-grid,
.xsreg-choice-row:has([name="xs_private_type"]) .xsreg-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xsreg-choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 116px;
  padding: 17px 18px;
  border: 1px solid var(--xsreg-border);
  border-radius: 14px;
  background: #fff;
  color: var(--xsreg-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.xsreg-choice-card:hover {
  border-color: rgba(255, 0, 119, .45);
  transform: translateY(-1px);
}

.xsreg-choice-card:focus-visible {
  outline: 3px solid rgba(255, 0, 119, .18);
  outline-offset: 2px;
}

.xsreg-choice-card.is-selected {
  border-color: var(--xsreg-pink);
  background: var(--xsreg-soft);
  box-shadow: 0 0 0 1px var(--xsreg-pink);
}

.xsreg-choice-card__title {
  color: var(--xsreg-dark);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.xsreg-choice-card.is-selected .xsreg-choice-card__title {
  color: var(--xsreg-pink);
}

.xsreg-choice-card__text {
  display: block;
  margin-top: 6px;
  color: var(--xsreg-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}

.xsreg-form .xsreg-required-marker {
  color: var(--xsreg-pink);
  font-weight: 700;
}

.xsreg-form input:focus,
.xsreg-form select:focus {
  border-color: var(--xsreg-pink) !important;
  box-shadow: 0 0 0 2px rgba(255, 0, 119, .10) !important;
}

.xsreg-success {
  position: relative;
  margin: 0 0 28px;
  padding: 24px 26px 24px 28px;
  border: 1px solid var(--xsreg-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(30, 43, 47, .06);
  overflow: hidden;
}

.xsreg-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--xsreg-pink);
}

.xsreg-success__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.xsreg-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--xsreg-soft);
  color: var(--xsreg-pink);
  font-size: 20px;
  font-weight: 800;
}

.xsreg-success__title {
  margin: 0;
  color: var(--xsreg-dark);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.xsreg-success p {
  margin: 0 0 10px;
  color: var(--xsreg-text);
  line-height: 1.65;
}

.xsreg-success p:last-child {
  margin-bottom: 0;
}

.xsreg-success a {
  color: var(--xsreg-pink);
  font-weight: 700;
  text-decoration: none;
}

.xsreg-success a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .xsreg-choice-holder {
    padding: 18px;
    border-radius: 14px;
  }

  .xsreg-choice-grid,
  [name="xs_private_type"] + .xsreg-choice-holder .xsreg-choice-grid,
  .xsreg-choice-row:has([name="xs_private_type"]) .xsreg-choice-grid {
    grid-template-columns: 1fr;
  }

  .xsreg-choice-card {
    min-height: 0;
  }

  .xsreg-success {
    padding: 21px 20px;
    border-radius: 14px;
  }
}

/* Let the card selectors use the full form width even in themes that use label/input columns. */
.xsreg-form .xsreg-choice-row > div,
.xsreg-form .xsreg-choice-row > [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}
