/* ==================================================
   GIA DỤNG FUJI — CONTACT PAGE
   Version 1.8.0
   ================================================== */

.gdf-contact-page {
  --gdf-blue: #063f86;
  --gdf-blue-dark: #042f68;
  --gdf-orange: #ff6a00;
  --gdf-green: #1aa466;
  --gdf-red: #e9203b;
  --gdf-text: #273247;
  --gdf-muted: #66758a;
  --gdf-border: #e2e8f0;
  --gdf-soft: #f7faff;
  background: #fff;
  color: var(--gdf-text);
}

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

.gdf-contact-container {
  width: min(1170px, calc(100% - 30px));
  margin-inline: auto;
}

.gdf-contact-breadcrumb {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 12px;
  color: #7b8798;
  font-size: 11px;
}

.gdf-contact-breadcrumb a {
  color: var(--gdf-blue);
  font-weight: 600;
}

/* Hero */
.gdf-contact-hero {
  padding: 12px 0 14px;
}

.gdf-contact-hero__panel {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 38px 40px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: linear-gradient(100deg, #f7fbff 0%, #eaf4ff 100%);
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
}

.gdf-contact-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 40%, rgba(255,255,255,.48) 62%, rgba(255,255,255,.08) 82%);
}

.gdf-contact-hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.gdf-contact-hero h1 {
  margin: 0 0 13px;
  color: var(--gdf-blue);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
}

.gdf-contact-hero__intro {
  max-width: 560px;
  color: #526176;
  font-size: 14px;
  line-height: 1.72;
}

.gdf-contact-hero__intro p {
  margin: 0;
}

.gdf-contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.gdf-contact-action {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #b8d0eb;
  border-radius: 999px;
  background: #fff;
  color: var(--gdf-blue);
  font-size: 11px;
  font-weight: 800;
}

.gdf-contact-action.is-warranty {
  border-color: #ffc59a;
  color: var(--gdf-orange);
}

.gdf-contact-action.is-dealer {
  border-color: #a7dbbf;
  color: var(--gdf-green);
}

/* Contact info */
.gdf-contact-info {
  padding-bottom: 16px;
}

.gdf-contact-info__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gdf-contact-info-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--gdf-border);
  border-radius: 10px;
  background: #fff;
}

.gdf-contact-info-card__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--gdf-blue);
  color: #fff;
  font-size: 23px;
}

.gdf-contact-info-card h2 {
  margin: 0 0 4px;
  color: #263248;
  font-size: 12px;
  font-weight: 750;
}

