/**
 * Quatang.me contact page.
 * Content remains editable in Flatsome UX Builder; presentation is page-scoped.
 */

.page-id-52 #content { padding: 0; }
.page-id-52 #content > .row-main { max-width: none; margin: 0; }
.page-id-52 #content > .row-main > .col { max-width: 100%; padding: 0; flex-basis: 100%; }
.page-id-52 .entry-header { display: none; }
.page-id-52 .section-content > .row {
  width: 100%;
  max-width: 1230px;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Compact reference-style hero. */
.qt-contact-hero {
  min-height: 305px;
  overflow: hidden;
  padding: 0 !important;
  background: #faf8f2;
}

.qt-contact-hero .section-bg.bg-loaded {
  background-position: center right !important;
}

.qt-contact-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 42%, rgba(255,255,255,.42) 61%, rgba(255,255,255,0) 76%);
  content: "";
}

.qt-contact-hero .section-content { z-index: 2; }
.qt-contact-hero-copy { max-width: 650px; padding: 25px 0 23px; }

.qt-contact-breadcrumb {
  margin-bottom: 12px;
  color: #647b87;
  font-size: 12px;
}

.qt-contact-breadcrumb a { color: #496574; }
.qt-contact-breadcrumb span { margin: 0 7px; color: #9aacb4; }

.qt-contact-hero h1 {
  margin: 0 0 10px;
  color: var(--qt-navy);
  font-size: clamp(35px, 3.3vw, 48px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.qt-contact-hero h1 span { color: var(--qt-green); }

.qt-contact-hero-copy > p {
  max-width: 600px;
  margin: 0;
  color: #2e4959;
  font-size: 15px;
  line-height: 1.55;
}

.qt-contact-hero-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  max-width: 690px;
  margin-top: 23px;
}

.qt-contact-hero-benefit {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--qt-navy);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.qt-contact-hero-benefit i,
.qt-contact-info-icon,
.qt-contact-online-icon,
.qt-contact-assurance-icon {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  place-items: center;
  border-radius: 50%;
  background: #e8f8f3;
  color: var(--qt-green);
  font-style: normal;
  font-size: 17px;
  font-weight: 800;
}

/* Three-column contact area. */
.qt-contact-main {
  padding: 18px 0 25px !important;
  background: #fff;
}

.qt-contact-main > .section-content > .row { align-items: stretch; }
.qt-contact-main .col { display: flex; }
.qt-contact-main .col > .col-inner { width: 100%; height: 100%; }

.qt-contact-info-panel > .col-inner,
.qt-contact-form-panel > .col-inner,
.qt-contact-online-panel > .col-inner {
  overflow: hidden;
  border: 1px solid #e1ebe8;
  border-radius: 13px;
  box-shadow: 0 5px 19px rgba(8,43,69,.055);
}

.qt-contact-info-panel > .col-inner {
  padding: 25px 24px 20px;
  background: #effaf7;
}

.qt-contact-panel-title {
  margin: 0 0 19px;
  color: var(--qt-navy);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.qt-contact-info-list { display: grid; gap: 16px; }

.qt-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--qt-navy);
}

.qt-contact-info-icon {
  width: 39px;
  height: 39px;
  flex-basis: 39px;
  background: var(--qt-green);
  color: #fff;
  font-size: 18px;
}

.qt-contact-info-copy small,
.qt-contact-info-copy strong,
.qt-contact-info-copy span { display: block; }

.qt-contact-info-copy small {
  margin-bottom: 2px;
  color: #647d89;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.qt-contact-info-copy strong {
  color: var(--qt-navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.qt-contact-info-copy span {
  margin-top: 2px;
  color: #607783;
  font-size: 11px;
  line-height: 1.45;
}

.qt-contact-form-panel > .col-inner {
  padding: 22px 24px 18px;
  background: #fff;
}

.qt-contact-form-heading { margin-bottom: 15px; }
.qt-contact-form-heading h2 { margin: 0; color: var(--qt-navy); font-size: 22px; font-weight: 800; line-height: 1.2; }
.qt-contact-form-heading p { margin: 5px 0 0; color: #687e89; font-size: 12px; line-height: 1.5; }

.qt-contact-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 10px;
}

.qt-contact-field--full { grid-column: 1 / -1; }
.qt-contact-form label { display: block; margin: 0; color: #2f4c5c; font-size: 11px; font-weight: 700; }
.qt-contact-form .wpcf7-form-control-wrap { display: block; margin-top: 5px; }

.qt-contact-form input:not([type="submit"]),
.qt-contact-form select,
.qt-contact-form textarea {
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #dbe5e2;
  border-radius: 7px;
  background: #fcfdfd;
  box-shadow: none;
  color: var(--qt-navy);
  font-size: 12px;
}

.qt-contact-form textarea { min-height: 87px; padding-top: 10px; resize: vertical; }

.qt-contact-form input:focus,
.qt-contact-form select:focus,
.qt-contact-form textarea:focus {
  border-color: var(--qt-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,166,126,.09);
}

.qt-contact-form input[type="submit"] {
  width: 100%;
  min-height: 44px;
  margin: 14px 0 0;
  border: 0;
  border-radius: 7px;
  background: var(--qt-coral);
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.qt-contact-form input[type="submit"]:hover { background: var(--qt-coral-dark); }
.qt-contact-form .wpcf7-spinner { position: absolute; }
.qt-contact-form .wpcf7-not-valid-tip { margin-top: 4px; font-size: 11px; }
.qt-contact-form .wpcf7-response-output { margin: 10px 0 0 !important; padding: 8px 10px !important; border-radius: 7px; font-size: 11px; }
.qt-contact-privacy { margin: 8px 0 0; color: #82939b; text-align: center; font-size: 9px; line-height: 1.4; }

.qt-contact-online-panel > .col-inner { background: #fff; }
.qt-contact-online-image { width: 100%; height: 143px; object-fit: cover; object-position: 69% center; }
.qt-contact-online-copy { padding: 17px 18px 18px; }
.qt-contact-online-copy h2 { margin: 0 0 7px; color: var(--qt-navy); font-size: 18px; font-weight: 800; }
.qt-contact-online-copy > p { margin: 0 0 14px; color: #607783; font-size: 12px; line-height: 1.55; }

.qt-contact-online-links { display: grid; gap: 8px; }
.qt-contact-online-links a {
  display: flex;
  min-height: 41px;
  padding: 0 11px;
  align-items: center;
  gap: 9px;
  border: 1px solid #dce8e4;
  border-radius: 8px;
  color: var(--qt-navy) !important;
  font-size: 11px;
  font-weight: 700;
}

.qt-contact-online-links a:hover { border-color: var(--qt-green); background: #f2fbf8; }
.qt-contact-online-icon { width: 25px; height: 25px; flex-basis: 25px; font-size: 12px; }

/* Bottom assurance strip, matching the reference page. */
.qt-contact-assurances {
  padding: 19px 0 !important;
  border-top: 1px solid #e6efec;
  background: #f2faf8;
}

.qt-contact-assurance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qt-contact-assurance {
  display: flex;
  min-height: 54px;
  padding: 0 23px;
  align-items: center;
  gap: 12px;
  border-right: 1px solid #d9e8e4;
}

.qt-contact-assurance:last-child { border-right: 0; }
.qt-contact-assurance-icon { width: 41px; height: 41px; flex-basis: 41px; background: transparent; font-size: 25px; }
.qt-contact-assurance strong,
.qt-contact-assurance span { display: block; }
.qt-contact-assurance strong { color: var(--qt-navy); font-size: 13px; font-weight: 800; }
.qt-contact-assurance span { margin-top: 2px; color: #667d88; font-size: 11px; }

@media (max-width: 849px) {
  .qt-contact-hero { min-height: 340px; }
  .qt-contact-hero .section-bg.bg-loaded { background-position: 72% center !important; }
  .qt-contact-hero::before { background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 58%, rgba(255,255,255,.12) 100%); }
  .qt-contact-hero-copy { max-width: 72%; padding: 30px 0; }
  .qt-contact-hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qt-contact-main .col { display: block; }
  .qt-contact-info-panel > .col-inner,
  .qt-contact-form-panel > .col-inner,
  .qt-contact-online-panel > .col-inner { height: auto; margin-bottom: 15px; }
  .qt-contact-assurance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qt-contact-assurance:nth-child(2) { border-right: 0; }
}

@media (max-width: 549px) {
  .qt-contact-hero { min-height: 430px; }
  .qt-contact-hero .section-bg.bg-loaded { background-position: 74% bottom !important; }
  .qt-contact-hero::before { background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 62%, rgba(255,255,255,.22) 100%); }
  .qt-contact-hero-copy { max-width: 100%; padding: 25px 0 170px; }
  .qt-contact-hero h1 { font-size: 32px; }
  .qt-contact-hero-copy > p { font-size: 14px; }
  .qt-contact-hero-benefits { gap: 10px; margin-top: 18px; }
  .qt-contact-hero-benefit { font-size: 10px; }
  .qt-contact-main { padding-top: 14px !important; }
  .qt-contact-info-panel > .col-inner,
  .qt-contact-form-panel > .col-inner { padding: 21px 18px 18px; }
  .qt-contact-form-fields { grid-template-columns: 1fr; }
  .qt-contact-assurance-grid { grid-template-columns: 1fr; }
  .qt-contact-assurance { border-right: 0; border-bottom: 1px solid #d9e8e4; }
  .qt-contact-assurance:last-child { border-bottom: 0; }
}
