.estimate-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: clamp(36px, 4vw, 72px);
  min-height: 0;
  padding-top: 100px;
  padding-bottom: 78px;
}

.estimate-form {
  position: relative;
  width: 100%;
  max-width: 620px;
  min-height: 0;
  margin: 0 0 0 auto;
  padding: 43px 44px 34px;
  overflow: visible;
  border: 1px solid rgba(42, 37, 30, .09);
  border-radius: 14px;
  color: #151515;
  background: #f7f5f0;
  box-shadow: 0 16px 38px rgba(20, 16, 12, .16);
}

.estimate-detail {
  position: absolute;
  z-index: 2;
  top: -68px;
  right: 58px;
  display: block;
  width: 174px;
  height: 174px;
  border: 4px solid #f7f5f0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(30, 24, 16, .1);
  pointer-events: none;
}

.estimate-note {
  position: absolute;
  z-index: 3;
  top: 73px;
  right: -5px;
  width: 88px;
  color: #2b2824;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 15px;
  font-style: italic;
  line-height: 1.03;
  text-align: center;
  pointer-events: none;
  transform: rotate(-9deg);
}

.estimate-note svg {
  position: absolute;
  top: -58px;
  right: 39px;
  width: 58px;
  height: 48px;
  stroke-width: 1.35;
  transform: rotate(-4deg);
}

.estimate-form-eyebrow {
  margin: 0 0 17px;
  color: #55504a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .3em;
}

.estimate-form h3 {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0;
  font-size: clamp(39px, 3.5vw, 49px);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.048em;
}

.estimate-form-intro {
  max-width: 470px;
  margin: 17px 0 28px;
  color: #8e8a85;
  font-size: 18px;
  line-height: 1.46;
}

.estimate-fields { display: grid; gap: 10px; }
.estimate-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.estimate-fields .field { min-width: 0; margin: 0; }
.estimate-fields .field label { margin: -1px; }
.field-control { position: relative; }
.field-control .field-icon {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 17px;
  width: 18px;
  height: 18px;
  color: #44413d;
  stroke-width: 1.7;
  pointer-events: none;
}

.estimate-fields .field input,
.estimate-fields .field select,
.estimate-fields .field textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 42px 14px 48px;
  border: 1px solid rgba(25, 24, 22, .18);
  border-radius: 7px;
  outline: 0;
  color: #292724;
  background: rgba(255, 255, 255, .18);
  box-shadow: none;
  font-size: 13px;
  line-height: 1.35;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.estimate-fields .field input::placeholder,
.estimate-fields .field textarea::placeholder { color: #8f8b86; opacity: 1; }
.estimate-fields .field select {
  appearance: none;
  background-image: none;
  color: #8f8b86;
  cursor: pointer;
}
.estimate-fields .field select:valid { color: #292724; }
.field-control .field-chevron {
  position: absolute;
  top: 18px;
  right: 17px;
  width: 17px;
  height: 17px;
  color: #36332f;
  pointer-events: none;
}
.estimate-fields .field textarea {
  height: 98px;
  min-height: 98px;
  max-height: 98px;
  padding-top: 17px;
  resize: none;
  overflow-y: auto;
}
.estimate-fields .field input:focus,
.estimate-fields .field select:focus,
.estimate-fields .field textarea:focus {
  border-color: #292724;
  box-shadow: 0 0 0 2px rgba(27, 25, 22, .11);
}
.estimate-fields .field input[aria-invalid="true"],
.estimate-fields .field select[aria-invalid="true"] { border-color: #a84237; }
.estimate-fields .field-error { display: block; margin-top: 5px; color: #9e302d; font-size: 11px; line-height: 1.25; }
.estimate-fields .field-error:empty { display: none; }

.estimate-form .button-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  border-radius: 6px;
  color: #fff;
  background: #111;
  font-size: 17px;
  font-weight: 600;
  gap: 25px;
  transition: background-color .2s ease, transform .2s ease;
}
.estimate-form .button-submit svg { width: 20px; height: 20px; stroke-width: 1.8; }
.estimate-form .button-submit:hover { background: #2b2926; transform: translateY(-1px); }
.estimate-form .button-submit:hover svg { transform: translateX(5px); }
.estimate-form .button-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.estimate-form .form-status { margin: 14px 0 0; font-size: 12px; line-height: 1.35; text-align: center; }
.estimate-form .form-status:empty { display: none; }
.estimate-form .form-status.success { color: #24683c; }
.estimate-form .form-status.error { color: #9e302d; }
.estimate-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  color: #77736d;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}
.estimate-privacy svg { flex: none; width: 14px; height: 14px; stroke-width: 1.7; }

.estimate-form.is-visible .estimate-detail { animation: estimate-detail-arrive .65s .1s both; }
@keyframes estimate-detail-arrive {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .estimate-grid { grid-template-columns: 1fr; gap: 0; padding-top: 76px; }
  .estimate-copy { max-width: 740px; }
  .estimate-form { margin: 112px auto 0; }
}

@media (max-width: 680px) {
  .estimate-grid { display: block; padding: 72px 0 68px; }
  .estimate-form {
    width: 100%;
    margin-top: 105px;
    padding: 87px 22px 30px;
    border-radius: 12px;
  }
  .estimate-detail { top: -65px; right: 18px; width: 130px; height: 130px; border-width: 3px; }
  .estimate-note { top: 15px; right: 157px; width: 83px; font-size: 12px; transform: rotate(-8deg); }
  .estimate-note svg { top: -11px; right: -48px; width: 48px; height: 39px; transform: scaleX(-1) rotate(-18deg); }
  .estimate-form-eyebrow { margin-bottom: 15px; font-size: 9px; letter-spacing: .23em; }
  .estimate-form h3 { font-size: clamp(29px, 8vw, 40px); }
  .estimate-form-intro { margin: 15px 0 25px; font-size: 14px; }
  .estimate-intro-break { display: none; }
  .estimate-field-row { grid-template-columns: 1fr; }
  .estimate-fields .field input,
  .estimate-fields .field select { min-height: 52px; }
  .estimate-fields .field textarea { height: 100px; min-height: 100px; max-height: 100px; }
  .estimate-form .button-submit { min-height: 55px; font-size: 15px; }
  .estimate-privacy { font-size: 10px; }
}

@media (max-width: 360px) {
  .estimate-form { padding-right: 17px; padding-left: 17px; }
  .estimate-note { right: 145px; font-size: 11px; }
  .estimate-privacy { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .estimate-form.is-visible .estimate-detail { animation: none; }
}