.gdf-contact-info-card a,
.gdf-contact-info-card strong {
  display: block;
  color: var(--gdf-blue);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.gdf-contact-info-card p {
  margin: 3px 0 0;
  color: #7d8999;
  font-size: 9.5px;
  line-height: 1.45;
}

/* Form */
.gdf-contact-form-section {
  padding-bottom: 18px;
}

.gdf-contact-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.gdf-contact-form-card,
.gdf-contact-support {
  border: 1px solid var(--gdf-border);
  border-radius: 10px;
  background: #fff;
}

.gdf-contact-form-card {
  padding: 24px 26px 26px;
}

.gdf-contact-form-card > h2,
.gdf-contact-support > h2 {
  margin: 0 0 20px;
  color: var(--gdf-blue);
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

/*
 * Contact Form 7
 * Không đặt font quá nhỏ. Form cần đọc nhanh và đồng bộ với Flatsome.
 */
.gdf-contact-form-wrap,
.gdf-contact-form-wrap .wpcf7,
.gdf-contact-form-wrap .wpcf7-form,
.gdf-contact-form-wrap input,
.gdf-contact-form-wrap select,
.gdf-contact-form-wrap textarea,
.gdf-contact-form-wrap button {
  font-family: inherit;
}

.gdf-contact-form-wrap .wpcf7-form {
  display: grid;
  gap: 16px;
  margin: 0;
}

.gdf-contact-form-wrap .gdf-cf7-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.gdf-contact-form-wrap .gdf-cf7-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gdf-contact-form-wrap .gdf-cf7-field {
  min-width: 0;
}

.gdf-contact-form-wrap .gdf-cf7-field > label {
  display: block;
  margin: 0 0 7px;
  color: #263248;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.gdf-contact-form-wrap .gdf-cf7-field > label span {
  color: var(--gdf-red);
}

.gdf-contact-form-wrap .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.gdf-contact-form-wrap input[type="text"],
.gdf-contact-form-wrap input[type="email"],
.gdf-contact-form-wrap input[type="tel"],
.gdf-contact-form-wrap input[type="number"],
.gdf-contact-form-wrap input[type="file"],
.gdf-contact-form-wrap select,
.gdf-contact-form-wrap textarea {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  border: 1px solid #cfdceb;
  border-radius: 7px;
  background: #fff;
  color: #273247;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  box-shadow: none !important;
  outline: none;
}

.gdf-contact-form-wrap input[type="text"],
.gdf-contact-form-wrap input[type="email"],
.gdf-contact-form-wrap input[type="tel"],
.gdf-contact-form-wrap input[type="number"],
.gdf-contact-form-wrap select {
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
}

.gdf-contact-form-wrap select {
  appearance: auto;
  cursor: pointer;
}

.gdf-contact-form-wrap textarea {
  min-height: 165px;
  padding: 11px 12px;
  resize: vertical;
}

.gdf-contact-form-wrap input::placeholder,
.gdf-contact-form-wrap textarea::placeholder {
  color: #97a3b3;
  opacity: 1;
}

.gdf-contact-form-wrap input:focus,
.gdf-contact-form-wrap select:focus,
.gdf-contact-form-wrap textarea:focus {
  border-color: var(--gdf-blue);
  box-shadow: 0 0 0 3px rgba(6, 63, 134, .08) !important;
}

.gdf-contact-form-wrap .gdf-cf7-upload {
  padding: 13px 14px;
  border: 1px dashed #c9d8e8;
  border-radius: 8px;
  background: #f8fbff;
}

.gdf-contact-form-wrap .gdf-cf7-upload input[type="file"] {
  height: auto;
  padding: 8px;
  border: 0;
  background: transparent;
  font-size: 11px;
}

.gdf-contact-form-wrap .gdf-cf7-upload small {
  display: block;
  margin-top: 6px;
  color: #7c8899;
  font-size: 10px;
  line-height: 1.5;
}

.gdf-contact-form-wrap .gdf-cf7-submit {
  padding-top: 2px;
}

.gdf-contact-form-wrap input[type="submit"],
.gdf-contact-form-wrap button[type="submit"] {
  min-width: 180px;
  min-height: 44px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  background: var(--gdf-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 44px;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
}

.gdf-contact-form-wrap input[type="submit"]:hover,
.gdf-contact-form-wrap button[type="submit"]:hover {
  background: #e85f00;
}

.gdf-contact-form-wrap .wpcf7-spinner {
  margin: 0 0 0 8px;
  vertical-align: middle;
}

.gdf-contact-form-wrap .wpcf7-not-valid {
  border-color: #e7a2ad !important;
}

.gdf-contact-form-wrap .wpcf7-not-valid-tip {
  display: block;
  margin-top: 5px;
  color: var(--gdf-red);
  font-size: 10px;
  line-height: 1.4;
}

.gdf-contact-form-wrap .wpcf7-response-output {
  margin: 12px 0 0 !important;
  padding: 11px 13px !important;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.5;
}

.gdf-contact-form-missing {
  padding: 18px;
  border: 1px dashed #c4d4e7;
  border-radius: 8px;
  background: #f8fbff;
  color: #5c6b80;
  font-size: 12px;
}

/* Support */
.gdf-contact-support {
  position: sticky;
  top: 16px;
  padding: 18px;
}

.gdf-contact-support__list {
  display: grid;
  gap: 8px;
}

.gdf-contact-support-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 65px;
  padding: 9px;
  border: 1px solid #e5ebf2;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.gdf-contact-support-item__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--gdf-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.gdf-contact-support-item small,
.gdf-contact-support-item strong {
  display: block;
}

.gdf-contact-support-item small {
  margin-bottom: 2px;
  color: #7c8899;
  font-size: 8.5px;
}

.gdf-contact-support-item strong {
  color: var(--gdf-blue);
  font-size: 12px;
  line-height: 1.4;
}

.gdf-contact-support__note {
  display: flex;
  gap: 7px;
  margin-top: 11px;
  padding: 10px;
  border: 1px solid #cfe0f4;
  border-radius: 7px;
  background: #f2f7fd;
  color: var(--gdf-blue);
  font-size: 9.5px;
  line-height: 1.5;
}

/* Map */
.gdf-contact-map {
  padding-bottom: 16px;
}

.gdf-contact-map__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--gdf-border);
  border-radius: 10px;
  background: #fff;
}

.gdf-contact-map__embed,
.gdf-contact-map__embed iframe {
  min-height: 360px;
}

.gdf-contact-map__embed {
  background: #edf3f8;
}

.gdf-contact-map__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.gdf-contact-map__placeholder {
  display: grid;
  height: 100%;
  min-height: 360px;
  place-items: center;
  align-content: center;
  color: #7b8798;
  text-align: center;
}

.gdf-contact-map__placeholder span {
  font-size: 38px;
}

.gdf-contact-location {
  padding: 26px;
}

.gdf-contact-location h2 {
  margin: 0 0 14px;
  color: var(--gdf-blue);
  font-size: 20px;
  font-weight: 800;
}

.gdf-contact-location ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gdf-contact-location li {
  color: #59687d;
  font-size: 10.5px;
  line-height: 1.6;
}

.gdf-contact-location li + li {
  margin-top: 9px;
}

.gdf-contact-location strong {
  color: #344054;
}

.gdf-contact-location__button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 18px;
  padding: 8px 13px;
  border: 1px solid var(--gdf-blue);
  border-radius: 6px;
  color: var(--gdf-blue);
  font-size: 10px;
  font-weight: 800;
}

