/* =========================================
   HERO LIÊN HỆ (Diagonal Cut)
   ========================================= */
.contact-hero { position: relative; min-height: 500px; margin-top: 80px; background-color: var(--color-primary); display: flex; align-items: center; overflow: hidden; }
.ch-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.ch-img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.ch-shape { position: absolute; top: 0; left: 0; bottom: 0; width: 55%; background-color: var(--color-primary); clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%); z-index: 2; }

.ch-inner { position: relative; z-index: 3; display: flex; width: 100%; }
.ch-left { width: 55%; color: var(--color-white); padding-right: 60px; padding-top: 60px; padding-bottom: 40px;}
.ch-subtitle { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; opacity: 0.9; font-weight: 600; }
.ch-title { font-size: clamp(36px, 4vw, 56px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.ch-desc { font-size: 16px; line-height: 1.6; opacity: 0.85; margin-bottom: 40px; max-width: 90%; }

.ch-features { display: flex; gap: 32px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 24px; }
.ch-feat { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; font-weight: 500; opacity: 0.9; line-height: 1.4; }
.ch-feat .icon { width: 24px; height: 24px; flex-shrink: 0; }

.ch-right { width: 45%; display: flex; justify-content: flex-end; align-items: center; }
.ch-menu-box { background: rgba(17,27,87,0.85); backdrop-filter: blur(8px); padding: 32px; border-left: 4px solid #ED1C24; color: #FFF; min-width: 280px; }
.ch-menu-box h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; font-weight: 700; opacity: 0.9; }
.ch-menu-box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.ch-menu-box a { color: #FFF; text-decoration: none; font-size: 15px; font-weight: 600; transition: 0.2s; display: block; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 16px; }
.ch-menu-box li:last-child a { border-bottom: none; padding-bottom: 0; }
.ch-menu-box a:hover { color: #ED1C24; padding-left: 8px; }

/* =========================================
   FORM & THÔNG TIN LIÊN HỆ
   ========================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

/* Cột Form (Tái sử dụng style form) */
.c-form .form-group { margin-bottom: 20px; }
.c-form label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.c-form input:not([type="checkbox"]), .c-form select, .c-form textarea { width: 100%; border: 1px solid #E5E5E5; border-radius: 4px; padding: 12px 16px; font-size: 14px; font-family: inherit; transition: 0.2s; outline: none; background: #FFF; }
.c-form input:focus, .c-form select:focus, .c-form textarea:focus { border-color: var(--color-primary); }

.select-wrapper { position: relative; }
.select-wrapper::after { content: ''; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #666; pointer-events: none; }
.c-form select { appearance: none; padding-right: 40px; cursor: pointer; }

.error-message { display: none; color: #ED1C24; font-size: 12px; margin-top: 6px; font-weight: 500; }
.form-group.is-invalid input, .form-group.is-invalid select, .form-group.is-invalid textarea { border-color: #ED1C24; background-color: #FFF2F2; }
.form-group.is-invalid .error-message { display: block; }
.form-success { background: #E6F4EA; color: #1E8E3E; padding: 16px; border-radius: 4px; font-size: 14px; font-weight: 600; text-align: center; margin-top: 24px; border: 1px solid #C3E6CB; }
.c-form {
  margin-top: 32px !important; 
}
/* Làm mờ chữ placeholder của thẻ select */
.c-form select:invalid {
  color: #777; 
}
.c-form select option {
  color: #333; /* Chữ các tùy chọn xổ xuống vẫn màu đen đậm */
}
/* =========================================
   FIX CHECKBOX GROUP CÙNG DÒNG
   ========================================= */
.checkbox-group {
  display: flex;
  align-items: center; /* Canh giữa ô vuông và chữ */
  flex-wrap: wrap; /* Cho phép dòng báo lỗi rớt xuống dưới */
}

/* Khống chế kích thước ô checkbox */
.checkbox-group input[type="checkbox"] {
  width: 16px !important;
  height: 16px;
  margin-right: 8px;
  cursor: pointer;
}

/* Ép label nằm ngang, bỏ margin bottom */
.checkbox-group label {
  display: inline-block !important; /* Đè cái display: block cũ đi */
  margin-bottom: 0 !important;
  font-weight: 500;
  cursor: pointer;
}

/* Ép thông báo lỗi luôn rớt xuống dòng mới */
.checkbox-group .error-message {
  flex-basis: 100%;
  margin-top: 4px;
}

/* File Upload UI */
.file-upload-box { border: 1px dashed #CCC; background: #F8F9FA; border-radius: 4px; padding: 20px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: 0.2s; margin-top: 8px; }
.file-upload-box:hover { border-color: var(--color-primary); background: #F1F4F9; }
.file-icon { width: 40px; height: 40px; background: #FFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #999; box-shadow: 0 2px 4px rgba(0,0,0,0.05); flex-shrink: 0; }
.file-text strong { display: block; font-size: 14px; color: var(--color-primary); margin-bottom: 4px; }
.file-text span { font-size: 12px; color: #777; }

/* Cột Info Cards */
.ci-box { background: #F8F9FA; padding: 40px; border-radius: 12px; height: 100%; border: 1px solid var(--color-border); }
.ci-box h3 { font-size: 20px; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; }
.ci-box > p { font-size: 14px; color: #555; margin-bottom: 32px; line-height: 1.5; }
.ci-cards { display: flex; flex-direction: column; gap: 16px; }
.ci-card { display: flex; align-items: center; gap: 20px; background: #FFF; padding: 20px; border-radius: 8px; text-decoration: none; border: 1px solid #E5E5E5; transition: 0.3s; position: relative; }
.ci-card:hover { border-color: var(--color-primary); box-shadow: 0 10px 20px rgba(17,27,87,0.05); transform: translateY(-2px); }
.ci-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary); color: #FFF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-icon .icon { width: 20px; height: 20px; }
.ci-content span { display: block; font-size: 13px; color: #666; margin-bottom: 4px; }
.ci-content strong { display: block; font-size: 18px; color: var(--color-primary); font-weight: 700; margin-bottom: 4px; }
.ci-content small { font-size: 13px; color: #777; }
.ci-card .arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #CCC; transition: 0.3s; }
.ci-card:hover .arrow { color: #ED1C24; right: 16px; }

/* =========================================
   TRỤ SỞ CHÍNH
   ========================================= */
.hq-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.hq-address { display: flex; align-items: flex-start; gap: 16px; margin: 32px 0 20px; }
.hq-address .icon { width: 32px; height: 32px; color: var(--color-primary); flex-shrink: 0; }
.hq-address strong { display: block; font-size: 18px; color: var(--color-primary); margin-bottom: 8px; }
.hq-address p { font-size: 15px; color: #555; line-height: 1.5; margin: 0; }
.hq-desc { font-size: 14px; color: #666; font-style: italic; border-left: 3px solid #ED1C24; padding-left: 16px; line-height: 1.5; }

.hq-features { display: flex; gap: 32px; border-top: 1px solid var(--color-border); padding-top: 32px; }
.hq-feat { display: flex; flex-direction: column; gap: 12px; }
.hq-feat .icon { width: 24px; height: 24px; color: var(--color-primary); }
.hq-feat span { font-size: 13px; color: #666; line-height: 1.4; }
.hq-feat strong { color: var(--color-primary); font-size: 14px; }

.hq-info a {color: red;}

.hq-map { position: relative; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.map-placeholder { position: relative; aspect-ratio: 4/3; }
.map-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.map-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; background: #FFF; padding: 12px 20px; border-radius: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.map-pin .icon { width: 32px; height: 32px; }
.map-pin span { font-size: 13px; color: #666; line-height: 1.3; }
.map-pin strong { color: var(--color-primary); font-size: 16px; display: block; }

/* =========================================
   VĂN PHÒNG ĐẠI DIỆN
   ========================================= */
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.office-card { background: #FFF; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; transition: 0.3s; }
.office-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: #CCC; transform: translateY(-4px); }
.oc-img { aspect-ratio: 16/9; overflow: hidden; }
.oc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.office-card:hover .oc-img img { transform: scale(1.05); }
.oc-body { padding: 24px; }
.oc-line { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.oc-line:last-child { margin-bottom: 0; padding-top: 20px; border-top: 1px solid #F0F0F0; }
.oc-line .icon { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.oc-line strong { display: block; font-size: 15px; color: var(--color-primary); margin-bottom: 4px; }
.oc-line p { font-size: 13px; color: #666; line-height: 1.5; margin: 0; }
.oc-line.link { text-decoration: none; align-items: center; }
.oc-line.link:hover strong { color: #ED1C24; }
.oc-line.link .arrow { margin-left: auto; width: 16px; height: 16px; color: #CCC; }
.mb-lg p {margin-bottom: 20px;}
/* =========================================
   THỜI GIAN & FAQ
   ========================================= */
.bottom-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.wh-card { background: #FFF; border: 1px solid var(--color-border); border-radius: 8px; padding: 32px; display: flex; align-items: flex-start; gap: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.wh-icon { width: 48px; height: 48px; color: var(--color-primary); flex-shrink: 0; }
.wh-card strong { display: block; font-size: 16px; color: #555; margin-bottom: 8px; }
.wh-time { font-size: 32px; font-weight: 800; color: var(--color-primary); margin-bottom: 12px; line-height: 1; }
.wh-card p { font-size: 13px; color: #777; line-height: 1.5; margin: 0; }
.wh-note { font-size: 14px; color: #666; font-style: italic; margin-top: 20px; }

.btn-link { font-size: 14px; font-weight: 700; color: var(--color-primary); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.btn-link:hover { color: #ED1C24; }

/* Tái sử dụng Accordion từ trang khác */
.accordion { border-top: 1px solid var(--color-border); }
.acc-item { border-bottom: 1px solid var(--color-border); }
.acc-btn { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-size: 15px; font-weight: 600; color: var(--color-text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.2s; outline: none; }
.acc-btn:hover, .acc-btn[aria-expanded="true"] { color: var(--color-primary); }
.acc-icon { font-size: 24px; font-weight: 400; color: #999; transition: transform 0.3s; }
.acc-btn[aria-expanded="true"] .acc-icon { transform: rotate(45deg); color: var(--color-primary); }
.acc-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.acc-inner { padding-bottom: 20px; font-size: 14px; color: #555; line-height: 1.6; }

/* =========================================
   BOTTOM CTA
   ========================================= */
.contact-cta { position: relative; background: var(--color-primary); padding: 60px 0; overflow: hidden; }
.c-cta-bg { position: absolute; inset: 0; opacity: 0.1; }
.c-cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.c-cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.c-cta-content { color: #FFF; width: 45%; }
.c-cta-content .subtitle { color: #FFF; font-size: 12px; font-weight: 600; opacity: 0.8; letter-spacing: 1px; }
.c-cta-content .heading-primary { color: #FFF; }
.c-cta-action { width: 25%; display: flex; justify-content: center; }
.c-cta-quote { width: 30%; font-size: 28px; font-weight: 800; color: #FFF; opacity: 0.1; text-align: right; line-height: 1.1; letter-spacing: 2px; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1199px) {
  .ch-shape { width: 65%; clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%); }
  .ch-left { width: 60%; }
  .ch-right { display: none; } /* Giấu menu phụ trên mobile/tablet cho thoáng */
  
  .contact-grid, .hq-wrapper, .bottom-grid { gap: 40px; }
  .office-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .ch-shape { width: 100%; clip-path: none; background: linear-gradient(to right, rgba(17,27,87,1) 40%, rgba(17,27,87,0.7) 100%); }
  .ch-left { width: 100%; padding-right: 0; }
  .ch-features { flex-wrap: wrap; }
  
  .contact-grid, .hq-wrapper, .bottom-grid { grid-template-columns: 1fr; }
  .hq-info { order: 2; }
  .hq-map { order: 1; }
  .ci-box { padding: 32px 24px; }
  
  .c-cta-inner { flex-direction: column; text-align: center; gap: 32px; }
  .c-cta-content, .c-cta-action { width: 100%; }
  .c-cta-quote { display: none; }
}
@media (max-width: 767px) {
  .form-row { grid-template-columns: 1fr; }
  .hq-features { flex-direction: column; gap: 20px; }
  .office-grid { grid-template-columns: 1fr; }
  .wh-card { flex-direction: column; gap: 16px; padding: 24px; }
}