/* Load after Gravity Forms styles. Keep native fields, validation and keyboard controls. */
.sunrise-site .gform_wrapper {
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 6% 70px;
  color: var(--ink);
  color-scheme: dark;
}
.sunrise-site .gform_wrapper :is(form.gform-theme--framework, form.sunrise-quote-form) {
  color: var(--ink);
  font: inherit;
}
.sunrise-site .gform_wrapper .gform_fields { column-gap: 22px; row-gap: 25px; }
.sunrise-site .gform_wrapper .gfield { min-width: 0; }
.sunrise-site .gform_wrapper :is(.gfield_label, .gform-field-label, .gsection_title) {
  color: var(--ink);
  text-transform: capitalize;
  line-height: 1.5;
}
.sunrise-site .gform_wrapper :is(.gfield_label, .gform-field-label) { font-weight: 600; }
.sunrise-site .gform_wrapper :is(.gfield_description, .gform_description, .ginput_complex label) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.sunrise-site .gform_wrapper .gsection { border-color: var(--line); padding-block: 30px 10px; }
.sunrise-site .gform_wrapper .gsection_title {
  font: 500 clamp(28px, 4vw, 42px)/1.2 'Fraunces', Georgia, serif;
  margin-bottom: 15px;
}
.sunrise-site .gform_wrapper :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]), select, textarea) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 50px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid #59727b;
  border-radius: 5px;
  padding: 14px;
  font: inherit;
  box-shadow: none;
}
.sunrise-site .gform_wrapper textarea { min-height: 150px; resize: vertical; }
.sunrise-site .gform_wrapper ::placeholder { color: var(--muted); opacity: 1; }
.sunrise-site .gform_wrapper :is(input[type=checkbox], input[type=radio]) {
  accent-color: var(--gold);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.sunrise-site .gform_wrapper :is(input, select, textarea, button, a):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.sunrise-site .gform_wrapper .gfield_checkbox label { display: grid; gap: 10px; }
.sunrise-site .gform_wrapper :is(.gfield_checkbox, .gfield_radio):has(.sunrise-gf-choice-image) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.sunrise-site .gform_wrapper .gchoice:has(.sunrise-gf-choice-image) {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
.sunrise-site .gform_wrapper .gchoice:has(.sunrise-gf-choice-image) label {
  display: grid;
  gap: 12px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  cursor: pointer;
}
.sunrise-site .gform_wrapper .sunrise-gf-choice-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.sunrise-site .gform_wrapper .gchoice:has(.sunrise-gf-choice-image):has(:checked) { border-color: var(--gold); }
.sunrise-site .gform_wrapper .gchoice:has(.sunrise-gf-choice-image):focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.sunrise-site .gform_wrapper.gform-theme.gform-theme--framework :is(.gform_button, .gform_next_button, .gform_previous_button) {
  /* Gravity uses ID-specific reset selectors; preserve the approved touch target. */
  min-block-size: 52px !important;
  padding: 16px 23px !important;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: var(--bg);
  font: 600 14px/1.4 'DM Sans', Arial, sans-serif;
  text-transform: capitalize;
  cursor: pointer;
}
.sunrise-site .gform_wrapper.gform-theme.gform-theme--framework :is(.gform_button, .gform_next_button, .gform_previous_button):hover { background: #fdf0d3; }
.sunrise-site .gform_wrapper.gform-theme.gform-theme--framework .gform_previous_button { background: var(--panel); color: var(--gold); }
.sunrise-site .gform_wrapper.gform-theme.gform-theme--framework .gform_previous_button:hover { color: var(--bg); }
.sunrise-site .gform_wrapper :is(.gform_footer, .gform_page_footer) { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.sunrise-site .gform_wrapper :is(.gform_validation_errors, .gfield_validation_message, .validation_message) {
  background: #34262b;
  border: 1px solid #e9a6a6;
  border-radius: 5px;
  color: #ffe0e0;
  padding: 14px;
  line-height: 1.6;
}
.sunrise-site .gform_wrapper .gform_validation_errors :is(h2, a),
.sunrise-site .gform_wrapper :is(.gfield_required, .gfield_error .gfield_label) { color: #ffe0e0; }
.sunrise-site .gform_wrapper [aria-invalid=true] { border-color: #e9a6a6; }
.sunrise-site .gform_wrapper .gform_confirmation_message { padding: 22px; color: var(--ink); border: 1px solid var(--gold); }
@media (max-width: 800px) {
  .sunrise-site .gform_wrapper .gform_fields { grid-template-columns: minmax(0, 1fr); }
  .sunrise-site .gform_wrapper .gfield:not(.gfield--type-hidden) { grid-column: 1 / -1; }
  .sunrise-site .gform_wrapper :is(.gfield_checkbox, .gfield_radio):has(.sunrise-gf-choice-image) { grid-template-columns: minmax(0, 1fr); }
  .sunrise-site .gform_wrapper .ginput_complex { flex-direction: column; }
  .sunrise-site .gform_wrapper .ginput_complex > span { width: 100%; flex-basis: 100%; }
}

/* Color options share one axis, independent of glyph rendering. */
.sunrise-site .gform_wrapper .gfield_radio:has(.sunrise-color-swatches) {display:flex;flex-wrap:wrap;gap:14px;}
.sunrise-site .gform_wrapper .gfield_radio:has(.sunrise-color-swatches) .gchoice {display:flex;align-items:center;gap:10px;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:6px;}
.sunrise-site .gform_wrapper .gfield_radio:has(.sunrise-color-swatches) label {display:flex;align-items:center;gap:10px;margin:0;}
.sunrise-color-swatches {display:inline-flex;align-items:center;gap:5px;flex-shrink:0;}
.sunrise-color-dot {display:block;width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 1px #ffffff55;}
.sunrise-color-warm {background:#f4d58a;}.sunrise-color-red {background:#e94a59;}.sunrise-color-green {background:#53c78d;}.sunrise-color-blue {background:#548de5;}.sunrise-color-white {background:#fff6ed;}

/* Align the contact form with its section heading and leave room for the message. */
.sunrise-contact .contact-message :is(.gform_wrapper, .gform_confirmation_wrapper) {
  max-width: 760px;
  margin: 24px 0 0;
  padding: 0;
}