/* Channels */
.gdf-contact-channels {
  padding-bottom: 16px;
}

.gdf-contact-section-heading {
  margin-bottom: 12px;
}

.gdf-contact-section-heading h2 {
  margin: 0;
  color: var(--gdf-blue);
  font-size: 22px;
  font-weight: 800;
}

.gdf-contact-channels__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gdf-contact-channel {
  padding: 16px;
  border: 1px solid var(--gdf-border);
  border-radius: 9px;
  background: #fff;
}

.gdf-contact-channel__icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--gdf-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.gdf-contact-channel h3 {
  margin: 0 0 4px;
  color: #263248;
  font-size: 12px;
  font-weight: 750;
}

.gdf-contact-channel strong {
  display: block;
  overflow: hidden;
  color: var(--gdf-blue);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gdf-contact-channel p {
  min-height: 28px;
  margin: 4px 0 10px;
  color: #7b8798;
  font-size: 9.5px;
  line-height: 1.45;
}

.gdf-contact-channel > a {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9cde5;
  border-radius: 6px;
  color: var(--gdf-blue);
  font-size: 9.5px;
  font-weight: 750;
}

/* FAQ */
.gdf-contact-faq {
  padding-bottom: 24px;
}

.gdf-contact-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
}

.gdf-contact-faq-item {
  overflow: hidden;
  border: 1px solid var(--gdf-border);
  border-radius: 7px;
  background: #fff;
}

.gdf-contact-faq-item > button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  background: #fff;
  color: #334055;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  box-shadow: none;
}

.gdf-contact-faq-item > button strong {
  color: var(--gdf-blue);
  font-size: 17px;
  line-height: 1;
}

.gdf-contact-faq-item.is-open > button strong {
  transform: rotate(45deg);
}

.gdf-contact-faq-item__answer {
  padding: 0 12px 12px;
  color: #647287;
  font-size: 10.5px;
  line-height: 1.65;
}

