.swm-quote-request {
  max-width: 860px;
  color: #222;
  font-size: 16px;
  line-height: 1.6;
}

.swm-quote-request *,
.swm-quote-request *::before,
.swm-quote-request *::after {
  box-sizing: border-box;
}

.swm-quote-request [hidden] {
  display: none !important;
}

.swm-quote-request__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.swm-quote-request__intro {
  margin: 0 0 24px;
  padding: 18px 20px;
  border-left: 4px solid #1f6f62;
  background: #f4f8f7;
}

.swm-quote-request__notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 600;
}

.swm-quote-request__notice--success {
  border: 1px solid #9bd0ae;
  background: #eef9f1;
  color: #17602f;
}

.swm-quote-request__notice--error {
  border: 1px solid #e5a6a6;
  background: #fff1f1;
  color: #9d1f1f;
}

.swm-quote-request__form {
  display: grid;
  gap: 22px;
}

.swm-quote-request__cards {
  display: grid;
  gap: 14px;
}

.swm-quote-request__card {
  overflow: visible;
  border: 1px solid #cfd8d6;
  border-radius: 8px;
  background: #fff;
}

.swm-quote-request__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  background: #eef5f3;
  color: #1f332f;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.swm-quote-request__card-header[aria-expanded="false"] span:last-child {
  transform: rotate(-90deg);
}

.swm-quote-request__card-body {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.swm-quote-request__grid,
.swm-quote-request__detail-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.swm-quote-request__section,
.swm-quote-request__field.swm-quote-request__field--wide {
  grid-column: 1 / -1;
}

.swm-quote-request fieldset {
  position: relative;
  overflow: visible;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #d9e1df;
  border-radius: 8px;
  background: #f7faf9;
}

.swm-quote-request legend,
.swm-quote-request__field > span,
.swm-quote-request__height > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.swm-quote-request legend {
  position: static;
  width: 100%;
}

.swm-quote-request__tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border: 1px solid #8aa6a0;
  border-radius: 50%;
  background: #fff;
  color: #1f6f62;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.swm-quote-request__tooltip-panel {
  position: absolute;
  z-index: 9999;
  top: 44px;
  left: 18px;
  display: none;
  width: min(620px, calc(100vw - 48px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid #c8d5d2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 48, 43, 0.16);
  color: #263330;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.swm-quote-request__tooltip-panel strong,
.swm-quote-request__tooltip-panel span {
  display: block;
}

.swm-quote-request__tooltip:hover + .swm-quote-request__tooltip-panel {
  display: block;
}

.swm-quote-request__field small {
  margin-left: 8px;
  color: #66736f;
  font-size: 14px;
  font-weight: 400;
}

.swm-quote-request__field input[type="text"],
.swm-quote-request__field input[type="number"],
.swm-quote-request__field input[type="tel"],
.swm-quote-request__field input[type="email"],
.swm-quote-request__field input[type="file"],
.swm-quote-request__field textarea,
.swm-quote-request__height input[type="number"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd8d6;
  border-radius: 6px;
  background: #fff;
  color: #222;
}

.swm-quote-request__field textarea {
  min-height: 132px;
  resize: vertical;
}

.swm-quote-request__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swm-quote-request__choices label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cfd8d6;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.swm-quote-request__choices--products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.swm-quote-request__height {
  display: grid;
  gap: 8px;
}

.swm-quote-request__height-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  max-width: 260px;
}

.swm-quote-request__height-input span {
  font-weight: 700;
}

.swm-quote-request__privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.swm-quote-request__submit {
  justify-self: start;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: #1f6f62;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.swm-quote-request__submit:hover,
.swm-quote-request__submit:focus {
  background: #17564c;
}

@media (max-width: 720px) {
  .swm-quote-request__grid,
  .swm-quote-request__detail-group,
  .swm-quote-request__choices--products {
    grid-template-columns: 1fr;
  }
}
