/* ==========================================================================
   CONTACT PAGE STYLES (TRANG LIEN HE - FIGMA)
   Flatsome Child Theme - thuyannhung.com
   ========================================================================== */

/* --- Section 1: Banner & Breadcrumb --- */
.tan-contact-page {
  background: #ffffff;
  padding-bottom: 50px;
}

.tan-contact-banner {
  background: #0e9494 !important;
  border-bottom: none !important;
  padding: 38px 0 34px;
}

.tan-contact-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 8px;
}

.tan-breadcrumb {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85) !important;
}

.tan-breadcrumb a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.tan-breadcrumb a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.tan-bc-sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.6) !important;
}

.tan-bc-current {
  color: #ffffff !important;
  font-weight: 600;
}

/* --- Section 2: 4 The Thong Tin Nhanh (Quick Info Cards) --- */
.tan-quick-cards-section {
  padding: 40px 0 20px;
}

.tan-quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tan-quick-card {
  background: #ffffff;
  border: 1px solid #e2e8ea;
  border-radius: 12px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.tan-quick-card:hover {
  transform: translateY(-3px);
  border-color: #0e9494;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.tan-qcard-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fdecec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.tan-qcard-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #232a2c;
  margin: 0 0 8px;
}

.tan-qcard-desc {
  font-size: 13.5px;
  color: #6b7480;
  margin: 0;
  line-height: 1.6;
}

.tan-qcard-link-teal {
  color: #0e9494 !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.tan-qcard-link-teal:hover {
  color: #e31e24 !important;
  text-decoration: underline;
}

/* --- Section 3: Main Contact Grid (Form & Info Card) --- */
.tan-contact-main {
  padding: 25px 0 45px;
}

.tan-contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 35px;
  align-items: start;
}

.tan-contact-card {
  padding: 36px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid #e9edef;
  background: #fff;
  box-shadow: 0 6px 22px 0 rgba(20, 45, 45, 0.07);
}

.tan-form-heading {
  font-size: 22px;
  font-weight: 700;
  color: #232a2c;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tan-heading-bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: #e31e24;
  border-radius: 2px;
  flex-shrink: 0;
}

.tan-card-desc {
  font-size: 14px;
  color: #6b7480;
  line-height: 1.6;
  margin: 0 0 24px;
}

.tan-alert-success {
  background: #e4f7f7;
  border: 1px solid #0e9494;
  color: #0e9494;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.tan-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.tan-form-group {
  margin-bottom: 0;
}

.tan-form-group select {
  margin-bottom: 0;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e9edef;
  background: #fff;
  box-shadow: unset;
}

.tan-form-group input {
  margin-bottom: 0;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e9edef;
  background: #fff;
  box-shadow: unset;
}

.tan-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #232a2c;
  margin-bottom: 6px;
}

.tan-required {
  color: #e31e24;
}

.tan-input,
.tan-select,
.tan-textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid #c8d0d3;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #232a2c;
  box-sizing: border-box;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #ffffff;
}

.tan-input:focus,
.tan-select:focus,
.tan-textarea:focus {
  outline: none;
  border-color: #e31e24;
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.tan-textarea {
  resize: vertical;
  min-height: 110px;
  margin-bottom: 0;
  box-shadow: unset;
  border-radius: 10px;
  border: 1px solid #e9edef;
  background: #fff;
}

.tan-form-actions {
  margin-top: 24px;
  width: 100%;
}

.tan-form-actions .tan-btn-pill-submit {
  border-radius: 50px !important;
  width: 100%;
  height: 48px;
  margin: 0;
}

.tan-btn-pill-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #e31e24 !important;
  color: #ffffff !important;
  border: none;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(227, 30, 36, 0.28);
}

.tan-btn-pill-submit:hover {
  background: #c01318 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(227, 30, 36, 0.35);
}

.tan-form-quick-zalo {
  font-size: 13.5px;
  color: #6b7480;
  margin-top: 14px;
  text-align: center;
}

.tan-form-quick-zalo a {
  color: #0e9494;
  text-decoration: none;
  font-weight: 600;
}

.tan-form-quick-zalo a:hover {
  color: #e31e24;
  text-decoration: underline;
}

/* Contact Form 7 integration */
.tan-contact-form-card .wpcf7 {
  width: 100%;
}

.tan-contact-form-card .wpcf7 form {
  margin-bottom: 0;
}