.gdf-contact-faq-item__answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .gdf-contact-info__grid,
  .gdf-contact-channels__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gdf-contact-form-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 849px) {
  .gdf-contact-container {
    width: min(100% - 24px, 1170px);
  }

  .gdf-contact-hero__panel {
    min-height: 250px;
    padding: 30px;
  }

  .gdf-contact-hero h1 {
    font-size: 34px;
  }

  .gdf-contact-form-layout,
  .gdf-contact-map__grid {
    grid-template-columns: 1fr;
  }

  .gdf-contact-support {
    position: static;
  }

  .gdf-contact-map__embed,
  .gdf-contact-map__embed iframe {
    min-height: 330px;
  }
}

@media (max-width: 549px) {
  .gdf-contact-hero__panel {
    min-height: 300px;
    padding: 24px 18px;
    background-position: 66% center;
  }

  .gdf-contact-hero__content {
    max-width: 72%;
  }

  .gdf-contact-hero h1 {
    font-size: 28px;
  }

  .gdf-contact-hero__intro {
    font-size: 12.5px;
  }

  .gdf-contact-hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .gdf-contact-info__grid,
  .gdf-contact-channels__grid,
  .gdf-contact-faq__grid {
    grid-template-columns: 1fr;
  }

  .gdf-contact-form-card {
    padding: 16px;
  }

  .gdf-contact-form-wrap .gdf-cf7-grid,
  .gdf-contact-form-wrap .gdf-cf7-grid--2 {
    grid-template-columns: 1fr;
  }

  .gdf-contact-map__embed,
  .gdf-contact-map__embed iframe {
    min-height: 280px;
  }

  .gdf-contact-location {
    padding: 20px;
  }
}


/* ==================================================
   PATCH 1.8.1 — CF7 + FONT + FORM LAYOUT
   ================================================== */

/* Tránh rule Flatsome/WP làm các field CF7 co chiều rộng. */
.gdf-contact-form-wrap .wpcf7-form-control-wrap,
.gdf-contact-form-wrap .wpcf7-form-control {
  max-width: 100%;
}

/* Contact cards: giảm cảm giác chữ quá lớn ở dữ liệu dài. */
.gdf-contact-info-card a,
.gdf-contact-info-card strong {
  overflow-wrap: anywhere;
}

.gdf-contact-info-card:nth-child(2) a,
.gdf-contact-info-card:nth-child(3) strong,
.gdf-contact-info-card:nth-child(4) strong {
  font-size: 13px;
  line-height: 1.45;
}

/* Channel cards: cân lại typography. */
.gdf-contact-channel {
  display: flex;
  min-height: 205px;
  flex-direction: column;
  padding: 18px;
}

.gdf-contact-channel h3 {
  font-size: 13px;
}

.gdf-contact-channel strong {
  font-size: 12px;
}

.gdf-contact-channel p {
  font-size: 10.5px;
}

.gdf-contact-channel > a {
  margin-top: auto;
  min-height: 38px;
  font-size: 10.5px;
}

@media (max-width: 1024px) {
  .gdf-contact-form-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .gdf-contact-form-wrap .gdf-cf7-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gdf-contact-form-wrap .gdf-cf7-grid > .gdf-cf7-field:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 849px) {
  .gdf-contact-form-wrap .gdf-cf7-grid,
  .gdf-contact-form-wrap .gdf-cf7-grid--2 {
    grid-template-columns: 1fr;
  }

  .gdf-contact-form-wrap .gdf-cf7-grid > .gdf-cf7-field:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 549px) {
  .gdf-contact-form-card {
    padding: 18px 16px 20px;
  }

  .gdf-contact-form-card > h2,
  .gdf-contact-support > h2 {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .gdf-contact-form-wrap .wpcf7-form {
    gap: 14px;
  }

  .gdf-contact-form-wrap input[type="text"],
  .gdf-contact-form-wrap input[type="email"],
  .gdf-contact-form-wrap input[type="tel"],
  .gdf-contact-form-wrap input[type="number"],
  .gdf-contact-form-wrap select {
    height: 44px;
    font-size: 13px;
  }

  .gdf-contact-form-wrap textarea {
    min-height: 145px;
    font-size: 13px;
  }

  .gdf-contact-form-wrap input[type="submit"],
  .gdf-contact-form-wrap button[type="submit"] {
    width: 100%;
  }
}
