.captcha__title.js-form-required.form-required {
  visibility: hidden;
}
.captcha__description.description {
  display: none;
}

.webform-confirmation-modal {
border-radius: 17px;
}


.webform-confirmation-modal .ui-widget-header {
	background-color: white;
    border: none;
}

.webform-confirmation-modal .ui-widget-header .ui-dialog-titlebar-close {
    background-color: white;
    border: none;
}

.dz-message .cursor-pointer a.button {
    visibility: hidden;
    display: none;
}


/**
 * Get Quote — contact method + optional backup (light Liberty theme).
 * Portable plain CSS; no Tailwind required in this file.
 */

#add_backup_contact + span {
    display: none;
}

:root {
  --lg-gq-card: #f2fcfc;
  --lg-gq-border: #b3ccd1;
  --lg-gq-teal: #78e1e1;
  --lg-gq-teal-soft: #c9f3f4;
  --lg-gq-link: #0b6e99;
  --lg-gq-text: #1a1446;
  --lg-gq-muted: #707070;
  --lg-gq-panel: #e8f5f6;
  --lg-gq-white: #ffffff;
}

/*
 * Completely hide native add_backup_contact checkbox + title.
 * Title must never leak as "Add backup contact (optional)" — JS link is the only UX.
 * Checkbox stays in DOM for Drupal.states / form submit.
 */
.lg-get-quote-contact .form-item-add-backup-contact,
.lg-get-quote-contact .js-form-item-add-backup-contact,
.lg-get-quote-contact .lg-get-quote-add-backup,
.form-item-add-backup-contact.lg-get-quote-add-backup,
.js-form-item-add-backup-contact.lg-get-quote-add-backup,
.lg-get-quote-add-backup {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Belt-and-suspenders: never paint the checkbox label text. */
.lg-get-quote-contact .form-item-add-backup-contact label,
.lg-get-quote-contact .js-form-item-add-backup-contact label,
.lg-get-quote-add-backup label,
.form-item-add-backup-contact label {
  display: none !important;
}

.lg-get-quote-contact .form-item-add-backup-contact input,
.lg-get-quote-contact .js-form-item-add-backup-contact input,
.lg-get-quote-add-backup input {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

/* Selected contact radio card enhancement (works with custom radios Twig). */
.lg-get-quote-contact-method .form-radios,
.lg-get-quote-contact .form-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lg-get-quote-contact-method .form-radios .js-form-item,
.lg-get-quote-contact-method .form-radios .form-item,
.lg-get-quote-contact .form-radios .js-form-item,
.lg-get-quote-contact .form-radios .form-item {
  flex: 1 1 calc(50% - 0.375rem);
  margin: 0;
}

.lg-get-quote-contact-method label.option,
.lg-get-quote-contact .form-radios label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--lg-gq-border);
  border-radius: 0.5rem;
  background: var(--lg-gq-white);
  color: var(--lg-gq-text);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.lg-get-quote-contact-method input:focus-visible + label.option,
.lg-get-quote-contact .form-radios input:focus-visible + label {
  outline: 2px solid var(--lg-gq-teal);
  outline-offset: 2px;
}

.lg-get-quote-contact-method input:checked + label.option,
.lg-get-quote-contact .form-radios input:checked + label,
.lg-get-quote-contact-method .form-item.is-selected label,
.lg-get-quote-contact .form-radios .is-selected label {
  border-color: var(--lg-gq-teal);
  background: var(--lg-gq-teal-soft);
  box-shadow: inset 0 0 0 1px var(--lg-gq-teal);
}

/* Wrapper for the single JS-injected + Add / — Remove control */
.lg-get-quote-backup-toggle-wrap {
  margin: 0.25rem 0 0;
}

.lg-get-quote-backup-toggle-wrap[hidden] {
  display: none !important;
}

/* + Add / — Remove backup control (only visible UI for backup opt-in) */
.lg-get-quote-backup-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lg-gq-link);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.lg-get-quote-backup-toggle:hover,
.lg-get-quote-backup-toggle:focus-visible {
  color: #085575;
  text-decoration: underline;
}

.lg-get-quote-backup-toggle:focus-visible {
  outline: 2px solid var(--lg-gq-teal);
  outline-offset: 2px;
}

.lg-get-quote-backup-toggle[hidden] {
  display: none !important;
}

/* Backup field panel — only relevant when #states shows that field */
.lg-get-quote-backup.js-form-item,
.lg-get-quote-backup.form-item,
.form-item-backup-phone-number.lg-get-quote-backup,
.form-item-backup-email-address.lg-get-quote-backup {
  margin-top: 0.25rem;
  padding: 1rem 1rem 0.875rem;
  border: 1px solid var(--lg-gq-border);
  border-radius: 0.75rem;
  background: var(--lg-gq-panel);
}

.lg-get-quote-backup .description,
.lg-get-quote-backup .webform-element-description,
.form-item-backup-phone-number .description,
.form-item-backup-email-address .description {
  margin-top: 0.5rem;
  color: var(--lg-gq-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}
