/* =========================================
   HERO HỢP TÁC (BACKGROUND FULL WIDTH)
   ========================================= */
.dp-hero {
  position: relative; 
  height: 600px; 
  margin-top: 80px;
  background-color: var(--color-primary); 
  overflow: hidden;
}

.dp-hero__bg { 
  position: absolute; 
  top: 0; left: 0; 
  width: 100%; height: 100%; 
  z-index: 1; 
}

.dp-hero__bg-img { 
  width: 100%; height: 100%; 
  object-fit: cover; 
  object-position: right center; 
}

/* Lớp cắt chéo */
.dp-hero__shape {
  position: absolute; 
  top: 0; left: 0; bottom: 0; 
  width: 55%;
  background-color: var(--color-primary);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%); 
  z-index: 2;
}

.dp-hero__inner { 
  position: relative; 
  z-index: 3; 
  display: flex; 
  align-items: center; /* Ép chữ nằm giữa theo chiều dọc */
  width: 100%; 
  height: 100%; 
}

/* Cột Trái */
.dp-hero__left { width: 55%; color: var(--color-white); padding-right: 40px; }
.dp-hero__subtitle { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; opacity: 0.9; }
.dp-hero__title { font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.dp-hero__desc { font-size: 15px; line-height: 1.6; opacity: 0.85; margin-bottom: 32px; max-width: 90%; }
.dp-hero__actions { display: flex; gap: 16px; margin-bottom: 40px; }

.dp-hero__features { display: flex; gap: 24px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; }
.dp-feat { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; opacity: 0.9; line-height: 1.3; }
.dp-feat .icon { width: 24px; height: 24px; flex-shrink: 0; }

/* Cột Phải */
.dp-hero__right { flex: 1; display: flex; justify-content: flex-end; align-items: flex-end; height: 100%; padding-bottom: 60px; }
.dp-hero-badge { 
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); 
  padding: 24px 32px; border-radius: 8px; color: var(--color-white);
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 24px; line-height: 1.3; text-align: left;
}

/* Responsive */
@media (max-width: 1199px) {
  .dp-hero__shape { width: 60%; clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%); }
  .dp-hero__left { width: 60%; }
}
@media (max-width: 991px) {
  .dp-hero { height: auto; padding: 60px 0; }
  .dp-hero__shape { width: 100%; clip-path: none; background: linear-gradient(to right, rgba(17,27,87,1) 40%, rgba(17,27,87,0.7) 100%); }
  .dp-hero__inner { flex-direction: column; gap: 40px; }
  .dp-hero__left, .dp-hero__right { width: 100%; padding: 0; }
  .dp-hero__right { justify-content: flex-start; height: auto; padding-bottom: 0; }
  .dp-hero-badge { margin-top: 20px; }
}
/* =========================================
   VÌ SAO (WHY) CARDS
   ========================================= */
