.submission-container h1 {
  margin: 1rem 0 !important;
}

.form-container select,
.submission-container select {
  height: 2rem !important;
  font-size: 1.2rem !important;
  padding-left: 0.5rem !important;
  border: none !important;
  border-bottom: 1px solid #eee !important;
  color: #555 !important;
}

.form-container input,
.submission-container input {
  height: 2rem !important;
  font-size: 1.2rem !important;
}

.form-container textarea {
  font-size: 1rem;
}

.form-container input[type="text"],
.form-container input[type="tel"],
.form-container input[type="email"],
.form-container input[type="date"],
.submission-container input[type="text"],
.submission-container input[type="tel"],
.submission-container input[type="email"],
.submission-container input[type="email"] {
  padding-left: 0.5rem !important;
  border: none !important;
  border-bottom: 1px solid #eee !important;
}

.form-container input[type="number"],
.submission-container input[type="number"] {
  text-align: center !important;
  border: none !important;
  border-bottom: 1px solid #eee !important;
}

.form-container input[type="checkbox"],
.submission-container input[type="checkbox"] {
  width: 1.5rem !important;
}

.form-container input[type="submit"],
.submission-container input[type="submit"] {
  width: fit-content !important;
  height: fit-content !important;
  margin: 0 auto !important;
  padding: 1rem !important;
  background: #8c0c04;
  cursor: pointer;
  border: none;
  color: white !important;
}

.form-container input[type="submit"]:hover,
.submission-container input[type="submit"]:hover {
	opacity: 0.78;
}

.form-container label,
.submission-container label {
  margin-bottom: 0.25rem !important;
}

.form-container label:not(.smaller-text) {
  color: #333 !important;
  font-size: 1rem;
}

.form-container,
.submission-container {
  font-family: Arial, Helvetica, sans-serif !important;
  max-width: 1024px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.form-section-heading {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  font-size: 1.5rem !important;
  background: linear-gradient(
    170deg,
    rgba(4, 129, 48, 1) 0%,
    rgba(29, 175, 80, 1) 48%,
    rgba(255, 255, 255, 1) 100%
  );
  color: #fff !important;
  padding: 0.5rem !important;
  border-radius: 5px !important;
}

.form-section {
  display: flex !important;
  flex-direction: column !important;
}

.form-section-fields {
  margin-bottom: 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0.5rem 0 !important;
}

.form-container .row,
.submission-container .row,
input[type="file"] {
  margin: 0.75rem 0px !important;
  margin-bottom: 0.75rem !important;
  margin-top: 0.75rem !important;
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  align-items: end;
  justify-content: initial;
}

.row div {
  width: inherit !important;
}

.column {
  display: flex !important;
  flex-direction: column !important;
}

.column p {
  font-size: 1rem;
  color: #333 !important;
  margin-bottom: 0.25rem !important;
  font-style: italic;
}

.wall-column {
  align-items: center !important;
  text-align: center !important;
}

.wall-row {
  justify-content: initial !important;
}

.add-wall-btn {
	margin-right: 1rem !important;
}

.add-wall-btn,
.remove-wall-btn {
  width: fit-content !important;
  height: fit-content !important;
  padding: 0.5rem !important;
  box-shadow: 0px 2px 5px 0px #333333b8 !important;
  border: none !important;
  border-radius: 3px !important;
}

.add-wall-btn:hover,
.remove-wall-btn:hover {
  cursor: pointer;
}

#for-home {
  background-image: url("https://livewall.com/wp-content/uploads/2022/02/LiveWall-For-Home-v2.png") !important;
}

#for-business {
  background-image: url("https://livewall.com/wp-content/uploads/2022/02/LiveWall-For-Business-v2.png") !important;
}

#for-home,
#for-business {
  width: 100% !important;
  margin-left: 0 !important;
  padding: 0 !important;
  color: white !important;
  font-size: 2em !important;
  font-weight: bold;
  /* Transparent border reserves the space the selected ring occupies, so
     picking an option does not nudge the layout. */
  border: 3px solid transparent !important;
  border-radius: 5px !important;
  box-shadow: 0px 4px 10px 0px #00000077 !important;
  /* Was `opacity: 30%`. Both photos are already full-color source files, so
     the washed-out look came from this one line. Selection is now shown by the
     green ring and check badge below instead of by dimming. */
  opacity: 1 !important;
  height: 282px !important;
  background-color: transparent !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  margin-bottom: 1rem !important;
  text-shadow: 3px 2px 8px #000;
  cursor: pointer;
  display: block !important;
  transition: opacity 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

