/* ============================================================
   Best in Resin — Gravity Forms quote form styling  v2
   Brand: accent #66fcf1 (cyan) on #0B0C10 (dark)
   White card so the form pops off the dark hero.
 
   GF outputs the form's CSS Class Name in two places:
     wrapper: .gform_wrapper.bir-quote_wrapper
     form:    form.bir-quote
   Selectors below target both, with enough weight to beat
   GF 2.7+ Orbital theme defaults (the blue button).
   ============================================================ */
 
:root {
  --bir-dark: #0b0c10;
  --bir-accent: #66fcf1;
  --bir-accent-2: #45e6da;   /* hover */
  --bir-accent-tint: #e9fefc; /* selected card bg */
  --bir-border: #e4e4e8;
}
 
/* ---------- White card container ---------- */
.gform_wrapper.bir-quote_wrapper {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
 
/* Site font (Rubik — already loaded by the theme) */
.gform_wrapper.bir-quote_wrapper,
.gform_wrapper.bir-quote_wrapper * {
  font-family: 'Rubik', sans-serif !important;
}
.gform_wrapper.bir-quote_wrapper .gform_heading { display: none; }
 
/* ---------- Heading + subtext (injected by JS) ---------- */
.gform_wrapper.bir-quote_wrapper .bir-form-head h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bir-dark);
  margin: 0 0 4px;
  line-height: 1.2;
}
.gform_wrapper.bir-quote_wrapper .bir-form-head p {
  font-size: 0.88rem;
  color: #777;
  margin: 0 0 14px;
}
 
/* Kill Orbital theme colour vars in one hit */
.gform_wrapper.bir-quote_wrapper.gform-theme,
.gform_wrapper.bir-quote_wrapper .gform-theme {
  --gform-theme-color-primary: var(--bir-accent);
  --gform-theme-color-primary-contrast: var(--bir-dark);
  --gform-theme-color-primary-darker: var(--bir-accent-2);
  --gform-theme-control-button-background-color-primary: var(--bir-accent);
  --gform-theme-control-button-color-primary: var(--bir-dark);
}
 
/* ---------- Progress bar ---------- */
.gform_wrapper.bir-quote_wrapper .gf_progressbar_wrapper { margin-bottom: 20px; padding: 0; }
.gform_wrapper.bir-quote_wrapper .gf_progressbar_title { display: none; }
.gform_wrapper.bir-quote_wrapper .gf_progressbar {
  height: 6px !important;
  background: #eeeeee !important;
  border-radius: 3px;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: none;
}
.gform_wrapper.bir-quote_wrapper .gf_progressbar_percentage {
  height: 6px !important;
  background: var(--bir-accent) !important;
  background-image: none !important;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.gform_wrapper.bir-quote_wrapper .gf_progressbar_percentage span { display: none; }
 
/* ---------- Question labels ---------- */
.gform_wrapper.bir-quote_wrapper .gfield_label {
  font-weight: 700 !important;
  color: var(--bir-dark) !important;
  font-size: 1.05rem !important;
  margin-bottom: 12px;
  display: block;
}
.gform_wrapper.bir-quote_wrapper .gfield_required { display: none !important; }
 
/* ---------- Radio choices as selectable cards ---------- */
.gform_wrapper.bir-quote_wrapper .bir-cards .ginput_container_radio,
.gform_wrapper.bir-quote_wrapper .bir-cards .gfield_radio {
  width: 100% !important;
  max-width: none !important;
}
.gform_wrapper.bir-quote_wrapper .bir-cards .gfield_radio {
  display: grid !important;
  gap: 10px;
}
.gform_wrapper.bir-quote_wrapper .bir-cols-2 .gfield_radio { grid-template-columns: repeat(2, 1fr) !important; }
.gform_wrapper.bir-quote_wrapper .bir-cols-3 .gfield_radio { grid-template-columns: repeat(3, 1fr) !important; }
 
/* Force every choice to fill its grid cell — Orbital sets
   max-content widths on choices/labels, so cap-strip everything */
.gform_wrapper.bir-quote_wrapper .bir-cards .gfield_radio > *,
.gform_wrapper.bir-quote_wrapper .bir-cards .gchoice {
  position: relative;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  justify-self: stretch;
  margin: 0 !important;
  padding: 0 !important;
}
.gform_wrapper.bir-quote_wrapper .bir-cards .gchoice input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  cursor: pointer;
  z-index: 2;
}
.gform_wrapper.bir-quote_wrapper .bir-cards .gchoice label,
.gform_wrapper.bir-quote_wrapper .bir-cards .gchoice .gform-field-label {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  padding: 14px 10px !important;
  border: 2px solid var(--bir-border);
  border-radius: 10px;
  background: #fff;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  line-height: 1.3;
  color: var(--bir-dark) !important;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  max-width: 100% !important;
  margin: 0 !important;
}
.gform_wrapper.bir-quote_wrapper .bir-cards .gchoice:hover label {
  border-color: var(--bir-accent);
}
.gform_wrapper.bir-quote_wrapper .bir-cards .gchoice input[type="radio"]:checked + label {
  border-color: var(--bir-accent);
  background: var(--bir-accent-tint);
}
.gform_wrapper.bir-quote_wrapper .bir-cards .gchoice input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--bir-accent);
  outline-offset: 2px;
}
 
