body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #d4f4f4, #eafcfc);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.main-card {
  background: #fff;
  padding: 10px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 650px;
  width: 100%;
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-image {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

#registerBtn {
  height: 45px;
  font-size: 16px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 77, 255, 0.3);
  transition: 0.3s;
}

#registerBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 77, 255, 0.45);
}

label {
  display: unset !important;
}

h1.mb-2 {
  background: #C9F1F2;
  /* Change to any color */
  color: #000;
  /* Text color */
  padding: 10px 15px;
  /* Space around text */
  border-radius: 6px;
  /* Rounded corners */
  text-align: center;
  /* Center the text */
  font-size: 22px;
  /* Adjust size */
  margin-bottom: 15px;
  /* Spacing below */
}

h2 {
  color: #000;
  /* Text color */
  text-align: center;
  /* Center the text */
  font-size: 12px;
  /* Adjust size */
  margin-top: 8px;
  /* Spacing below */
  float: right;
}

/* Apply Poppins everywhere */
body,
form,
input,
label,
h1,
h2,
button {
  font-family: 'Poppins', sans-serif;
}

/* Main form wrapper */
#registerForm {
  margin: 10px;
  padding: 10px;
}

/* H1 Responsive Styling */


/* Smaller h1 on mobile */
@media (max-width: 480px) {
  #registerForm h1 {
    font-size: 18px;
    padding: 8px 10px;
  }
}

/* Form controls */
.form-control {
  height: 45px;
  font-size: 15px;
}

/* Product grid - fix spacing */
.product-group .col-6 {
  padding-left: 5px;
  padding-right: 5px;
}

/* Fix label + subheading alignment */
.form-label h2 {
  font-size: 13px;
  font-weight: 400;
  margin-top: 6px;
  color: #666;
}

/* Make checkboxes bigger for mobile */
.form-check-input {
  width: 18px;
  height: 18px;
}

/* Mobile: Make product items full width */
@media (max-width: 480px) {
  .product-group .col-6 {
    width: 100%;
  }
}


:root {
  --bg: #ffffff;
  --card: #fbfbfb;
  --accent: #0d6efd;
  /* bootstrap primary-like */
  --muted: #6c757d;
  --border: #e6e9ee;
  --radius: 12px;
  --space: 14px;
}

/* Form container */
#registerForm {
  max-width: var(--max-width);
  margin: 18px auto;
  padding: 18px;
  background: linear-gradient(180deg, var(--card), var(--bg));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(12, 15, 20, 0.04);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #111827;
}

/* Optional affiliate title */
#registerForm>h1 {
  font-size: 20px;
  margin: 0 0 8px 0;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Field group */
.mb-2 {
  margin-bottom: 12px;
}

label.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

/* helper small heading (you had a <h2> inside the label) — style it gently */
label.form-label h2 {
  display: inline-block;
  margin: 4px 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  font-weight: 500;
  vertical-align: middle;
}

/* Inputs */
.form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  outline: none;
  transition: box-shadow .15s ease, border-color .12s ease;
  background: white;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: rgba(13, 110, 253, .9);
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.08);
}

.form-control[required] {
  /* subtle indicator for required fields */
  box-shadow: inset 0 -2px 0 0 rgba(255, 235, 59, 0.00);
}

/* Product group (two-column grid) */
.product-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* gap: 10px; */
  align-items: start;
}

/* Form-check wrapper */
.form-check {
  /* display:flex; */
  align-items: center;
  gap: 10px;
  /* padding: 8px; */
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color .12s ease, background .12s ease;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.01), transparent);
}

.form-check:hover {
  border-color: rgba(16, 24, 40, 0.04);
}

/* Custom checkbox style (modern) */
.form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  border: 1.6px solid var(--border);
  display: inline-block;
  position: relative;
  flex: 0 0 20px;
  background: white;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, transform .06s ease;
}

.form-check-input:focus {
  outline: none;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, .9);
}

.form-check-input:checked {
  background: linear-gradient(180deg, rgba(13, 110, 253, 1), rgba(7, 82, 204, 1));
  border-color: rgba(13, 110, 253, 1);
}

/* tick mark using pseudo-element */
.form-check-input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Label text */
.form-check-label {
  font-size: 14px;
  line-height: 1;
  color: #111827;
  cursor: pointer;
  user-select: none;
}

/* Agreement checkbox row */
.form-check.mb-4 {
  margin-top: 4px;
  gap: 12px;
  padding: 0px 0px 0px 37px;
}

.form-check.mb-4 .form-check-input {
  border-radius: 4px;
}

/* Submit button */
.btn {
  border: 0;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: transform .06s ease, box-shadow .12s ease;
  width: 100%;
  background: linear-gradient(180deg, var(--accent), #0b5ed7);
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.14);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus {
  box-shadow: 0 8px 22px rgba(13, 110, 253, 0.18);
  outline: none;
}

/* Hidden fields kept as-is — no visible change */

/* Responsive tweaks */
@media (max-width: 480px) {
  :root {
    --max-width: 96vw;
  }

  .product-group {
    grid-template-columns: 1fr;
  }

  #registerForm {
    padding: 14px;
    border-radius: 12px;
  }

  label.form-label h2 {
    display: block;
    margin-top: 6px;
  }
}

/* Small accessible helper (error/required) */
.required-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}



.messageContainer {
  max-width: var(--max-width);
  padding: 130px;
  background: linear-gradient(180deg, var(--card), var(--bg));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(12, 15, 20, 0.04);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #111827;
  display: none;
}

.errorMessageContainer {
  max-width: var(--max-width);
  padding: 20px 10px 10px 10px;
  background: linear-gradient(180deg, var(--card), var(--bg));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(12, 15, 20, 0.04);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: red;
  display: none;
  font-size: 12px;
}

.errorMessageContainer_li {
  list-style: disclosure-closed;
}