.erpol-quote-shell {
  --erpol-border: #d9e2df;
  --erpol-border-strong: #b8c8c2;
  --erpol-text: #17231f;
  --erpol-muted: #5d6d67;
  --erpol-accent: #0f8a4b;
  --erpol-accent-dark: #086b39;
  --erpol-navy: #173762;
  --erpol-surface: #f5f8f7;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  color: var(--erpol-text);
}

.erpol-quote-intro {
  max-width: 760px;
  margin: 0 0 24px;
}

.erpol-quote-intro__eyebrow {
  margin: 0 0 8px;
  color: var(--erpol-accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.erpol-quote-intro h2 {
  margin: 0;
  color: var(--erpol-navy);
  font-size: 34px;
  line-height: 1.2;
}

.erpol-quote-intro > p:last-child {
  margin: 12px 0 0;
  color: var(--erpol-muted);
  font-size: 16px;
  line-height: 1.65;
}

.erpol-quote-form {
  overflow: hidden;
  border: 1px solid var(--erpol-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 55, 98, 0.08);
}

.erpol-quote-form__section {
  padding: 30px 32px 32px;
  border-bottom: 1px solid var(--erpol-border);
}

.erpol-quote-form__section--products {
  background: #fbfcfc;
}

.erpol-quote-form__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.erpol-quote-form__section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.erpol-quote-form__step {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #a9d6bd;
  border-radius: 50%;
  background: #eaf7ef;
  color: var(--erpol-accent-dark);
  font-size: 15px;
  font-weight: 800;
}

.erpol-quote-form__section-title h3 {
  margin: 0;
  color: var(--erpol-navy);
  font-size: 20px;
  line-height: 1.3;
}

.erpol-quote-form__section-title p {
  margin: 4px 0 0;
  color: var(--erpol-muted);
  font-size: 14px;
}

.erpol-quote-form label {
  display: block;
  margin-bottom: 7px;
  color: #24342e;
  font-size: 14px;
  font-weight: 650;
}

.erpol-quote-form label span {
  color: #b3261e;
}

.erpol-quote-form input[type='text'],
.erpol-quote-form input[type='tel'],
.erpol-quote-form input[type='email'],
.erpol-quote-form select,
.erpol-quote-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--erpol-border-strong);
  border-radius: 6px;
  padding: 11px 13px;
  background: #fff;
  color: var(--erpol-text);
  box-shadow: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.erpol-quote-form input[type='text']:focus,
.erpol-quote-form input[type='tel']:focus,
.erpol-quote-form input[type='email']:focus,
.erpol-quote-form select:focus,
.erpol-quote-form textarea:focus {
  border-color: var(--erpol-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 138, 75, 0.13);
}

.erpol-quote-form input:disabled {
  cursor: not-allowed;
  background: #f1f4f3;
  color: #7a8883;
}

.erpol-quote-form textarea {
  min-height: 128px;
  resize: vertical;
}

.erpol-quote-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(130px, 0.55fr) minmax(150px, 0.65fr) 42px;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--erpol-border);
  border-radius: 8px;
  background: #fff;
}

.erpol-quote-row + .erpol-quote-row {
  margin-top: 12px;
}

.erpol-quote-row p,
.erpol-quote-grid p,
.erpol-quote-grid > .erpol-quote-field {
  margin: 0;
}

.erpol-location-picker {
  position: relative;
  min-width: 0;
}

.erpol-location-picker__control {
  position: relative;
}

.erpol-location-picker__control input[type='text'] {
  padding-right: 48px;
}

.erpol-location-picker__toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  width: 44px;
  height: 46px;
  min-height: 0;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--erpol-border);
  border-radius: 0 5px 5px 0;
  padding: 0;
  background: transparent;
  color: var(--erpol-muted);
  box-shadow: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.erpol-location-picker__toggle:hover,
.erpol-location-picker__toggle:focus {
  background: #f2faf5;
  color: var(--erpol-accent-dark);
}

.erpol-location-picker__toggle span {
  display: block;
  color: inherit;
  transition: transform 150ms ease;
}

.erpol-location-picker.is-open .erpol-location-picker__toggle span {
  transform: rotate(180deg);
}

.erpol-location-picker__toggle:disabled {
  background: transparent;
  color: #9aa6a2;
  cursor: not-allowed;
}

.erpol-location-picker__list {
  position: absolute;
  z-index: 120;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 260px;
  margin: 0;
  border: 1px solid var(--erpol-border-strong);
  border-radius: 6px;
  padding: 6px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 55, 98, 0.16);
  list-style: none;
}