.dp-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dp-why-card { background: var(--color-white); padding: 32px 24px; border-radius: 12px; border: 1px solid var(--color-border); transition: 0.3s; }
.dp-why-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.05); }
.dp-why-icon { width: 48px; height: 48px; color: var(--color-primary); margin-bottom: 20px; }
.dp-why-icon .icon { width: 100%; height: 100%; }
.dp-why-card h3 { font-size: 16px; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; }
.dp-why-card p { font-size: 13.5px; color: #555; line-height: 1.5; }

/* =========================================
   HỆ THỐNG HỖ TRỢ
   ========================================= */
.dp-support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dp-support-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.ds-img { width: 100%; height: 160px; object-fit: cover; }
.ds-body { padding: 24px; }
.ds-body h4 { font-size: 16px; font-weight: 700; color: var(--color-primary); margin-bottom: 16px; }
.ds-body ul { list-style: none; padding: 0; margin: 0; }
.ds-body li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #444; margin-bottom: 12px; line-height: 1.4; }
.ds-body li .icon { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

/* =========================================
   MẠNG LƯỚI
   ========================================= */
.dp-network-sec { background: var(--color-primary); padding: 80px 0; overflow: hidden; }
.dp-network-inner { display: flex; align-items: center; justify-content: space-between; }
.dp-network-content { width: 55%; color: var(--color-white); }
.dp-network-content h2 {color: #fff}
.dp-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; }
.dp-stats-grid strong { display: block; font-size: 48px; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.dp-stats-grid span { font-size: 15px; opacity: 0.8; }
.dp-network-quote { font-family: 'Playfair Display', serif; font-size: 20px; font-style: italic; opacity: 0.9; line-height: 1.4; }

.dp-network-map { width: 40%; position: relative; }
.dp-network-map img { width: 100%; max-height: 500px; object-fit: contain; }
.map-legends { position: absolute; right: 0; top: 20%; color: var(--color-white); text-align: left; }
.map-legends p { font-size: 12px; font-weight: 600; letter-spacing: 1px; margin-bottom: 12px; line-height: 1.4; opacity: 0.8; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 12px; }
.map-legends ul { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.map-legends li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ED1C24; box-shadow: 0 0 0 3px rgba(237,28,36,0.3); }
.dot.white { background: #FFF; box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }

/* =========================================
   HÀNH TRÌNH HỢP TÁC
   ========================================= */
.dp-journey { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 40px; }
.dj-step { flex: 1; text-align: center; padding: 0 12px; }
.dj-num { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--color-primary); color: #FFF; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(17,27,87,0.2); }
.dj-step h4 { font-size: 15px; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; }
.dj-step p { font-size: 13px; color: #666; line-height: 1.4; }
.dj-arrow { color: #CCC; margin-top: 20px; }
.dj-arrow .icon { width: 24px; height: 24px; }

/* =========================================
   TESTIMONIALS
   ========================================= */
.dp-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dp-testi-card { background: #F8F9FA; padding: 32px 24px; border-radius: 12px; border: 1px solid var(--color-border); }
.dt-quote-icon { font-family: 'Playfair Display', serif; font-size: 60px; color: var(--color-primary); opacity: 0.2; line-height: 0.6; margin-bottom: 12px; }
.dt-content { font-size: 14px; color: #444; line-height: 1.6; margin-bottom: 24px; font-style: italic; min-height: 66px; }
.dt-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid #E5E5E5; padding-top: 16px; }
.dt-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.dt-author div { display: flex; flex-direction: column; }
.dt-author strong { font-size: 14px; color: var(--color-primary); font-weight: 700; }
.dt-author span { font-size: 12px; color: #777; }

/* =========================================
   FORM ĐIỀU KIỆN & ĐĂNG KÝ
   ========================================= */
.dp-form-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; }
.dp-conditions { padding-right: 20px; }
.dc-list { list-style: none; padding: 0; margin: 0 0 32px 0; }
.dc-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--color-text); margin-bottom: 16px; font-weight: 500; }
.dc-list .icon { width: 24px; height: 24px; color: var(--color-primary); flex-shrink: 0; }
.dc-highlight { display: flex; align-items: center; gap: 16px; background: #EAEBF0; padding: 20px; border-radius: 8px; border-left: 4px solid var(--color-primary); }
.dc-highlight .icon { width: 40px; height: 40px; color: var(--color-primary); flex-shrink: 0; }
.dc-highlight p { font-size: 14px; font-weight: 600; color: var(--color-primary); margin: 0; }

.dp-form-box { background: var(--color-white); padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid var(--color-border); }
.checkbox-group { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #666; }
.checkbox-group input { margin-top: 3px; cursor: pointer; width: auto; }
.checkbox-group a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }
.error-message.block { display: none; width: 100%; margin-top: 4px; }
.is-invalid .error-message.block { display: block; }

/* Tái sử dụng form style từ consultation.css */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; position: relative; }
.consult-form input, .consult-form select, .consult-form textarea { width: 100%; background: #F8F9FA; border: 1px solid #E5E5E5; border-radius: 4px; padding: 12px 16px; font-size: 14px; font-family: inherit; transition: 0.2s; outline: none; }
.consult-form input:focus, .consult-form select:focus, .consult-form textarea:focus { border-color: var(--color-primary); background: #FFF; }
.consult-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.error-message { display: none; color: #FF4D4F; font-size: 12px; margin-top: 4px; font-weight: 500; }
.form-group.is-invalid input, .form-group.is-invalid select { border-color: #FF4D4F; 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: 16px; }

/* =========================================
   BOTTOM CTA (CHUẨN THIẾT KẾ)
   ========================================= */
.dp-bottom-cta { 
  position: relative; 
  background: var(--color-primary); 
  padding: 80px 0; 
  overflow: hidden; 
}

.dp-bcta-bg { 
  position: absolute; 
  inset: 0; 
  z-index: 1; 
}

/* Ép ảnh tòa nhà sang phải */
.dp-bcta-bg img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center right; 
}

/* Lớp phủ Gradient xanh mờ dần từ trái sang phải */
.dp-bcta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(17,27,87,1) 0%, rgba(17,27,87,0.7) 45%, rgba(17,27,87,0) 100%);
}

.dp-bcta-inner { 
  position: relative; 
  z-index: 2; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}

.dp-bcta-content { 
  width: 50%; 
}

/* Ép chữ bên trái thành màu trắng rực rỡ */
.dp-bcta-content .subtitle,
.dp-bcta-content .heading-primary,
.dp-bcta-content p {
  color: #FFFFFF !important;
}

/* Xử lý câu slogan dạng chữ ký bên phải */
.dp-bcta-quote { 
  /* Dùng font chữ ký (Dancing Script) hoặc fallback về Playfair italic */
  font-family: 'Dancing Script', 'Playfair Display', cursive, serif; 
  font-size: clamp(32px, 4vw, 42px); 
  font-style: italic; 
  color: var(--color-white); 
  text-align: right; 
  line-height: 1.3; 
  display: flex; 
  flex-direction: column; 
  align-items: flex-end; 
}

/* Vạch kẻ đỏ dưới chữ ký */
.dp-bcta-quote::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #ED1C24;
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 991px) {
  .dp-bcta-bg::after { background: rgba(17,27,87,0.8); } /* Trên mobile phủ xanh đều cho dễ đọc */
  .dp-bcta-inner { flex-direction: column; text-align: center; gap: 40px; }
  .dp-bcta-content { width: 100%; }
  .dp-bcta-quote { align-items: center; text-align: center; font-size: 32px; }
}
/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1199px) {
  .dp-hero__inner { flex-direction: column; text-align: center; gap: 40px; padding-top: 40px; }
  .dp-hero__content { width: 100%; padding-bottom: 0; display: flex; flex-direction: column; align-items: center; }
  .dp-hero__desc { max-width: 100%; }
  .dp-hero__features { flex-wrap: wrap; justify-content: center; }
  .dp-hero__image { width: 80%; }
  .dp-hero-badge { right: 0; bottom: 40px; }
  
  .dp-why-grid, .dp-support-grid, .dp-testi-grid { grid-template-columns: repeat(2, 1fr); }
  .dp-form-layout { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .dp-network-inner { flex-direction: column; gap: 40px; }
  .dp-network-content, .dp-network-map { width: 100%; }
  
  .dp-journey { flex-direction: column; gap: 24px; align-items: flex-start; }
  .dj-step { display: flex; align-items: center; text-align: left; gap: 16px; padding: 0; }
  .dj-num { margin: 0; flex-shrink: 0; width: 48px; height: 48px; font-size: 16px; }
  .dj-arrow { display: none; }
  
  .dp-bcta-inner { flex-direction: column; text-align: center; gap: 32px; }
  .dp-bcta-content { width: 100%; }
  .dp-bcta-quote { text-align: center; }
}

@media (max-width: 767px) {
  .dp-why-grid, .dp-support-grid, .dp-testi-grid { grid-template-columns: 1fr; }
  .dp-stats-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .map-legends { position: relative; top: 0; margin-top: 24px; text-align: center; }
  .map-legends p { border-bottom: none; }
  .map-legends ul { display: flex; justify-content: center; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .dp-form-box { padding: 24px; }
}

/* =========================================
   FIX LỖI KHOẢNG CÁCH DÒNG & BỐ CỤC FORM
   ========================================= */

/* 1. Kéo giãn không gian cột trái (Điều kiện hợp tác) */
.dp-conditions h2 { margin-bottom: 20px !important; }
.dp-conditions > p { margin-bottom: 32px !important; line-height: 1.6; }
.dc-list li { 
  margin-bottom: 20px !important; 
  line-height: 1.5; 
  align-items: flex-start !important; /* Đẩy icon lên ngang hàng với dòng đầu */
}
.dc-list li .icon { margin-top: 2px; } 

/* 2. Kéo giãn khoảng cách các ô nhập liệu trong Form */
.dp-form-box h3 { margin-bottom: 12px !important; }
.dp-form-box > p { margin-bottom: 32px !important; line-height: 1.5; }
.form-group { margin-bottom: 24px !important; }

/* 3. Chữa bệnh ô Checkbox bị văng 2 nơi */
.checkbox-group {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
}
.checkbox-group input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex-shrink: 0;
}
.checkbox-group label {
  text-align: left !important;
  margin: 0 !important;
  font-size: 14px;
}

/* 4. Ép nút "Gửi đăng ký" căng tròn 100% */
.dp-form-box button[type="submit"] {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin-top: 8px;
  padding: 14px; /* Tăng độ dày cho nút bấm dễ hơn */
}
/* =========================================
   FIX MÀU CHỮ BỊ ĐEN Ở BOTTOM CTA
   ========================================= */
.dp-bcta-content .subtitle,
.dp-bcta-content .heading-primary,
.dp-bcta-content p {
  color: #FFFFFF !important;
}