.page-contact {
  --contact-pad: clamp(1.5rem, 6vw, 100px);
  --contact-section-gap: clamp(7rem, 11vw, 11.5rem);
}

.page-contact main {
  background: #fff;
}

.contact-hero {
  position: relative;
  min-height: auto;
  padding: 2.5rem var(--contact-pad) clamp(3rem, 5vw, 4.5rem);
  overflow: hidden;
  background: #fff;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/about/About_img3.jpg") 65% center / cover no-repeat;
  transform: scaleX(-1);
  z-index: 0;
}

.contact-hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    268.58deg,
    rgba(217, 217, 217, 0.1625) 41.01%,
    rgba(248, 250, 252, 0.325) 60.97%
  );
}

.contact-hero-fade {
  position: absolute;
  left: 0;
  top: 0;
  width: min(970px, 67%);
  height: 100%;
  max-height: 683px;
  z-index: 1;
  pointer-events: none;
  background: rgba(247, 249, 252, 0.2);
  filter: blur(250px);
}

.contact-hero-fade-bottom {
  position: absolute;
  left: -10%;
  top: 72%;
  width: 124%;
  height: 66%;
  z-index: 1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.75);
  filter: blur(125px);
}

.contact-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 48px);
  max-width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
}

.quote-form-wrap {
  flex: 1 1 560px;
  min-width: 0;
  max-width: min(720px, 100%);
}

.quote-form {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(1.25rem, 2.8vw, 2rem) clamp(1rem, 2.5vw, 1.75rem) clamp(1.35rem, 2.5vw, 2rem);
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    linear-gradient(126deg, rgba(248, 250, 252, 0.55) -25%, rgba(21, 101, 192, 0.28) 72%);
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  border-radius: 24px;
}

.quote-form-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.25rem;
}

.quote-form-sub {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 1rem;
}

.quote-form-divider {
  border: none;
  border-top: 1px solid #e3e8ef;
  margin: 1rem 0;
}

.quote-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.quote-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 0;
}

.quote-field > span,
.quote-field .sub-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: #272727;
}

.quote-field input,
.quote-field textarea,
.qty-row input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--navy-stat);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-field input {
  height: 40px;
  padding: 0 12px;
}

.quote-field input:focus,
.quote-field textarea:focus,
.qty-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: #94a3b8;
}

.quote-field--full {
  width: 100%;
  margin-top: 0.25rem;
}

.quote-field--area textarea {
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.45;
}

/* Service & option chips */
.page-contact .svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.page-contact .svc-chip,
.page-contact .cat-chip,
.page-contact .spec-chip,
.page-contact .grade-pill {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d1d5db;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  color: inherit;
}

.page-contact .svc-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
}

.page-contact .svc-chip .ico {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.page-contact .svc-chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.page-contact .svc-chip .txt {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-stat);
  line-height: 1.25;
}

.page-contact .svc-chip .sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.3;
}

.page-contact .sub-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.page-contact .sub-section {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}

.page-contact .sub-section.open {
  max-height: 1200px;
  opacity: 1;
  margin-top: 10px;
}

.page-contact .cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.page-contact .cat-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 10px;
}

.page-contact .cat-chip .ct {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-stat);
}

.page-contact .cat-chip .cs {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.page-contact .grade-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.page-contact .grade-pill {
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy-stat);
}

.page-contact .spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.page-contact .spec-chip {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--navy-stat);
  line-height: 1.35;
}

.page-contact .svc-chip:hover,
.page-contact .cat-chip:hover,
.page-contact .spec-chip:hover,
.page-contact .grade-pill:hover {
  border-color: var(--blue-label);
  background: var(--bg-soft);
}

.page-contact .svc-chip.active,
.page-contact .cat-chip.active,
.page-contact .spec-chip.active,
.page-contact .grade-pill.active {
  border: 1.5px solid var(--blue);
  background: rgba(21, 101, 192, 0.06);
  box-shadow: 0 0 0 1px rgba(21, 101, 192, 0.08);
}

.page-contact .qty-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.page-contact .qty-row label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.page-contact .qty-row input {
  width: 100px;
  height: 40px;
  padding: 0 12px;
}

.page-contact .qty-unit {
  font-size: 12px;
  color: var(--muted);
}

.page-contact .summary {
  display: none;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid rgba(21, 101, 192, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--blue-label);
}

.page-contact .summary.show {
  display: flex;
}

.page-contact .summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.page-contact .summary .tag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
}

.quote-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 0.75rem;
  padding: 8px 16px;
  background: var(--blue);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.35);
  border: none;
  border-radius: 15px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 24px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.quote-submit:hover {
  background: var(--blue-dark);
}

.quote-submit:active {
  transform: scale(0.99);
}

.quote-form-success {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    linear-gradient(126deg, rgba(248, 250, 252, 0.55) -25%, rgba(21, 101, 192, 0.22) 72%);
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  border-radius: 24px;
}

.quote-form-success.show {
  display: block;
}

.quote-form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.quote-form-success-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.quote-form-success-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.page-contact .success-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}

.page-contact .success-tag {
  padding: 6px 12px;
  background: var(--bg-soft);
  color: var(--blue-label);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(21, 101, 192, 0.2);
}

.contact-copy {
  flex: 0 1 315px;
  max-width: 315px;
  padding-top: 35px;
}

.contact-eyebrow {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 26px;
  color: var(--orange);
  margin-bottom: 15px;
}

.contact-title {
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 48px);
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 2rem;
}

.contact-title span {
  color: var(--blue);
}

.contact-text {
  font-size: 16px;
  line-height: 24px;
  color: #272727;
  margin-bottom: 2rem;
}

.contact-social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-social-link {
  display: flex;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-social-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-contact .contact-partners {
  padding: var(--contact-section-gap) 0;
  background: #fff;
}

.page-contact .contact-partners .services-partners {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  gap: clamp(1.25rem, 4vw, 2.5rem);
}

.page-contact .contact-faq {
  padding: 0 0 var(--contact-section-gap);
  margin-top: 0;
}

@media (max-width: 1200px) {
  .contact-hero-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-copy {
    max-width: 100%;
    flex: 1;
  }
}

@media (max-width: 900px) {
  .page-contact {
    --contact-section-gap: clamp(4.5rem, 14vw, 7.5rem);
  }

  .quote-form-row,
  .page-contact .svc-grid,
  .page-contact .cat-grid,
  .page-contact .spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-eyebrow {
    font-size: 18px;
  }

  .quote-form {
    border-radius: 16px;
  }
}