.tan-contact-form-card .wpcf7-form-control-wrap {
  display: block;
  position: relative;
  width: 100%;
}

.tan-contact-form-card .wpcf7-not-valid-tip {
  color: #e31e24;
  font-size: 12.5px;
  margin-top: 5px;
  font-weight: 500;
  display: block;
}

.tan-contact-form-card input.wpcf7-not-valid,
.tan-contact-form-card select.wpcf7-not-valid,
.tan-contact-form-card textarea.wpcf7-not-valid {
  border-color: #e31e24 !important;
  background-color: #fffafb;
}

.tan-contact-form-card .wpcf7-response-output {
  border-radius: 8px;
  font-size: 14px;
  margin: 16px 0 0 0 !important;
  padding: 12px 16px !important;
  line-height: 1.5;
  border-width: 1px !important;
  box-sizing: border-box;
}

.tan-contact-form-card form.sent .wpcf7-response-output {
  background: #e4f7f7;
  border-color: #0e9494 !important;
  color: #0e9494;
}

.tan-contact-form-card form.invalid .wpcf7-response-output,
.tan-contact-form-card form.unaccepted .wpcf7-response-output,
.tan-contact-form-card form.failed .wpcf7-response-output {
  background: #fdecec;
  border-color: #e31e24 !important;
  color: #e31e24;
}

.tan-contact-form-card .wpcf7-spinner {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 0 10px;
}

.tan-contact-form-card form.submitting .tan-btn-pill-submit {
  opacity: 0.8;
  pointer-events: none;
}

/* Card thong tin doanh nghiep ben phai */
.tan-contact-info-card .tan-info-header {
  border-bottom: 1px solid #eef2f3;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.tan-brand-name {
  font-size: 24px;
  font-weight: 800;
  color: #232a2c;
  margin: 0 0 6px;
}

.tan-brand-sub {
  font-size: 13.5px;
  color: #6b7480;
  margin: 0;
}

.tan-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tan-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #f7f9fa;
}

.tan-info-item:last-child {
  border-bottom: none;
}

.tan-info-icon-square {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fdecec;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tan-info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tan-info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b969a;
  font-weight: 600;
}

.tan-info-value {
  font-size: 14px;
  color: #232a2c;
  font-weight: 600;
  line-height: 1.4;
}

.tan-info-value a {
  color: #232a2c;
  text-decoration: none;
  transition: color 0.2s;
}

.tan-info-value a:hover {
  color: #e31e24;
}

.tan-info-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #eef2f3;
}

.tan-info-social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8ea;
  color: #6b7480;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.tan-info-social-circle:hover {
  background: #e31e24;
  border-color: #e31e24;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Section 4: Map Section (Cach Footer 50px) --- */
.tan-contact-map-section {
  padding: 0 0 50px !important;
  margin-bottom: 10px;
}

.tan-map-wrapper {
  background: #ffffff;
  border: 1px solid #eef2f3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 22px 0 rgba(20, 45, 45, 0.07);
}

.tan-map-header {
  padding: 14px 20px;
  background: #f5f8f8;
  border-bottom: 1px solid #eef2f3;
  font-size: 13.5px;
  color: #6b7480;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.tan-map-link {
  color: #e31e24;
  text-decoration: none;
  font-weight: 600;
}

.tan-map-link:hover {
  text-decoration: underline;
}

.tan-map-iframe-box {
  height: 380px;
  width: 100%;
}

.tan-map-iframe-box iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Responsive cho Trang Lien He
   ========================================================================== */
@media only screen and (max-width: 992px) {
  .tan-quick-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .tan-contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media only screen and (max-width: 600px) {
  .tan-contact-title {
    font-size: 24px;
  }
  .tan-quick-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tan-quick-card {
    padding: 20px 16px;
  }
  .tan-contact-card {
    padding: 22px 16px;
  }
  .tan-form-heading {
    font-size: 20px;
  }
  .tan-form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tan-btn-pill-submit {
    width: 100%;
    justify-content: center;
  }
  .tan-form-actions {
    text-align: center;
  }
  .tan-brand-name {
    font-size: 20px;
  }
  .tan-info-item {
    gap: 10px;
  }
  .tan-info-icon-square {
    width: 36px;
    height: 36px;
  }
  .tan-map-iframe-box {
    height: 260px;
  }
  .tan-contact-map-section {
    padding-bottom: 40px !important;
  }
}
