/* ================================
   GLOBAL FONT & RESET
================================ */
body {
  font-family: 'Inter', 'Nunito Sans', Arial, sans-serif;
  color: #1e355d;
  line-height: 1.6;
}

/* ================================
   DOWNLOAD PDF BUTTON (TOP BAR)
================================ */
.ndis-form-header {
  display: flex;
  justify-content: flex-end;
  background: linear-gradient(135deg, #2F5AAE, #63A8FF);
  padding: 20px 30px;
  border-radius: 14px 14px 0 0;
  margin-bottom: 25px;
}

.ndis-download-btn {
  display: inline-block;
  padding: 12px 22px;
  background: #fff;
  color: #2F5AAE;
  font-weight: 600;
  font-size: 15px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ndis-download-btn:hover {
  background: #2F5AAE;
  color: #fff;
  box-shadow: 0 6px 16px rgba(47,90,174,0.3);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .ndis-form-header {
    justify-content: center;
    text-align: center;
  }
  .ndis-download-btn {
    font-size: 14px;
    padding: 10px 18px;
  }
}


/* ================================
   FORM WRAPPER - NO BOX
================================ */
#ndis-referral-form,
.ndis-form {
  background: transparent;  /* remove box */
  border: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 80px auto;
}

/* ================================
   INPUTS, SELECTS, TEXTAREA
================================ */
.ndis-form input[type="text"],
.ndis-form input[type="email"],
.ndis-form input[type="date"],
.ndis-form input[type="number"],
.ndis-form select,
.ndis-form textarea {
  width: 100%;
  padding: 24px 18px;
  border: 1px solid #b5d3ff;
  border-radius: 22px;
  font-size: 16px;
  background: linear-gradient(135deg, #f9fbff, #f0f7ff);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  margin-bottom: 18px;
}

.ndis-form input:focus,
.ndis-form select:focus,
.ndis-form textarea:focus {
  border-color: #2F5AAE;
  background: #fff;
  box-shadow: 0 0 10px rgba(47,90,174,0.25);
  outline: none;
}

/* ================================
   LABELS
================================ */
.ndis-label {
  font-weight: 600;
  color: #2F5AAE;
  font-size: 15px;
  margin-bottom: 6px;
  display: block;
}

/* ================================
   INLINE RADIO / CHECKBOX OPTIONS
================================ */
.ndis-inline-options label {
  display: inline-block;
  border-radius: 25px;
  padding: 10px 20px;
  background: #eef5ff;
  color: #2F5AAE;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #b5d3ff;
  transition: all 0.3s;
  cursor: pointer;
}

.ndis-inline-options input {
  display: none;
}

.ndis-inline-options label.selected {
  background: linear-gradient(135deg, #2F5AAE, #63A8FF);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(47,90,174,0.25);
}

/* ================================
   SECTION HEADINGS
================================ */
.ndis-form h4,
.ndis-form p strong {
  font-size: 18px;
  font-weight: 700;
  color: #2F5AAE;
  margin-bottom: 10px;
}

/* ================================
   CONSENT BOX (light green accent)
================================ */
.consent-box {
  background: #ecf9f0;
  border-left: 5px solid #47b37b;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #1e355d;
  border: 1px solid #cce9d9;
}

.consent-box a {
  color: #2F5AAE;
  font-weight: 600;
  text-decoration: underline;
}

/* ================================
   SUBMIT BUTTON
================================ */
.ndis-submit {
  background: linear-gradient(135deg, #2F5AAE, #63A8FF);
  border: none;
  padding: 16px 24px;
  width: 100%;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: 34px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(47,90,174,0.25);
}

.ndis-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(47,90,174,0.3);
  background: linear-gradient(135deg, #1f3f80, #4090ff);
}

/* ================================
   TWO FIELDS PER ROW (DESKTOP)
================================ */
.ndis-row {
  display: flex;
  gap: 20px; /* space between columns */
  flex-wrap: wrap; /* wrap on small screens */
}

.ndis-col {
  flex: 1;
  min-width: 200px; /* prevent shrinking too much */
}

/* ================================
   RESPONSIVE STYLES
================================ */

/* Large Tablets / Small Laptops (max 1024px) */
@media (max-width: 1024px) {
  #ndis-referral-form,
  .ndis-form {
    max-width: 95%;
    padding: 0 15px;
  }
  .ndis-form h4,
  .ndis-form p strong {
    font-size: 17px;
  }
  .ndis-form input,
  .ndis-form select,
  .ndis-form textarea {
    font-size: 15px;
    padding: 12px 15px;
  }
}

/* Tablets (max 900px) */
@media (max-width: 900px) {
  .ndis-row {
    flex-direction: column;
    gap: 15px;
  }
  .ndis-col {
    min-width: 100%;
  }
  .ndis-inline-options {
    gap: 8px;
  }
  .ndis-inline-options label {
    font-size: 14px;
    padding: 8px 14px;
  }
  .ndis-submit {
    font-size: 16px;
    padding: 14px;
  }
}

/* Mobile Landscape (max 600px) */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .ndis-form h4,
  .ndis-form p strong {
    font-size: 16px;
  }
  .ndis-form input,
  .ndis-form select,
  .ndis-form textarea {
    font-size: 14px;
    padding: 10px 12px;
  }
  .ndis-inline-options {
    flex-direction: column;
    gap: 10px;
  }
  .ndis-inline-options label {
    width: 100%;
    text-align: center;
    padding: 10px;
  }
  .ndis-submit {
    font-size: 15px;
    padding: 12px;
  }
}

/* Small Mobile Portrait (max 400px) */
@media (max-width: 400px) {
  body {
    font-size: 14px;
  }
  .ndis-form input,
  .ndis-form select,
  .ndis-form textarea {
    font-size: 13px;
    padding: 8px 10px;
  }
  .ndis-inline-options label {
    font-size: 13px;
    padding: 8px 10px;
  }
  .ndis-submit {
    font-size: 14px;
    padding: 10px;
  }
}
