/* Contact page — loaded only for the Liên hệ page template. */
body.page-template-template-contact #main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 24px 76px;
  background: #f8f5ef;
}

.contact-page {
  --contact-wine: #7e1e2b;
  --contact-wine-dark: #55141e;
  --contact-gold: #d2a349;
  --contact-paper: #fffdfa;
  --contact-cream: #f1ebe1;
  --contact-ink: #35271f;
  --contact-muted: #776a61;
  --contact-line: #e8ded2;
  width: min(1200px, 100%);
  margin: 0 auto;
  color: var(--contact-ink);
}

.contact-page *,
.contact-page *::before,
.contact-page *::after {
  box-sizing: border-box;
}

.contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--contact-muted);
  font-size: 12px;
}

.contact-breadcrumb a {
  color: var(--contact-wine);
  text-decoration: none;
}

.contact-breadcrumb a:hover,
.contact-breadcrumb a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-hero {
  position: relative;
  isolation: isolate;
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .62fr);
  align-items: center;
  gap: 56px;
  overflow: hidden;
  padding: 44px 56px;
  border-radius: 22px;
  color: #fff8ed;
  background: var(--contact-wine);
}

.contact-hero::before,
.contact-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.contact-hero::before {
  top: -155px;
  right: -126px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(242, 210, 144, .19);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(242, 210, 144, .035), 0 0 0 70px rgba(242, 210, 144, .03);
}

.contact-hero::after {
  bottom: -244px;
  left: 54%;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 163, 73, .2), transparent 68%);
}

.contact-eyebrow {
  margin: 0 0 13px;
  color: #edc466;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
}

.contact-hero__copy h1 {
  max-width: 660px;
  margin: 0;
  color: #fffaf2;
  font-size: clamp(36px, 4.1vw, 54px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.contact-hero__copy > p:not(.contact-eyebrow) {
  max-width: 590px;
  margin: 18px 0 0;
  color: #f1ded4;
  font-size: 16px;
  line-height: 1.65;
}

.contact-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 25px;
}

.contact-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.contact-button--gold {
  color: #382417;
  background: #e4b653;
  box-shadow: 0 8px 20px rgba(36, 10, 10, .16);
}

.contact-button--gold:hover,
.contact-button--gold:focus-visible {
  color: #382417;
  background: #f0c968;
}


.contact-hero__note {
  padding: 25px 26px 22px;
  border: 1px solid rgba(255, 244, 222, .22);
  border-radius: 16px;
  background: rgba(74, 17, 26, .35);
}

.contact-hero__note-label {
  margin: 0 0 18px;
  color: #e7bd69;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.contact-hero__note h2 {
  margin: 0 0 16px;
  color: #fffaf2;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.contact-intent-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-intent-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 244, 222, .16);
  color: #f5e7d7;
  font-size: 13px;
  font-weight: 700;
}

.contact-intent-list li span {
  color: #e7bd69;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
}

.contact-section {
  margin-top: 39px;
}

.contact-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.contact-section__heading h2 {
  margin: 0;
  color: var(--contact-wine);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.contact-section__heading p {
  max-width: 480px;
  margin: 0 0 2px;
  color: var(--contact-muted);
  font-size: 13px;
  line-height: 1.55;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .75fr);
  align-items: start;
  gap: 22px;
}

.contact-form-card {
  min-width: 0;
  padding: 30px 32px;
  border: 1px solid #ebe2d8;
  border-radius: 18px;
  background: var(--contact-paper);
  box-shadow: 0 14px 42px rgba(73, 43, 29, .08);
  scroll-margin-top: 24px;
}

.contact-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.contact-card-heading h2 {
  margin: 0 0 6px;
  color: #3d2020;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.contact-card-heading p {
  margin: 0;
  color: var(--contact-muted);
  font-size: 13px;
  line-height: 1.5;
}


.contact-form-notice {
  margin: 0 0 19px;
  padding: 11px 13px;
  border-left: 3px solid var(--contact-gold);
  color: #665448;
  background: #fbf5e9;
  font-size: 12px;
  line-height: 1.5;
}

.contact-topics {
  margin-bottom: 19px;
}

.contact-topics__label {
  display: block;
  margin-bottom: 9px;
  color: var(--contact-ink);
  font-size: 12px;
  font-weight: 800;
}

.contact-topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-topic {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #e7ddd1;
  border-radius: 7px;
  color: #6b584d;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.contact-topic--active {
  border-color: var(--contact-wine);
  color: var(--contact-wine);
  background: #fbf0ed;
}

.contact-form-preview fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 1;
}

.contact-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.contact-field label {
  color: #49372d;
  font-size: 12px;
  font-weight: 800;
}

.contact-field label > span {
  color: var(--contact-wine);
}

.contact-field label small {
  color: var(--contact-muted);
  font-size: 11px;
  font-weight: 500;
}

