.quote-head {
  padding-bottom: 45px;
}
.quote-head h1 span {
  color: var(--blue);
}
.quote-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.85fr);
  gap: 7%;
  padding: 55px 6% 80px;
  align-items: start;
}
.quote-aside {
  position: sticky;
  top: 125px;
}
.quote-aside h2 {
  font-size: 2.25rem;
}
.quote-aside p {
  font-size: 0.95rem;
}
.quote-aside ol {
  list-style: none;
  padding: 0;
  margin: 35px 0;
  counter-reset: step;
}
.quote-aside li {
  counter-increment: step;
  position: relative;
  padding: 0 0 25px 40px;
}
.quote-aside li:before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--blue);
  font-size: 0.8rem;
}
.quote-aside li strong {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 7px;
}
.quote-aside li span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  display: block;
}
.quote-person {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.person-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8efff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.quote-person strong {
  font-size: 0.85rem;
  display: block;
}
.quote-person a {
  display: block;
  font-size: 0.85rem;
  color: var(--blue);
  margin-top: 6px;
}
.quote-small {
  font-size: 0.8rem !important;
  line-height: 1.6;
  color: var(--muted);
}
.quote-small a {
  color: var(--blue);
}
.quote-surface {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 35px;
  background: white;
  box-shadow: 0 12px 40px #11224405;
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 35px 0 20px;
}
.form-section-title:first-child {
  margin-top: 0;
}
.form-section-title > span {
  font-size: 0.75rem;
  color: var(--blue);
  background: #ecf2ff;
  padding: 7px;
  border-radius: 5px;
}
.form-section-title h2 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin: 0;
}
.quote-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.quote-surface label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 0;
}
.quote-surface input,
.quote-surface select,
.quote-surface textarea {
  border: 1px solid #cbd5e3;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 12px;
  width: 100%;
  font:
    400 0.95rem "DM Sans",
    Arial,
    sans-serif;
  line-height: 1.5;
  min-height: 46px;
}
.quote-surface textarea {
  resize: vertical;
}
.quote-surface input:focus,
.quote-surface select:focus,
.quote-surface textarea:focus {
  border-color: var(--blue);
  outline: 2px solid #dbe6ff;
  outline-offset: 1px;
}
.quote-item {
  background: #f5f7fb;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 12px;
}
.item-heading {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.remove-item {
  font-size: 0.75rem;
  color: #775366;
  padding: 0;
}
.item-fields {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(70px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
}
.item-fields label {
  font-size: 0.78rem;
}
.item-fields input,
.item-fields select {
  font-size: 0.85rem;
  padding: 10px;
}
.add-product {
  color: var(--blue);
  font-size: 0.875rem;
  padding: 8px 0;
}
.quote-notes {
  margin-top: 22px;
}
.quote-prototype {
  padding: 15px 17px;
  background: #eff4fc;
  border-radius: 9px;
  color: #486181;
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 25px 0 20px;
}
.quote-submit {
  width: 100%;
  justify-content: space-between;
  border-radius: 10px;
}
.quote-submit + .quote-small {
  margin: 12px 0 0;
}
.quote-summary {
  font:
    400 0.875rem/1.75 "DM Sans",
    Arial,
    sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f8fb;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #35435c;
}
.quote-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.quote-copy-actions {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}
.quote-copy-actions button {
  padding: 5px 0;
  color: var(--blue);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#quote-review {
  scroll-margin-top: 130px;
}
#quote-review h2 {
  font-size: 2rem;
}
#quote-review p {
  font-size: 0.95rem;
}
.contact-opening {
  padding: 65px 6%;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10%;
  background: #f1f5fb;
  align-items: center;
}
.contact-opening h1 {
  font-size: 4.8rem;
  margin-bottom: 24px;
}
.contact-opening h1 span {
  color: var(--blue);
}
.contact-opening p {
  max-width: 470px;
}
.contact-location {
  border-left: 1px solid #cbd7e7;
  padding: 10px 0 10px 45px;
}
.contact-location h2 {
  font-size: 2.5rem;
}
.contact-location p {
  font-size: 0.95rem;
}
.contact-details {
  padding: 55px 6%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.contact-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: background 0.2s;
}
.contact-card:hover {
  background: #f4f7ff;
}
.contact-label {
  font-size: 0.8rem;
  color: var(--blue);
  display: block;
  margin-bottom: 25px;
}
.contact-card h2 {
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  margin-bottom: 15px;
  overflow-wrap: anywhere;
}
.contact-card p {
  font-size: 0.9rem;
  min-height: 50px;
  overflow-wrap: anywhere;
}
.contact-paths {
  padding: 45px 6% 70px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10%;
}
.contact-paths h2 {
  font-size: 2.4rem;
}
.contact-paths a {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.contact-paths strong {
  display: block;
  font-weight: 550;
}
.contact-paths small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 6px;
}
.contact-paths a > span:last-child {
  color: var(--blue);
  font-size: 1.3rem;
}
.header nav {
  gap: 22px;
}
.header nav a {
  white-space: nowrap;
}
@media (max-width: 1150px) {
  .header {
    flex-wrap: wrap;
  }
  .header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 35px;
  }
  .quote-layout {
    gap: 4%;
    padding-left: 5%;
    padding-right: 5%;
  }
  .quote-surface {
    padding: 26px;
  }
  .item-fields {
    grid-template-columns: 1fr 1fr;
  }
  .item-fields label:first-child {
    grid-column: 1/-1;
  }
  .contact-card {
    padding: 24px;
  }
  .contact-card h2 {
    font-size: 1.35rem;
  }
}
@media (max-width: 760px) {
  .header nav {
    gap: 12px;
    justify-content: space-between;
    font-size: 0.78rem;
  }
  .quote-head h1 {
    font-size: 2.9rem;
  }
  .quote-layout {
    grid-template-columns: 1fr;
    padding: 30px 5% 55px;
    gap: 25px;
  }
  .quote-aside {
    position: static;
  }
  .quote-aside h2 {
    font-size: 1.9rem;
  }
  .quote-aside ol {
    display: none;
  }
  .quote-aside > p:first-of-type {
    margin-bottom: 5px;
  }
  .quote-person {
    margin-top: 20px;
    padding: 20px 0 10px;
  }
  .quote-aside > .quote-small {
    margin-bottom: 0;
  }
  .quote-surface {
    padding: 23px 18px;
  }
  .quote-fields {
    gap: 16px;
  }
  .quote-surface label {
    font-size: 0.8rem;
  }
  .quote-surface input,
  .quote-surface select {
    font-size: 0.9rem;
  }
  .form-section-title h2 {
    font-size: 1.2rem;
  }
  .contact-opening {
    grid-template-columns: 1fr;
    padding: 40px 6%;
    gap: 30px;
  }
  .contact-opening h1 {
    font-size: 3.4rem;
  }
  .contact-location {
    padding: 25px 0 0;
    border-left: 0;
    border-top: 1px solid #cbd7e7;
  }
  .contact-location h2 {
    font-size: 2rem;
  }
  .contact-details {
    grid-template-columns: 1fr;
    padding: 30px 6%;
    gap: 15px;
  }
  .contact-card {
    padding: 25px;
  }
  .contact-card h2 {
    font-size: 1.6rem;
  }
  .contact-label {
    margin-bottom: 18px;
  }
  .contact-card p {
    min-height: 0;
  }
  .contact-paths {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 20px 6% 50px;
  }
  .contact-paths h2 {
    font-size: 2rem;
  }
  .quote-review-actions {
    flex-direction: column;
  }
  .quote-review-actions .btn {
    width: 100%;
  }
}
@media (max-width: 380px) {
  .quote-fields {
    grid-template-columns: 1fr;
  }
  .header nav {
    font-size: 0.72rem;
    gap: 8px;
  }
  .item-fields {
    gap: 9px;
  }
  .item-fields label {
    font-size: 0.75rem;
  }
}
@media (max-width: 760px) {
  .quote-surface {
    order: -1;
  }
  .quote-head {
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .quote-head .breadcrumb {
    margin-bottom: 20px;
  }
  .quote-head .eyebrow {
    margin-bottom: 16px;
  }
  .quote-head h1 {
    font-size: 2.55rem;
    margin-bottom: 15px;
  }
  .quote-head p {
    margin-bottom: 0;
  }
  .quote-layout {
    padding-top: 24px;
  }
  .quote-aside {
    padding: 20px 8px 0;
  }
  .contact-opening .actions {
    gap: 20px;
    margin-top: 22px;
  }
  .contact-opening .actions .btn {
    font-size: 0.85rem;
  }
}
.quote-fields label {
  justify-content: space-between;
}
