/* scoped reset to avoid theme collisions */
.sxm-enroll-wrap,
.sxm-enroll-wrap * { box-sizing: border-box; }

.sxm-enroll-wrap input,
.sxm-enroll-wrap select,
.sxm-enroll-wrap textarea,
.sxm-enroll-wrap button {
  font: inherit;
}

/* container */
.sxm-enroll-wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 6px 12px 18px;
}

.sxm-success {
  background: linear-gradient(135deg, #edfdf4 0%, #f7fffb 100%);
  border: 1px solid #b8ebcb;
  color: #166534;
  padding: 18px 20px;
  border-radius: 18px;
  margin: 12px 0 24px;
  line-height: 1.6;
  box-shadow: 0 10px 28px rgba(22, 101, 52, 0.08);
}

/* form shell */
.sxm-form {
  background: transparent;
}

/* sections */
.sxm-section {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 22px;
  padding: 28px;
  margin: 0 0 22px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
  position: relative;
  overflow: hidden;
}

.sxm-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #f3904f 0%, #f9b24b 38%, #7cc576 68%, #43b9e8 100%);
}

.sxm-section h3 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: #25364a;
  text-align: left !important;
}

.sxm-note {
  margin: 0 0 18px;
  color: #6b7a90;
  font-size: 14px;
  line-height: 1.55;
  text-align: left !important;
}

/* grid */
.sxm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 768px) {
  .sxm-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sxm-section {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .sxm-section h3 {
    font-size: 21px;
  }
}

/* fields */
.sxm-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: stretch;
  text-align: left !important;
}

.sxm-field > span,
.sxm-field .sxm-label,
.sxm-field .sxm-subtitle {
  display: block;
  width: 100%;
  text-align: left !important;
}

.sxm-field span {
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
  color: #334155;
  font-size: 14px;
}

.sxm-field input[type="text"],
.sxm-field input[type="tel"],
.sxm-field input[type="email"],
.sxm-field input[type="date"],
.sxm-field textarea,
.sxm-field select {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-height: 50px;
  border: 1px solid #d8e1ea;
  border-radius: 14px;
  padding: 13px 15px;
  background: #fff;
  color: #25364a;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sxm-field input::placeholder,
.sxm-field textarea::placeholder {
  color: #98a3b3;
}

/* iOS/Android date/select appearance improvements */
.sxm-field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}

.sxm-field select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #7b8798 50%),
    linear-gradient(135deg, #7b8798 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.sxm-field textarea {
  resize: vertical;
  min-height: 108px;
}

.sxm-field input:focus,
.sxm-field textarea:focus,
.sxm-field select:focus {
  border-color: #43b9e8;
  box-shadow: 0 0 0 4px rgba(67, 185, 232, 0.14);
}

.sxm-help {
  color: #7b8798;
  font-size: 12px;
  margin-top: 6px;
  text-align: left !important;
}

/* utilities */
.sxm-col-2 { grid-column: span 2; }
@media (max-width:768px) { .sxm-col-2 { grid-column: span 1; } }

.sxm-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding-top: 10px;
}

.sxm-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #f3904f;
}

.sxm-checkbox span {
  font-weight: 500;
  margin: 0;
}

.sxm-subtitle {
  font-weight: 700;
  color: #25364a;
  font-size: 16px;
}

.sxm-divider {
  grid-column: span 2;
  margin: 6px 0 0;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
}

@media (max-width:768px) { .sxm-divider { grid-column: span 1; } }

.sxm-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 4px;
}

.sxm-options label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  color: #334155;
  font-size: 14px;
}

.sxm-options input[type="checkbox"] {
  accent-color: #43b9e8;
}

/* buttons */
.sxm-btn,
.sxm-btn-light {
  border-radius: 14px;
  padding: 13px 20px;
  cursor: pointer;
  border: 0;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.sxm-btn {
  background: linear-gradient(135deg, #43b9e8 0%, #26a8de 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(38, 168, 222, 0.22);
}

.sxm-btn:hover,
.sxm-btn:focus {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.sxm-btn-light {
  background: #eef8fd;
  color: #1a6d93;
  margin-top: 12px;
  border: 1px solid #d7ecf7;
}

.sxm-btn-light:hover,
.sxm-btn-light:focus {
  background: #e6f4fb;
  transform: translateY(-1px);
}

.sxm-actions {
  text-align: right;
  margin-top: 16px;
}

/* errors */
.sxm-error {
  color: #b00020;
  font-size: 12px;
  margin-top: 6px;
}

.sxm-field.invalid input,
.sxm-field.invalid select,
.sxm-field.invalid textarea {
  border-color: #ef9a9a;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}
