/* =========================================================
   Best in Class – Locations Form (full reset / replacement)
   ========================================================= */

/* ---------- Shell / layout ---------- */
.single-location-forms-plugin {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px;
}

.single-location-forms-plugin .single-location-forms-parent-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

/* Columns as block so input + asterisk can sit inline */
.single-location-forms-plugin .single-location-forms-parent-details,
.single-location-forms-plugin .single-location-forms-student-Details {
  display: block !important;   /* don't use flex here */
  padding: 16px 24px 24px;
}

.single-location-forms-plugin .single-location-forms-student-Details {
  background: #FBF5E8;         /* light cream */
  border-radius: 12px;
}

/* ---------- Headings ---------- */
.single-location-forms-plugin .single-location-forms-parent-details > h4 {
  color: #757575;
  font-weight: 800;
  font-size: 28px;
  text-align: center;
  margin: 8px 0 16px;
}

.single-location-forms-plugin .single-location-forms-student-Details > h4 {
  color: #0D47A1;
  font-weight: 800;
  font-size: 28px;
  text-align: center;
  margin: 8px 0 16px;
}

/* ---------- Inputs: transparent w/ bottom border ---------- */
.single-location-forms-plugin .parent_detail_inputs {
  display: inline-block;                 /* keep star on same line */
  width: calc(100% - 18px);              /* leave space for asterisk */
  margin: 12px 0;
  padding: 12px 2px;

  background-color: transparent !important;
  border: none !important;
  border-bottom: 2px solid #d8d8d8 !important;
  border-radius: 0 !important;

  font-size: 16px;
  color: #333;
  vertical-align: middle;
}

.single-location-forms-plugin .parent_detail_inputs:focus {
  outline: none;
  border-bottom-color: #1976d2 !important;
}

/* Placeholder color to match label tone */
.single-location-forms-plugin .parent_detail_inputs::placeholder {
  color: #9aa0a6;
}

/* ---------- Asterisk inline (no absolute positioning) ---------- */
.single-location-forms-plugin .asterisk,
.single-location-forms-plugin .s-asterisk {
  position: static !important;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1;
  color: #e53935;
  font-size: 18px;
}

/* ---------- Programs label (slightly bigger) ---------- */
.single-location-forms-plugin .programs-label {
  display: block;
  margin-top: 8px;
  margin-bottom: 2px;
  font-size: 18px;             /* a little bigger than field text */
  color: #6b7280;
  font-weight: 500;
}

/* ---------- Programs pill UI ---------- */
.single-location-forms-plugin .programs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .4rem 0 1rem;
}

.single-location-forms-plugin .program-pill {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  border: 1px solid #cfd8dc;
  border-radius: 999px;
  padding: .45rem .9rem;
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.single-location-forms-plugin .program-pill:hover {
  border-color: #90a4ae;
  box-shadow: 0 0 0 2px rgba(25,118,210,.08);
}

.single-location-forms-plugin .program-pill-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.single-location-forms-plugin .program-pill-label {
  font-size: .95rem;
}

.single-location-forms-plugin .program-pill.active {
  background: #0D47A1;
  color: #fff;
  border-color: #0D47A1;
}

.single-location-forms-plugin .program-pill.active .program-pill-label {
  color: #fff;
}

.single-location-forms-plugin .program-pill:focus-within {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
}

/* ---------- reCAPTCHA + Submit ---------- */
.single-location-forms-plugin .g-recaptcha {
  margin-top: 8px;
}

.single-location-forms-plugin .single-location-form-submit-btn {
  display: inline-block;
  align-self: center;
  margin-top: 16px;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #0D47A1;
  color: #fff;
  font-size: 16px;
}

.single-location-forms-plugin .single-location-form-submit-btn:hover {
  filter: brightness(1.05);
}

/* ---------- Mobile tabs (existing JS toggles .loc-form-active) ---------- */
.single-location-forms-plugin .mobile-form-btn-container {
  display: none;
  justify-content: center;
  margin-bottom: 18px;
}

.single-location-forms-plugin .loc-form-triggr-btn {
  border: 1px solid #e0e0e0;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #005095;
}

.single-location-forms-plugin .loc-form-triggr-btn-active {
  background: #e3f2fd;
}

/* Screen-reader utility (for hidden <select>) */
.single-location-forms-plugin .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .single-location-forms-plugin .single-location-forms-parent-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px;
  }

  .single-location-forms-plugin .mobile-form-btn-container { display: flex; }

  /* Sections are hidden by default on mobile; JS adds .loc-form-active */
  .single-location-forms-plugin .single-location-forms-parent-details,
  .single-location-forms-plugin .single-location-forms-student-Details {
    display: none !important;
    padding: 12px 4px 20px;
    border-radius: 12px;
  }

  .single-location-forms-plugin .single-location-forms-student-Details { background: #FBF5E8; }

  .single-location-forms-plugin .loc-form-active { display: block !important; }

  /* a bit more width for input when screen is narrow */
  .single-location-forms-plugin .parent_detail_inputs {
    width: calc(100% - 16px);
  }
}

