/* Compact hero registration form (name / phone / role). */

@media (min-width: 960px) {
  .hero--form {
    padding-top: 28px;
    padding-bottom: 40px;
  }
}

.signup-card--hero {
  padding: 16px 18px 14px;
}

.signup-card--hero h2 {
  margin: 0 0 28px;
  font-size: 20px;
  line-height: 1.2;
}

.signup-card--hero .step-label {
  margin-bottom: 6px;
}

.signup-card--hero .form-hint {
  margin: 0 0 0.65rem !important;
  font-size: 0.8rem !important;
  line-height: 1.35;
}

.signup-card--hero .field {
  margin-bottom: 8px;
}

.signup-card--hero .field label {
  margin-bottom: 4px;
  font-size: 11px;
}

.signup-card--hero .field input,
.signup-card--hero .field select,
.signup-card--hero .role-btn,
.signup-card--hero .btn {
  min-height: 42px;
}

.signup-card--hero .consent-field {
  margin-top: 4px;
  margin-bottom: 8px;
}

.signup-card--hero .consent-row {
  font-size: 12px;
  line-height: 1.4;
  gap: 8px;
}

.signup-card--hero .trust-line {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.35;
}

.signup-card--hero .btn-block {
  margin-top: 2px;
}

.field-row {
  display: grid;
  gap: 8px;
}

@media (min-width: 420px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.phone-field {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(153, 144, 119, 0.28);
  border-radius: 12px;
  background: rgba(18, 17, 16, 0.85);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.phone-field:focus-within {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.2);
}

.phone-field__prefix {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(153, 144, 119, 0.22);
  background: transparent;
}

.phone-field__prefix select {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0 28px 0 12px;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(245, 240, 230, 0.9);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.phone-field__prefix::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(245, 240, 230, 0.55);
  transform: translateY(-35%);
  pointer-events: none;
}

.phone-field__national {
  flex: 1 1 auto;
  min-width: 0;
}

.phone-field__national input {
  width: 100%;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  min-height: 42px;
}

.field:has(.field-error:not([hidden])) .phone-field {
  border-color: rgba(220, 80, 80, 0.65);
}