.contact-field input,
.contact-field select,
.contact-field textarea,
.contact-form-plugin input:not([type="checkbox"]):not([type="radio"]),
.contact-form-plugin select,
.contact-form-plugin textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #ddd2c6;
  border-radius: 8px;
  color: var(--contact-ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.contact-field textarea,
.contact-form-plugin textarea {
  min-height: 118px;
  resize: vertical;
}

.contact-form-preview :disabled {
  opacity: 1;
  cursor: not-allowed;
}

.contact-form-preview input:disabled,
.contact-form-preview select:disabled,
.contact-form-preview textarea:disabled {
  color: #756b65;
  background: #fff;
  -webkit-text-fill-color: #756b65;
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
}

.contact-consent {
  max-width: 380px;
  display: flex;
  align-items: start;
  gap: 9px;
  color: var(--contact-muted);
  font-size: 11px;
  line-height: 1.45;
}

.contact-consent input {
  margin-top: 3px;
  accent-color: var(--contact-wine);
}

.contact-consent a {
  color: var(--contact-wine);
}

.contact-button--submit {
  flex: none;
  color: #fffaf2;
  background: var(--contact-wine);
  font-size: 13px;
}

.contact-form-preview .contact-button--submit:disabled {
  color: #fffaf2;
  background: #92777a;
}

.contact-form-plugin {
  color: var(--contact-ink);
}

.contact-form-plugin .wpcf7-form,
.contact-form-plugin .wpforms-form,
.contact-form-plugin form {
  display: grid;
  gap: 14px;
}

.contact-form-plugin input[type="submit"],
.contact-form-plugin button[type="submit"] {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  color: #fffaf2;
  background: var(--contact-wine);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.contact-aside {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.contact-details-card {
  padding: 23px 24px;
  border: 1px solid var(--contact-line);
  border-radius: 16px;
  background: var(--contact-cream);
}

.contact-details-card h2 {
  margin: 0 0 5px;
  color: var(--contact-wine);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.contact-details-card > p {
  margin: 0 0 17px;
  color: var(--contact-muted);
  font-size: 12px;
  line-height: 1.5;
}

.contact-details-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-detail {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #ddd2c3;
}

.contact-detail__icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--contact-wine);
  background: #fff8ed;
  font-size: 15px;
}

.contact-detail__icon svg {
  width: 18px;
  height: 18px;
}

.contact-detail__icon--zalo {
  font-size: 14px;
  font-weight: 900;
}

.contact-detail > span:last-child {
  min-width: 0;
}

.contact-detail strong {
  display: block;
  margin: 1px 0 4px;
  color: var(--contact-ink);
  font-size: 12px;
}

.contact-detail a,
.contact-detail > span:last-child > span {
  color: #6d5f55;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-detail a {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.contact-map-card {
  overflow: hidden;
  padding: 19px;
  border: 1px solid var(--contact-line);
  border-radius: 16px;
  background: var(--contact-paper);
  box-shadow: 0 8px 24px rgba(73, 43, 29, .05);
}

.contact-map-card__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.contact-map-card__heading p {
  margin: 0 0 4px;
  color: var(--contact-gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.contact-map-card__heading h2 {
  margin: 0;
  color: var(--contact-wine);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.contact-map-card__heading > span {
  flex: none;
  padding: 5px 7px;
  border-radius: 5px;
  color: #796b54;
  background: #f5efe4;
  font-size: 8px;
  font-weight: 850;
}

.contact-map-frame {
  min-height: 176px;
  overflow: hidden;
  border: 1px solid #dbe1d2;
  border-radius: 11px;
  background: #e9eee3;
}

.contact-map-frame iframe {
  width: 100%;
  height: 220px;
  display: block;
  border: 0;
}

.contact-map-placeholder {
  position: relative;
  min-height: 176px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background-color: #e9eee3;
  background-image:
    radial-gradient(ellipse at 17% 20%, #d8e5d2 0 14%, transparent 14.5%),
    radial-gradient(ellipse at 88% 83%, #d7e4d1 0 17%, transparent 17.5%),
    linear-gradient(28deg, transparent 0 39%, #d3c5ad 39.2% 40%, #fffdf7 40.2% 44.2%, #d3c5ad 44.4% 45.2%, transparent 45.4%),
    linear-gradient(145deg, transparent 0 59%, #d3c5ad 59.2% 60%, #fffdf7 60.2% 64.2%, #d3c5ad 64.4% 65.2%, transparent 65.4%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(188, 201, 176, .42) 40px 42px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(188, 201, 176, .4) 32px 34px);
}

.contact-map-placeholder::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: -8%;
  width: 116%;
  height: 19px;
  content: "";
  transform: rotate(-17deg);
  border-top: 2px solid #d2bfa0;
  border-bottom: 2px solid #d2bfa0;
  background: #fffdf7;
}

.contact-map-pin {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-top: -24px;
  transform: rotate(-45deg);
  border: 3px solid #fffdfa;
  border-radius: 50% 50% 50% 8px;
  color: #fff;
  background: var(--contact-wine);
  box-shadow: 0 4px 12px rgba(53, 28, 22, .25);
}

.contact-map-pin > span {
  transform: rotate(45deg);
  font-size: 17px;
}

.contact-map-placeholder__label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 8px 10px;
  border: 1px solid rgba(90, 72, 52, .08);
  border-radius: 8px;
  background: rgba(255, 253, 250, .96);
  box-shadow: 0 3px 10px rgba(44, 38, 27, .08);
}

.contact-map-placeholder__label strong,
.contact-map-placeholder__label > span {
  display: block;
}

.contact-map-placeholder__label strong {
  color: var(--contact-ink);
  font-size: 10px;
}

.contact-map-placeholder__label > span {
  margin-top: 2px;
  color: var(--contact-muted);
  font-size: 9px;
  line-height: 1.35;
}

.contact-map-card__hint {
  display: flex;
  align-items: start;
  gap: 6px;
  margin: 10px 2px 0;
  color: var(--contact-muted);
  font-size: 10px;
  line-height: 1.45;
}

.contact-map-card__hint > span {
  color: var(--contact-wine);
  font-weight: 900;
}

.contact-help-card {
  padding: 19px 22px;
  border-radius: 14px;
  color: #fff7ec;
  background: var(--contact-wine-dark);
}

.contact-help-card h2 {
  margin: 0 0 7px;
  color: #edc466;
  font-size: 15px;
  font-weight: 800;
}

.contact-help-card p {
  margin: 0 0 12px;
  color: #efddd4;
  font-size: 12px;
  line-height: 1.55;
}

.contact-help-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff5e7;
  font-size: 12px;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.page-template-template-contact .quick-contact {
  display: none;
}

@media (max-width: 900px) {
  body.page-template-template-contact #main {
    padding-right: 20px;
    padding-left: 20px;
  }

  .contact-hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr);
    gap: 28px;
    padding: 36px;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr);
    gap: 16px;
  }

  .contact-form-card {
    padding: 25px;
  }

  .contact-details-card {
    padding: 20px;
  }
}

@media (max-width: 680px) {
  body.page-template-template-contact #main {
    padding: 18px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .contact-breadcrumb {
    margin-bottom: 13px;
    font-size: 11px;
  }

  .contact-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 25px 21px 23px;
    border-radius: 17px;
  }

  .contact-hero::before {
    top: -150px;
    right: -160px;
    width: 260px;
    height: 260px;
  }

  .contact-eyebrow {
    margin-bottom: 9px;
    font-size: 9px;
  }

  .contact-hero__copy h1 {
    max-width: 390px;
    font-size: clamp(33px, 9vw, 42px);
    line-height: 1.03;
  }

  .contact-hero__copy > p:not(.contact-eyebrow) {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.55;
  }

  .contact-hero__actions {
    gap: 10px 12px;
    margin-top: 17px;
  }

  .contact-button {
    min-height: 44px;
    padding: 0 15px;
    font-size: 12px;
  }

  .contact-hero__note {
    display: none;
  }

  .contact-section {
    margin-top: 25px;
  }

  .contact-section__heading {
    display: block;
    margin-bottom: 13px;
  }

  .contact-section__heading h2 {
    font-size: 22px;
  }

  .contact-section__heading p {
    margin-top: 6px;
    font-size: 11px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .contact-form-card {
    padding: 19px 17px;
    border-radius: 14px;
  }

  .contact-card-heading {
    gap: 10px;
    margin-bottom: 14px;
  }

  .contact-card-heading h2 {
    font-size: 20px;
  }

  .contact-card-heading p {
    font-size: 11px;
  }

  .contact-form-notice {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .contact-topics {
    margin-bottom: 15px;
  }

  .contact-topics__list {
    gap: 6px;
  }

  .contact-topic {
    min-height: 33px;
    padding: 0 8px;
    font-size: 9px;
  }

  .contact-field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-field {
    gap: 6px;
    margin-bottom: 12px;
  }

  .contact-field label {
    font-size: 11px;
  }

  .contact-field input,
  .contact-field select,
  .contact-form-plugin input:not([type="checkbox"]):not([type="radio"]),
  .contact-form-plugin select {
    min-height: 44px;
    font-size: 13px;
  }

  .contact-field textarea,
  .contact-form-plugin textarea {
    min-height: 96px;
    font-size: 13px;
  }

  .contact-form-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .contact-consent {
    max-width: none;
    font-size: 10px;
  }

  .contact-button--submit {
    width: 100%;
  }

  .contact-aside {
    gap: 12px;
  }

  .contact-details-card {
    padding: 18px 17px;
    border-radius: 14px;
  }

  .contact-details-card h2 {
    font-size: 19px;
  }

  .contact-detail {
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 0;
  }

  .contact-detail__icon {
    width: 30px;
    height: 30px;
  }

  .contact-map-card {
    padding: 16px;
    border-radius: 14px;
  }

  .contact-map-frame,
  .contact-map-placeholder {
    min-height: 190px;
  }

  .contact-map-frame iframe {
    height: 220px;
  }

  .contact-help-card {
    padding: 17px;
  }
}

@media (max-width: 360px) {
  body.page-template-template-contact #main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .contact-hero {
    padding-right: 17px;
    padding-left: 17px;
  }

  .contact-topics__list {
    gap: 5px;
  }

  .contact-topic {
    padding: 0 6px;
    font-size: 8px;
  }
}
