@charset "utf-8";
/* CSS Document */

/* outer wrap */
.custom_form fieldset {border:none;}
.custom_form .form-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 3rem auto;
  padding: 1rem 2rem;
  box-sizing: border-box;
  background-color: #f9f9f9;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* heading */
.custom_form .form-wrapper h2 {
  color: #23408f;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
}
.custom_form .form-wrapper h2 span {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #444;
}

/* grid container (your id) */
.custom_form form {
  max-width: 900px;
  margin: 0 auto;
}

/* map Concrete field groups into the grid */
.custom_form form .mb-3 {
  display: contents; /* lets label/input place into grid columns cleanly */
}

/* labels */
.custom_form form label,
.custom_form .form-label {
  font-weight: 600;
  color: #23408f;
  font-size: 0.95rem;
  margin-bottom: 0;
  grid-column: 1; /* first column */
}

/* inputs / selects / textareas */
.custom_form form input,
.custom_form form select,
.custom_form form textarea,
.custom_form form .form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.custom_form form input:focus,
.custom_form form select:focus,
.custom_form form textarea:focus {
  border-color: #23408f;
  outline: none;
}

/* checkbox/radio rows: keep them spanning full width for clarity */
.custom_form form .form-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* help text */
.custom_form form .form-text,
.custom_form form .text-muted {
  color: #666;
  font-size: 0.85rem;
}

/* Replace "Required" text with a red asterisk in .custom_form only */
.custom_form form .text-muted {
  position: relative;
  color: transparent !important;   /* hide the "Required" word */
  font-size: 0;                    /* ensures no leftover spacing */
}

.custom_form form .text-muted::before {
  content: "*";
  color: #d93025;                  /* bright red asterisk */
  font-size: 1.2rem;
  font-weight: bold;
  position: absolute;
  left: 0px;
  top: -16px;
}

/* Ensure proper positioning relative to labels */
.custom_form #contactForm label {
  position: relative;
  padding-left: 10px;
}


/* reCAPTCHA or Concrete captcha block—make it full width */
.custom_form form .captcha,
.custom_form form .g-recaptcha,
.custom_form form .captcha-ui {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

/* submit button */
.custom_form form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.custom_form form .form-actions .btn[type="submit"],
.custom_form form button[type="submit"] {
  background-color: #23408f;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 200px;
}
.custom_form form .form-actions .btn[type="submit"]:hover,
.custom_form form button[type="submit"]:hover {
  background-color: #1a2f6b;
}

/* success notice */
.custom_form #formSuccessPopup {
  display: block; /* Concrete sets content when successful */
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #e6f7e6;
  border: 1px solid #b2dfb2;
  color: #2e7d32;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
}

/* error alert (Concrete’s .alert.alert-danger) – optional polish */
.custom_form .alert.alert-danger {
  grid-column: 1 / -1;
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #7f1d1d;
  border-radius: 6px;
}

/* responsive: stack on small screens */
@media (max-width: 640px) {
  .custom_form form {
    grid-template-columns: 1fr;
  }
  .custom_form form label,
  .custom_form form .form-control,
  .custom_form form input,
  .custom_form form textarea,
  .custom_form form select,
  .custom_form form .form-text,
  .custom_form form .text-muted {
    grid-column: 1;
  }
}