.erpol-location-picker__list[hidden] {
  display: none !important;
}

.erpol-location-picker__option,
.erpol-location-picker__empty {
  margin: 0;
  border-radius: 4px;
  padding: 10px 11px;
  color: var(--erpol-text);
  font-size: 14px;
  line-height: 1.35;
}

.erpol-location-picker__option {
  cursor: pointer;
}

.erpol-location-picker__option:hover,
.erpol-location-picker__option.is-active,
.erpol-location-picker__option[aria-selected='true'] {
  background: #eaf7ef;
  color: var(--erpol-accent-dark);
}

.erpol-location-picker__empty {
  color: var(--erpol-muted);
}

.erpol-quote-row__product {
  grid-column: 1;
}

.erpol-quote-row__custom {
  grid-column: 1 / 4;
  grid-row: 2;
}

.erpol-js-ready .erpol-quote-row__custom {
  display: none;
}

.erpol-js-ready .erpol-quote-row.is-custom-product .erpol-quote-row__custom {
  display: block;
}

.erpol-quote-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
}

.erpol-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  align-items: start;
}

.erpol-quote-grid__wide {
  grid-column: 1 / -1;
}

.erpol-quote-button,
.erpol-quote-icon-button {
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.erpol-quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
}

.erpol-quote-button--primary {
  min-height: 52px;
  padding: 0 24px;
  background: var(--erpol-accent);
  color: #fff;
}

.erpol-quote-button--primary:hover,
.erpol-quote-button--primary:focus {
  background: var(--erpol-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.erpol-quote-button--primary span {
  color: inherit;
  font-size: 20px;
}

.erpol-quote-button--ghost {
  border-color: var(--erpol-border-strong);
  background: #fff;
  color: var(--erpol-navy);
}

.erpol-quote-button--ghost:hover,
.erpol-quote-button--ghost:focus {
  border-color: var(--erpol-accent);
  background: #f2faf5;
  color: var(--erpol-accent-dark);
}

.erpol-quote-button--ghost span {
  color: inherit;
  font-size: 20px;
  line-height: 1;
}

.erpol-quote-icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  background: #eef3f1;
  color: var(--erpol-muted);
  font-size: 22px;
  line-height: 1;
}

.erpol-quote-icon-button:hover,
.erpol-quote-icon-button:focus {
  border-color: #efc3bd;
  background: #fff3f1;
  color: #a62c24;
}

.erpol-quote-form__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  align-items: center;
  padding: 24px 32px;
  background: var(--erpol-surface);
}

.erpol-quote-consent {
  margin: 0;
}

.erpol-quote-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  color: var(--erpol-muted);
  font-weight: 500;
  line-height: 1.5;
}

.erpol-quote-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.erpol-quote-form__errors {
  grid-column: 1 / -1;
  order: -1;
}

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

.erpol-quote-notice,
.erpol-quote-form__errors:not(:empty) {
  margin-bottom: 18px;
  border-radius: 6px;
  padding: 14px 16px;
}

.erpol-quote-form__errors:not(:empty) {
  margin: 0;
}

.erpol-quote-notice ul,
.erpol-quote-form__errors ul {
  margin: 0;
  padding-left: 18px;
}

.erpol-quote-notice--success {
  border: 1px solid #b7dcc7;
  background: #effaf3;
  color: #155f3b;
}

.erpol-quote-notice--error,
.erpol-quote-form__errors:not(:empty) {
  border: 1px solid #efc3bd;
  background: #fff4f2;
  color: #8c1d18;
}

@media (max-width: 840px) {
  .erpol-quote-row {
    grid-template-columns: minmax(220px, 1.2fr) minmax(110px, 0.55fr) minmax(130px, 0.65fr) 42px;
  }
}

@media (max-width: 700px) {
  .erpol-quote-intro h2 {
    font-size: 28px;
  }

  .erpol-quote-form__section {
    padding: 22px 18px 24px;
  }

  .erpol-quote-form__section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .erpol-quote-row,
  .erpol-quote-grid {
    grid-template-columns: 1fr;
  }

  .erpol-quote-row__product,
  .erpol-quote-row__custom,
  .erpol-quote-grid__wide {
    grid-column: 1;
    grid-row: auto;
  }

  .erpol-quote-row__actions {
    justify-content: flex-end;
    min-height: 40px;
  }

  .erpol-quote-form__footer {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .erpol-quote-button--primary,
  .erpol-quote-button--ghost {
    width: 100%;
  }
}
