.cs-estimator-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 12px;
  font-family: inherit;
}

.cs-estimator-card {
  background: #fff;
  border: 1px solid #e8e1d8;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(44, 31, 20, 0.08);
  padding: 28px;
}

.cs-estimator-header {
  margin-bottom: 24px;
}

.cs-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8a5a2b;
}

.cs-estimator-header h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.cs-estimator-header p {
  margin: 0;
  color: #5f554d;
  font-size: 16px;
  max-width: 760px;
}

.cs-estimator-form fieldset {
  border: 1px solid #efe8df;
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 18px;
}

.cs-estimator-form legend {
  font-weight: 700;
  padding: 0 8px;
}

.cs-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.cs-grid:last-child {
  margin-bottom: 0;
}

.cs-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cs-grid-1 {
  grid-template-columns: 1fr;
}

.cs-estimator-form label {
  display: block;
  font-weight: 650;
  color: #2d261f;
}

.cs-estimator-form label span,
.cs-consent span {
  color: #8a5a2b;
}

.cs-estimator-form input,
.cs-estimator-form select,
.cs-estimator-form textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 7px;
  border: 1px solid #d8cfc5;
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
  color: #2d261f;
  min-height: 48px;
}


.cs-estimator-form input[type="number"],
.cs-estimator-form input[type="text"],
.cs-estimator-form input[type="email"],
.cs-estimator-form input[type="tel"] {
  inline-size: 100% !important;
  -webkit-appearance: none;
  appearance: textfield;
}

.cs-estimator-form input[type="number"]::-webkit-outer-spin-button,
.cs-estimator-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cs-estimator-form .cs-grid > label {
  min-width: 0;
}

.cs-estimator-form select {
  min-height: 48px;
}

.cs-estimator-form input:focus,
.cs-estimator-form select:focus,
.cs-estimator-form textarea:focus {
  outline: none;
  border-color: #8a5a2b;
  box-shadow: 0 0 0 3px rgba(138, 90, 43, 0.14);
}

.cs-estimator-form small {
  display: block;
  margin-top: 7px;
  color: #71675f;
  font-weight: 400;
}

.cs-consent {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500 !important;
  margin-top: 14px;
}

.cs-consent input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  padding: 0;
  margin: 3px 0 0;
  border-radius: 4px;
  border: 1px solid #8a5a2b;
  accent-color: #8a5a2b;
  background: #fff;
  box-shadow: none;
  flex: 0 0 18px;
}

.cs-consent span {
  line-height: 1.45;
}

.cs-submit-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  background: #2b2119;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.cs-submit-btn:hover {
  transform: translateY(-1px);
}

.cs-submit-btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.cs-message {
  margin-top: 14px;
  font-weight: 650;
  color: #5f554d;
}

.cs-success {
  color: #176a37;
}

.cs-error {
  color: #b42318;
}

.cs-result {
  margin-top: 24px;
  padding: 24px;
  border-radius: 16px;
  border: 2px solid #8a5a2b;
  background: linear-gradient(180deg, #fff9f1, #fff);
}

.cs-result-label {
  margin: 0 0 8px;
  color: #8a5a2b;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: 13px;
}

.cs-quote-ref {
  margin: 0 0 10px;
  font-weight: 800;
  color: #2b2119;
}

.cs-price {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
  font-weight: 900;
  color: #2b2119;
  margin-bottom: 12px;
}

.cs-next-step {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f3eee8;
  color: #3c332b;
}

@media (max-width: 720px) {
  .cs-estimator-card {
    padding: 18px;
    border-radius: 14px;
  }

  .cs-grid-2 {
    grid-template-columns: 1fr;
  }

  .cs-estimator-form fieldset {
    padding: 14px;
  }
}