#for-home:hover,
#for-business:hover {
  border-color: #1daf50 !important;
  transform: translateY(-2px);
}

/*
 * Commercial / Residential chooser.
 * .hob-option wraps each button so we get a pseudo-element for the check
 * badge. An <input> is a replaced element and cannot carry ::after.
 * State classes are applied by selectHob() in quote-request.js.
 */
.hob-row {
  display: flex !important;
  column-gap: 1rem;
  width: 100% !important;
  align-items: stretch !important;
}

.column .hob-option {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  display: block !important;
}

.hob-option::after {
  content: "\2713";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 50%;
  background: #048130;
  color: #fff;
  font-size: 19px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.hob-option.is-selected::after {
  opacity: 1;
  transform: scale(1);
}

.hob-option.is-selected .hob-choice {
  border-color: #048130 !important;
  box-shadow: 0 0 0 3px rgba(4, 129, 48, 0.3),
    0 6px 16px rgba(0, 0, 0, 0.45) !important;
  transform: translateY(-2px);
}

/* Once a choice is made the other option steps back slightly, so "one of
   these is picked" still reads at a glance, nowhere near the old 30%. */
.hob-option.is-unselected .hob-choice {
  opacity: 0.62 !important;
}

/* These two were <label for="..."> elements. They are plain divs now, because a
   label pointing at a radio or button selects that option when the question
   text is clicked. They keep the label styling by hand. */
.column .hob-question {
  font-size: 1.5em;
  font-weight: bold;
  color: #333 !important;
  margin-bottom: 0.25rem !important;
  width: 100% !important;
}

.column .pmc-question {
  font-size: 1rem;
  color: #333 !important;
  margin-bottom: 0.25rem !important;
  width: 100% !important;
}

.hob-hint {
  margin: 0.35rem 0 0 !important;
  font-size: 0.95rem !important;
  font-style: italic;
  color: #666 !important;
}

.form-container .hob-choice:focus-visible {
  outline: 3px solid #1daf50 !important;
  outline-offset: 2px;
}

/*
 * Preferred Method of Contact.
 */
.column .pmc-options {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.4rem;
  width: 100% !important;
}

.pmc-option {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
  padding: 0.55rem 0.95rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  width: auto !important;
  font-size: 1rem !important;
  color: #333 !important;
  transition: border-color 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease;
}

.pmc-option:hover {
  border-color: #1daf50;
}

.form-container .pmc-option input[type="radio"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin: 0 !important;
  accent-color: #048130;
  cursor: pointer;
}

/* .is-checked is set by quote-request.js; :has() is the CSS-only equivalent. */
.pmc-option.is-checked,
.pmc-option:has(input[type="radio"]:checked) {
  border-color: #048130;
  background: #f2fbf5;
  box-shadow: 0 0 0 2px rgba(4, 129, 48, 0.18);
}

.form-container .pmc-option input[type="radio"]:focus-visible {
  outline: 3px solid #1daf50 !important;
  outline-offset: 2px;
}

.pmc-note {
  margin: 0.4rem 0 0 !important;
  font-size: 0.9rem !important;
  font-style: italic;
  color: #048130 !important;
}

/*
 * Review annotations, printed only when $showReviewNotes is true in
 * page-quote-request.php (false on the live form). Used to mark changes
 * while a form update is reviewed on Local or Staging.
 */
.rfq-devbanner {
  margin: 0 0 1rem !important;
  padding: 0.75rem 1rem !important;
  border: 2px dashed #d08700;
  border-radius: 5px;
  background: #fffbeb;
  color: #6b4b00 !important;
  font-size: 0.95rem !important;
  line-height: 1.5;
  font-family: Arial, Helvetica, sans-serif;
}

.rfq-devnote {
  margin: 0.5rem 0 0.85rem !important;
  padding: 0.6rem 0.8rem !important;
  border: 1px dashed #d08700;
  border-left: 4px solid #d08700;
  border-radius: 4px;
  background: #fffbeb;
  color: #6b4b00 !important;
  font-size: 0.88rem !important;
  line-height: 1.5;
  font-family: Arial, Helvetica, sans-serif;
  width: 100% !important;
}

.col-gap {
  column-gap: 1rem;
}

.form-container .no-display,
.submission-container .no-display {
  display: none !important;
}

.yes-display {
  display: initial !important;
}

.extra-wall1,
.extra-wall3,
.extra-wall5,
.extra-wall7,
.extra-wall9 {
  background-color: #eeeeee2e !important;
}

.walls .row {
  height: 5rem !important;
  align-items: center !important;
}

.submission-container {
  text-align: center !important;
}

.submission-container .row {
  justify-content: center !important;
}

.submission-container h2 {
  justify-self: left !important;
}

.submission-title {
  font-weight: bold;
  font-size: 1.5rem;
}

.submission-bold {
  font-weight: bold;
}

.submission-wall {
  display: flex !important; 
  width: 100% !important;
  margin: 0px auto !important;
  justify-content: space-around !important;
}

.wall-details {
  display: flex !important;
  flex-direction: column !important;
  font-size: 1rem !important;
  width: 55vw;
  max-width: inherit;
  margin: 0 auto 2rem auto;
}

.wall-details-heading {
  font-weight: bold;
  justify-content: space-around !important;
}

.wall-details .row {
  gap: 0 !important;
}

.wall-detail div {
  width: 20% !important;
}

.submission-confirm {
  width: 50vw !important;
  margin: 0.75rem auto !important;
  font-size: 1rem !important;
  max-width: inherit;
  background-color: #8c0c04 !important;
  padding: 1rem !important;
  border-radius: 5px !important;
  color: #fff !important;
}

.shaded {
  color: #aaa !important;
}

.budget-pricing {
  text-align: center !important;
  max-width: 100%;
}

.price-range {
  font-size: 2rem !important;
}

.subtext {
  font-size: 0.8rem !important;
}

.price-per {
  font-size: 1rem !important;
  margin-top: 0.75rem !important;
}

.total-sqft {
  font-size: 1.25rem !important;
}

.total-delivered {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.followup {
  width: max(20vw, 300px);
  margin: 0 auto;
  padding: 1rem;
  box-shadow: rgb(50, 50, 93, 0.25) 0px 2px 5px -1px, rgb(0, 0, 0, 0.30) 0px 1px 3px -1px;
  border: 1px solid rgb(0, 0, 0);
  border-radius: 5px;
  color: #fff !important;
  background-color: #14913f !important;
}

.followup:hover {
  color: #fff !important;
}

.small-text {
  font-size: 0.75rem !important;
}

.smaller-text {
  font-size: 0.8rem !important;
  color: #555 !important;
  font-weight: bold;
}

.required {
  color: rgb(200, 50, 50);
}

.same-as-billing {
  width: auto !important;
}

input[type="radio"] {
  width: 1.5rem !important;
}

.form-container input,
.form-container textarea {
  color: #555 !important;
}

.form-container
  input:not(input[type="text"]):not(input[type="email"]):not(input[type="tel"]),
.smaller-text {
  margin-left: 1rem;
}

.full-width {
  width: inherit !important;
  justify-content: center !important;
}

#notes {
  width: 100% !important;
  height: 100px !important;
}

.info-btn {
  background: none !important;
  border: none !important;
}

.info-btn a {
  color: black !important;
}

.detailed-quote-btn {
  padding: 1rem !important;
  margin: 0 auto !important;
}

.summary-container {
  margin-bottom: 2rem;
}

.quote-summary {
  width: 90%;
  margin: 0 auto;
  font-size: 0.8rem;
}

.quote-summary th {
  background-color: #bbb;
}

.quote-summary tr td {
  text-align: left;
  padding: 10px 10px 0px 20px;
}

.quote-summary tr td:first-child {
  background-color: #eee;
}

.quote-summary tr td:nth-child(2) {
  width: 75%;
}

.quote-note {
	font-size: 1rem;
	font-style: italic;
}

/* 
 * Pseudo-classes
 */
.form-container input:focus,
.form-container select:focus {
  outline: auto #51ad51 !important;
}

.form-container input[type="button"]:focus {
  outline: none !important;
}

/*
 * Media queries
 */
@media screen and (max-width: 425px) {
  .form-container {
    padding: 0 !important;
  }
}

@media screen and (min-width: 426px) {
  .form-container {
    padding: 1rem !important;
  }
}

@media screen and (min-width: 600px) {
  .wall-details {
    padding: 0 !important;
  }
}

@media screen and (max-width: 599px) {
  .form-container .row,
  .submission-container .row,
  input[type="file"] {
    justify-content: center;
  }

  .mobile-column {
    flex-direction: column !important;
    padding-left: 1rem !important;
  }

  .col-on-mobile .form-section-fields .row {
    flex-direction: column !important;
  }

  .row-on-mobile .form-section-fields .row {
    flex-direction: row !important;
  }
}