/* ---------- Text / phone inputs ---------- */
.gform_wrapper.bir-quote_wrapper input[type="text"],
.gform_wrapper.bir-quote_wrapper input[type="tel"] {
  width: 100%;
  padding: 13px 14px !important;
  border: 2px solid var(--bir-border) !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
  background: #fff !important;
  color: var(--bir-dark) !important;
  box-shadow: none !important;
}
.gform_wrapper.bir-quote_wrapper input[type="text"]:focus,
.gform_wrapper.bir-quote_wrapper input[type="tel"]:focus {
  outline: none !important;
  border-color: var(--bir-accent) !important;
}
.gform_wrapper.bir-quote_wrapper input::placeholder { color: #9a9ca3; }
 
/* ---------- Buttons: Next / Submit (cyan pill, dark text) ---------- */
.gform_wrapper.bir-quote_wrapper .gform_page_footer,
.gform_wrapper.bir-quote_wrapper .gform_footer {
  display: flex !important;
  gap: 10px;
  margin-top: 18px !important;
  padding: 0 !important;
  border: none !important;
}
.gform_wrapper.bir-quote_wrapper input.gform_next_button,
.gform_wrapper.bir-quote_wrapper button.gform_next_button,
.gform_wrapper.bir-quote_wrapper input[type="submit"],
.gform_wrapper.bir-quote_wrapper button.gform_button {
  flex: 1;
  background: var(--bir-accent) !important;
  background-image: none !important;
  color: var(--bir-dark) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 13px 24px !important;
  border: none !important;
  border-radius: 50px !important;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: none !important;
  text-transform: none;
}
.gform_wrapper.bir-quote_wrapper input.gform_next_button:hover,
.gform_wrapper.bir-quote_wrapper button.gform_next_button:hover,
.gform_wrapper.bir-quote_wrapper input[type="submit"]:hover,
.gform_wrapper.bir-quote_wrapper button.gform_button:hover {
  background: var(--bir-accent-2) !important;
}
 
/* Back button: grey pill */
.gform_wrapper.bir-quote_wrapper input.gform_previous_button,
.gform_wrapper.bir-quote_wrapper button.gform_previous_button {
  flex: 0 0 auto;
  background: #eeeeee !important;
  background-image: none !important;
  color: #555 !important;
  font-weight: 700 !important;
  padding: 13px 24px !important;
  border: none !important;
  border-radius: 50px !important;
  cursor: pointer;
  box-shadow: none !important;
}
.gform_wrapper.bir-quote_wrapper input.gform_previous_button:hover,
.gform_wrapper.bir-quote_wrapper button.gform_previous_button:hover {
  background: #dddddd !important;
}
 
/* ---------- Validation ---------- */
.gform_wrapper.bir-quote_wrapper .gform_validation_errors {
  border: none !important;
  background: #fdecea !important;
  border-radius: 10px;
  padding: 12px 16px !important;
  margin-bottom: 14px;
  box-shadow: none !important;
}
.gform_wrapper.bir-quote_wrapper .gform_validation_errors h2 {
  font-size: 0.88rem !important;
  color: #c0392b !important;
  margin: 0 !important;
}
.gform_wrapper.bir-quote_wrapper .gform_validation_errors h2 .gform-icon { display: none; }
.gform_wrapper.bir-quote_wrapper .gfield_error input {
  border-color: #c0392b !important;
}
.gform_wrapper.bir-quote_wrapper .gfield_validation_message,
.gform_wrapper.bir-quote_wrapper .validation_message {
  background: none !important;
  border: none !important;
  padding: 6px 0 0 !important;
  color: #c0392b !important;
  font-size: 0.85rem !important;
}
 
/* ---------- Trust line (injected by JS) ---------- */
.gform_wrapper.bir-quote_wrapper .bir-trust-line {
  font-size: 0.75rem;
  color: #999;
  margin-top: 12px;
  text-align: center;
}
 
/* ---------- Confirmation (thank-you) ---------- */
.gform_confirmation_wrapper.bir-quote_confirmation,
.gform_confirmation_wrapper .bir-quote_confirmation_message,
.gform_wrapper.bir-quote_wrapper .gform_confirmation_message {
  background: #fff;
  border-radius: 14px;
  padding: 40px 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
  color: var(--bir-dark);
}
 
/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .gform_wrapper.bir-quote_wrapper { padding: 20px; }
  .gform_wrapper.bir-quote_wrapper .bir-cols-2 .gfield_radio,
  .gform_wrapper.bir-quote_wrapper .bir-cols-3 .gfield_radio {
    grid-template-columns: 1fr;
  }
}
 
/* ============================================================
   OPTIONAL — dark card variant (matches hero instead of white).
   Delete the white-card rules above and un-comment if preferred.
   ============================================================
.gform_wrapper.bir-quote_wrapper { background: #15171e; }
.gform_wrapper.bir-quote_wrapper .gfield_label { color: #fff !important; }
.gform_wrapper.bir-quote_wrapper .bir-cards .gchoice label {
  background: #0b0c10; color: #fff !important; border-color: #2a2d36;
}
.gform_wrapper.bir-quote_wrapper .bir-cards .gchoice input[type="radio"]:checked + label {
  background: rgba(102, 252, 241, 0.12); border-color: #66fcf1;
}
.gform_wrapper.bir-quote_wrapper input[type="text"],
.gform_wrapper.bir-quote_wrapper input[type="tel"] {
  background: #0b0c10 !important; color: #fff !important; border-color: #2a2d36 !important;
}
============================================================ */