  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: "Poppins", system-ui, -apple-system, sans-serif;
    background: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    color: #ccc;
  }

  .card {
    background: #333;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
  }

  .container {
    display: flex;
    flex-direction: column;
  }

  h1 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #fff;
  }

  .section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #666;
    margin: 2rem 0 1.2rem;
  }

  /* Floating label field */
  .field {
    position: relative;
    margin-bottom: 1.6rem;
  }

  .field input,
  .field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    padding: 18px 0 6px;
    font-size: 15px;
    color: #fff;
    outline: none;
    font-family: inherit;
    transition: border-color .2s;
  }

  .field input:focus,
  .field textarea:focus {
    border-bottom-color: #111;
  }

  .field textarea {
    resize: none;
    min-height: 72px;
  }

  .field label {
    position: absolute;
    top: 14px;
    left: 0;
    font-size: 15px;
    color: #aaa;
    pointer-events: none;
    transition: top .18s, font-size .18s, color .18s;
  }

  .field input:focus ~ label,
  .field input:not(:placeholder-shown) ~ label,
  .field textarea:focus ~ label,
  .field textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 11px;
    color: #777;
  }

  /* Referral rows */
  .ref-block {
    /* border-top: .5px solid #111; */
    padding-top: 1rem;
    margin-bottom: 1rem;
  }

  .ref-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 36px;
    gap: 12px;
    align-items: end;
  }

  .ref-row .field { margin-bottom: 0; }

  .remove-btn {
    width: 30px; height: 30px;
    border: none; background: none;
    cursor: pointer;
    color: #aaa;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    transition: background .15s, color .15s;
  }
  .remove-btn:hover { background: #f3f3f3; color: #333; }

  .add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: #888;
    padding: 4px 0;
    font-family: inherit;
    transition: color .15s;
  }
  .add-btn:hover { color: #111; }

  /* Radio groups */
  .radio-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: .8rem;
  }
  .radio-wrap p {
    font-size: 15px;
    flex: 1;
    min-width: 200px;
  }
  .radio-group {
    display: flex;
    gap: 1.2rem;
  }
  .radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    cursor: pointer;
  }
  .radio-group input[type=radio] {
    accent-color: #111;
    width: 16px; height: 16px;
    cursor: pointer;
  }

  .divider {
    height: .5px;
    background: #eee;
    margin: 1.8rem 0;
  }

  /* Submit */
  .submit-btn {
    margin-top: 2.5rem;
    width: 100%;
    padding: 13px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s;
  }
  .submit-btn:hover { opacity: .85; }
  .submit-btn:disabled { opacity: .5; cursor: not-allowed; }

  /* Toast */
  #toast {
    display: none;
    margin-top: 1rem;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
  }
  #toast.success { background: #eaf3de; color: #3b6d11; }
  #toast.error   { background: #fcebeb; color: #a32d2d; }

.select-field select {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #ccc;
  background: transparent;
  padding: 18px 0 6px;
  font-size: 15px;
  color: #ccc;
  outline: none;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s;
}
.select-field select:focus { border-bottom-color: #111; }
.select-field select:disabled { color: #bbb; cursor: not-allowed; }
.select-field select:valid ~ label,
.select-field select:focus ~ label { top: 0; font-size: 11px; color: #777; }

.phone-field {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 18px 0 6px;
  font-size: 15px;
  color: #ccc;
  border-bottom: 1.5px solid #ccc;
  white-space: nowrap;
  flex-shrink: 0;
}
.phone-field input { flex: 1; }
