/* ============================================
   CONTACT PAGE - BANNER
   ============================================ */

.ctc-banner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.ctc-banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ctc-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.9) 0%, rgba(26, 140, 62, 0.8) 100%);
  z-index: 1;
}

/* ============================================
   CONTACT INFO CARDS
   ============================================ */

.ctc-info-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid transparent !important;
}

.ctc-info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.col-lg-3:nth-child(1) .ctc-info-card:hover {
  border-bottom-color: #0d6efd !important;
}

.col-lg-3:nth-child(2) .ctc-info-card:hover {
  border-bottom-color: #1a8c3e !important;
}

.col-lg-3:nth-child(3) .ctc-info-card:hover {
  border-bottom-color: #ffc107 !important;
}

.col-lg-3:nth-child(4) .ctc-info-card:hover {
  border-bottom-color: #dc3545 !important;
}

.ctc-info-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.ctc-info-card:hover .ctc-info-icon {
  transform: scale(1.1);
}

.ctc-info-icon i {
  font-size: 2rem;
}

/* ============================================
   CONTACT FORM SECTION
   ============================================ */

.ctc-form-section {
  background: linear-gradient(180deg, #f8fdf9 0%, #f0f4f8 100%);
}

.ctc-form-card {
  border-radius: 16px;
  overflow: hidden;
}

.ctc-form-card .form-control, .ctc-form-card .form-select {
  border-color: #e0e0e0;
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ctc-form-card .form-control:focus, .ctc-form-card .form-select:focus {
  border-color: #1a8c3e;
  box-shadow: 0 0 0 0.2rem rgba(26, 140, 62, 0.15);
}

.ctc-form-card .input-group-text {
  border-color: #e0e0e0;
  font-size: 0.9rem;
}

.ctc-submit-btn {
  background: linear-gradient(135deg, #1a8c3e, #0d6efd);
  border: none;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ctc-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 140, 62, 0.3);
  background: linear-gradient(135deg, #157a34, #0b5ed7);
}

/* ============================================
   MAP CARD
   ============================================ */

.ctc-map-card {
  border-radius: 16px;
}

.ctc-map-wrapper {
  height: 400px;
}

.ctc-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   SOCIAL CARDS
   ============================================ */

.ctc-social-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ctc-social-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.ctc-social-card h6 {
  color: #333;
}

.ctc-social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  transition: transform 0.3s ease;
}

.ctc-social-card:hover .ctc-social-icon {
  transform: scale(1.15);
}

.ctc-social-facebook {
  background: linear-gradient(135deg, #1877f2, #0d65d9);
}

.ctc-social-zalo {
  background: linear-gradient(135deg, #0068ff, #0054cc);
}

.ctc-social-linkedin {
  background: linear-gradient(135deg, #0a66c2, #084e96);
}

.ctc-social-youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

.ctc-social-tiktok {
  background: linear-gradient(135deg, #010101, #333333);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.ctc-faq-section {
  background: #fff;
}

.ctc-faq-section .accordion-button {
  font-size: 0.95rem;
  padding: 1.1rem 1.3rem;
  background: #fff;
  color: #0a2540;
}

.ctc-faq-section .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(26, 140, 62, 0.05), rgba(13, 110, 253, 0.05));
  color: #1a8c3e;
  box-shadow: none;
}

.ctc-faq-section .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(26, 140, 62, 0.2);
}

.ctc-faq-section .accordion-button::after {
  transition: transform 0.3s ease;
}

.ctc-faq-section .accordion-body {
  font-size: 0.9rem;
  line-height: 1.8;
  padding: 0.8rem 1.3rem 1.3rem;
}

.ctc-faq-section .accordion-item {
  transition: box-shadow 0.3s ease;
}

.ctc-faq-section .accordion-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
  .ctc-map-wrapper {
    height: 300px;
  }
}

@media (max-width: 767.98px) {
  .ctc-banner {
    min-height: 220px;
  }
}

@media (max-width: 767.98px) {
  .ctc-map-wrapper {
    height: 250px;
  }
}

@media (max-width: 767.98px) {
  .ctc-social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

@media (max-width: 767.98px) {
  .ctc-form-card .card-body {
    padding: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .ctc-info-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 575.98px) {
  .ctc-info-icon i {
    font-size: 1.5rem;
  }
}

/*
 * Sao Viet theme addition (not part of the ported /reference file):
 * Contact Form 7's default stylesheet is disabled (wpcf7_load_css
 * filter), so its automatic .wpcf7-response-output message box has no
 * styling of its own. This approximates the look of the original
 * static design's #contactSuccess alert box.
 */
.ctc-form-card .wpcf7-response-output {
  margin: 1.5rem 0 0;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
}

.ctc-form-card .wpcf7-form.sent .wpcf7-response-output {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.ctc-form-card .wpcf7-form.invalid .wpcf7-response-output,
.ctc-form-card .wpcf7-form.unaccepted .wpcf7-response-output,
.ctc-form-card .wpcf7-form.payment-required .wpcf7-response-output {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.ctc-form-card .wpcf7-form.spam .wpcf7-response-output,
.ctc-form-card .wpcf7-form.aborted .wpcf7-response-output,
.ctc-form-card .wpcf7-form.failed .wpcf7-response-output {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.ctc-form-card .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #dc3545;
}

/*
 * CF7 wraps every field in <span class="wpcf7-form-control-wrap">,
 * putting the actual .form-control input one DOM level deeper than
 * /reference's static markup had it. display:contents removes that
 * span from the box tree, which is enough for it to become a flex
 * item of .input-group directly — but Bootstrap's own child-combinator
 * rules (.input-group > .form-control, for flex-sizing and border-
 * radius joining) match against the DOM tree, not the box tree, so
 * display:contents alone does NOT make them match: the span is still
 * there in markup. Without Bootstrap's override, .form-control's own
 * base "width: 100%" rule wins, so the field tries to fill the row's
 * full width and wraps onto its own line below the icon box instead
 * of sitting beside it. Bootstrap's other child-combinator rule
 * (negative margin-left + flattened left corner, merging the field's
 * border into the icon box's) targets the wrapper span itself, which
 * DOES match — but has no visible effect once that span is
 * display:contents, since box properties on a display:contents
 * element are ignored. All of it — flex-sizing, the flattened corner,
 * and the merged border — is reapplied here directly via a descendant
 * selector, which matches regardless of the wrapper (every
 * .input-group here has exactly one icon box followed by one wrapped
 * field, so this is unconditional).
 */
.ctc-form-card .input-group .wpcf7-form-control-wrap {
  display: contents;
}

.ctc-form-card .input-group .wpcf7-form-control-wrap .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  margin-left: calc(-1 * var(--bs-border-width));
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

