/**
 * An Phát Packaging — Contact Page Stylesheet (Trang Liên Hệ)
 *
 * Bám sát khoảng 95% mẫu giao diện tham chiếu:
 * - Font chữ: Be Vietnam Pro
 * - Màu sắc chủ đạo:
 *   + Xanh navy đậm: #07365C / #052743 / #031B30
 *   + Cam nổi bật: #FF8A1E / #F57C0B
 *   + Xanh dương Zalo / Email / Website: #0068FF / #0B6EFD
 *   + Trắng: #FFFFFF
 *   + Nền phụ xám xanh nhạt: #F4F7FB
 */

:root {
  --ap-ct-navy: #07365c;
  --ap-ct-navy-dark: #052743;
  --ap-ct-navy-deeper: #031a2e;
  --ap-ct-orange: #ff8a1e;
  --ap-ct-orange-hover: #ea7609;
  --ap-ct-blue: #0068ff;
  --ap-ct-blue-hover: #0055d4;
  --ap-ct-white: #ffffff;
  --ap-ct-bg: #f4f7fb;
  --ap-ct-text: #0f2537;
  --ap-ct-text-body: #334155;
  --ap-ct-text-muted: #64748b;
  --ap-ct-border: #dbe5f0;
  --ap-ct-font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ap-ct-script-font: "Dancing Script", cursive;
}

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

.ap-contact-page {
  font-family: var(--ap-ct-font);
  color: var(--ap-ct-text);
  background-color: var(--ap-ct-bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.ap-contact-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   4.2. HERO BANNER (BÁM SÁT MẪU 95%)
   ========================================================================== */
.ap-contact-hero {
  position: relative;
  background: linear-gradient(115deg, #031b30 0%, #062f52 50%, #093d68 100%);
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ap-ct-white);
}

.ap-contact-hero__bg-left {
  position: absolute;
  inset: 0;
  width: 62%;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.ap-contact-hero__bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 80%, rgba(28, 134, 238, 0.28) 0%, transparent 45%),
    linear-gradient(90deg, rgba(3, 27, 48, 0.92) 0%, rgba(6, 47, 82, 0.88) 46%, rgba(6, 47, 82, 0.2) 65%, transparent 100%);
  pointer-events: none;
}

/* Phần hình sản phẩm bên phải với đường chéo phát sáng */
.ap-contact-hero__right-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
  pointer-events: none;
}

.ap-contact-hero__photo-wrap {
  position: absolute;
  inset: 0;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0% 100%);
  background: #e9eff5;
}

.ap-contact-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Đường chéo phát sáng xanh lam ngăn cách giữa nền navy và ảnh sản phẩm */
.ap-contact-hero__diagonal-beam {
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: 6.2%;
  width: 10px;
  background: linear-gradient(180deg, #60c5ff 0%, #1d9bf0 50%, #38bdf8 100%);
  box-shadow:
    0 0 22px 6px rgba(56, 189, 248, 0.75),
    -14px 0 34px 8px rgba(14, 116, 204, 0.55);
  transform: rotate(10.8deg);
  z-index: 3;
}

/* Ghi chú viết tay góc trên bên phải của ảnh Hero */
.ap-contact-hero__handnote {
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 4;
  color: #1e293b;
  text-align: center;
  transform: rotate(-4deg);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  padding: 6px 14px 4px;
  border-radius: 12px;
}

.ap-contact-hero__handnote p {
  font-family: var(--ap-ct-script-font);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #1e293b;
}

.ap-contact-hero__handnote-arrow {
  display: block;
  margin: 2px auto 0;
  color: #1e293b;
}

.ap-contact-hero__container {
  position: relative;
  z-index: 5;
  padding-top: 48px;
  padding-bottom: 48px;
}

.ap-contact-hero__content {
  max-width: 54%;
}

/* Breadcrumb: Trang chủ > Liên hệ */
.ap-contact-breadcrumb {
  margin-bottom: 14px;
}

.ap-contact-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.ap-contact-breadcrumb__item {
  margin: 0;
}

.ap-contact-breadcrumb__item a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ap-contact-breadcrumb__item a:hover {
  color: var(--ap-ct-orange);
}

.ap-contact-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.ap-contact-breadcrumb__item.is-current {
  color: var(--ap-ct-white);
  font-weight: 600;
}

/* H1: LIÊN HỆ VỚI AN PHÁT */
.ap-contact-hero__title {
  font-size: clamp(2.1rem, 3.5vw, 3.05rem);
  font-weight: 900;
  color: var(--ap-ct-white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 14px 0;
}

.ap-contact-hero__title span {
  color: var(--ap-ct-orange);
}

.ap-contact-hero__desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 28px 0;
}

/* 3 điểm nổi bật dạng icon */
.ap-contact-hero__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.ap-contact-hero__highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 0;
}

.ap-contact-hero__highlight-item:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: none;
}

.ap-contact-hero__highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(125, 211, 252, 0.65);
  background: rgba(14, 116, 204, 0.25);
  color: var(--ap-ct-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
}

.ap-contact-hero__highlight-text {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ap-ct-white);
  white-space: nowrap;
}

.ap-contact-hero__mobile-visual {
  display: none;
}

/* ==========================================================================
   4.3. KHU VỰC 5 CARD THÔNG TIN LIÊN HỆ
   ========================================================================== */
.ap-contact-cards-section {
  padding: 36px 0 18px;
}

.ap-contact-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
}

.ap-contact-info-card {
  flex: 0 1 calc((100% - 40px) / 3);
  min-width: 280px;
  background: var(--ap-ct-white);
  border: 1px solid #e4ecf5;
  border-radius: 16px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(7, 54, 92, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ap-contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(7, 54, 92, 0.1);
  border-color: #c8daec;
}

.ap-contact-info-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.ap-contact-info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ap-ct-white);
}

.ap-contact-info-card__icon--orange {
  background: linear-gradient(135deg, #ff9938 0%, var(--ap-ct-orange) 100%);
  box-shadow: 0 0 0 5px rgba(255, 138, 30, 0.14);
}

.ap-contact-info-card__icon--blue {
  background: linear-gradient(135deg, #1d82ff 0%, var(--ap-ct-blue) 100%);
  box-shadow: 0 0 0 5px rgba(0, 104, 255, 0.12);
}

.ap-contact-zalo-bubble {
  background: var(--ap-ct-white);
  color: var(--ap-ct-blue);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 6px;
  border-radius: 99px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ap-contact-info-card__body {
  min-width: 0;
  flex: 1;
}

.ap-contact-info-card__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 3px 0;
  line-height: 1.3;
}

.ap-contact-info-card__value {
  font-weight: 800;
  color: var(--ap-ct-navy);
  line-height: 1.3;
  margin-bottom: 4px;
  word-break: break-word;
}

.ap-contact-info-card__value a {
  color: var(--ap-ct-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ap-contact-info-card__value a:hover {
  color: var(--ap-ct-orange);
}

.ap-contact-info-card__value--large {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.ap-contact-info-card__value--email {
  font-size: 0.84rem;
  font-weight: 800;
  word-break: break-all;
}

.ap-contact-info-card__value--website a {
  font-size: 0.96rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ap-contact-info-card__value--address {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.42;
  color: var(--ap-ct-navy);
}

.ap-contact-info-card__desc {
  font-size: 0.78rem;
  color: var(--ap-ct-text-muted);
  margin: 0;
  line-height: 1.35;
}

.ap-contact-info-card__action {
  padding-left: 0;
  display: flex;
  justify-content: center;
}

.ap-contact-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.ap-contact-card-btn--orange {
  background: linear-gradient(135deg, #ff962e 0%, var(--ap-ct-orange) 100%);
  color: var(--ap-ct-white);
  border: 1px solid var(--ap-ct-orange);
  box-shadow: 0 4px 12px rgba(255, 138, 30, 0.28);
}

.ap-contact-card-btn--orange:hover {
  background: var(--ap-ct-orange-hover);
  color: var(--ap-ct-white);
}

.ap-contact-card-btn--blue {
  background: linear-gradient(135deg, #1b7dff 0%, var(--ap-ct-blue) 100%);
  color: var(--ap-ct-white);
  border: 1px solid var(--ap-ct-blue);
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.25);
}

.ap-contact-card-btn--blue:hover {
  background: var(--ap-ct-blue-hover);
  color: var(--ap-ct-white);
}

.ap-contact-card-btn--outline {
  background: var(--ap-ct-white);
  color: var(--ap-ct-navy);
  border: 1px solid #9ab8d7;
}

.ap-contact-card-btn--outline:hover {
  background: var(--ap-ct-navy);
  color: var(--ap-ct-white);
  border-color: var(--ap-ct-navy);
}

/* ==========================================================================
   4.4. KHU VỰC FORM LIÊN HỆ + HÌNH ẢNH GIỚI THIỆU (2 CỘT)
   ========================================================================== */
.ap-contact-main-section {
  padding: 20px 0 44px;
}

.ap-contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

/* Cột trái: Card Form Liên hệ */
.ap-contact-form-card {
  background: var(--ap-ct-white);
  border: 1px solid #e4ecf5;
  border-radius: 18px;
  padding: 34px 34px 32px;
  box-shadow: 0 10px 30px rgba(7, 54, 92, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ap-contact-form-card__header {
  margin-bottom: 22px;
}

.ap-contact-form-card__title {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--ap-ct-navy);
  text-transform: uppercase;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.ap-contact-form-card__bar {
  display: block;
  width: 48px;
  height: 3.5px;
  background: var(--ap-ct-orange);
  border-radius: 3px;
  margin-bottom: 12px;
}

.ap-contact-form-card__desc {
  font-size: 0.94rem;
  color: var(--ap-ct-text-body);
  margin: 0;
}

.ap-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ap-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.ap-contact-form__field--full {
  margin-bottom: 20px;
}

.ap-contact-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ap-contact-input-wrap__icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.ap-contact-input-wrap__icon--top {
  top: 15px;
}

.ap-contact-input-wrap__chevron {
  position: absolute;
  right: 14px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.ap-contact-form input[type="text"],
.ap-contact-form input[type="tel"],
.ap-contact-form input[type="email"],
.ap-contact-form select,
.ap-contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px 12px 42px;
  border: 1px solid #d5e0ec;
  border-radius: 10px;
  background-color: #f9fbfd;
  font-family: var(--ap-ct-font);
  font-size: 0.92rem;
  color: var(--ap-ct-text);
  margin: 0;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ap-contact-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.ap-contact-form textarea {
  min-height: 118px;
  padding-top: 13px;
  resize: vertical;
}

.ap-contact-form input::placeholder,
.ap-contact-form textarea::placeholder {
  color: #64748b;
  opacity: 1;
}

.ap-contact-form input:focus,
.ap-contact-form select:focus,
.ap-contact-form textarea:focus {
  outline: none;
  border-color: var(--ap-ct-blue);
  background-color: var(--ap-ct-white);
  box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.12);
}

.ap-contact-form__feedback {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.ap-contact-form__feedback.is-success {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #a6f4c5;
}

.ap-contact-form__feedback.is-error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.ap-contact-form__submit {
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff9429 0%, var(--ap-ct-orange) 50%, #f57906 100%);
  color: var(--ap-ct-white);
  font-family: var(--ap-ct-font);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 138, 30, 0.32);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ap-contact-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 138, 30, 0.42);
}

.ap-contact-form__submit-plane,
.ap-contact-form__submit-arrow {
  display: inline-flex;
  align-items: center;
}

/* Cột phải: Hình ảnh doanh nghiệp + Khối Overlay Xanh Navy Đậm */
.ap-contact-showcase {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: 0 10px 30px rgba(7, 54, 92, 0.08);
  background: var(--ap-ct-navy-dark);
  display: flex;
  align-items: center;
  padding: 32px;
}

.ap-contact-showcase__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ap-contact-showcase__overlay-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(160deg, rgba(6, 46, 80, 0.95) 0%, rgba(4, 30, 54, 0.96) 100%);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 30px 28px;
  color: var(--ap-ct-white);
  width: 100%;
  max-width: 370px;
  box-shadow: 0 18px 40px rgba(3, 24, 44, 0.42);
}

.ap-contact-showcase__brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ap-contact-showcase__brand-icon {
  color: var(--ap-ct-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-contact-showcase__title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ap-ct-white);
  margin: 0 0 3px 0;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.ap-contact-showcase__subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.ap-contact-showcase__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ap-contact-showcase__benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ap-ct-white);
  margin: 0;
}

.ap-contact-showcase__check {
  color: var(--ap-ct-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   4.5. CTA CUỐI TRANG
   ========================================================================== */
.ap-contact-cta {
  position: relative;
  background: linear-gradient(105deg, #031b30 0%, #062f52 55%, #093d68 100%);
  padding: 46px 0;
  color: var(--ap-ct-white);
  overflow: hidden;
}

.ap-contact-cta__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  pointer-events: none;
}

.ap-contact-cta__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #031b30 0%, rgba(5, 39, 67, 0.94) 52%, rgba(7, 54, 92, 0.65) 100%),
    radial-gradient(circle at 15% 50%, rgba(29, 155, 240, 0.22) 0%, transparent 45%);
  pointer-events: none;
}

.ap-contact-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.ap-contact-cta__text {
  max-width: 650px;
}

.ap-contact-cta__eyebrow {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ap-ct-orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.ap-contact-cta__title {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 900;
  color: var(--ap-ct-white);
  text-transform: uppercase;
  line-height: 1.22;
  margin: 0 0 10px 0;
}

.ap-contact-cta__title span {
  color: var(--ap-ct-orange);
}

.ap-contact-cta__desc {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.55;
}

.ap-contact-cta__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.ap-contact-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 225px;
  padding: 14px 24px;
  border-radius: 14px;
  color: var(--ap-ct-white);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ap-contact-cta-btn:hover {
  color: var(--ap-ct-white);
  transform: translateY(-3px);
}

.ap-contact-cta-btn--orange {
  background: linear-gradient(135deg, #ff962e 0%, var(--ap-ct-orange) 100%);
  box-shadow: 0 10px 26px rgba(255, 138, 30, 0.35);
}

.ap-contact-cta-btn--blue {
  background: linear-gradient(135deg, #1b7dff 0%, var(--ap-ct-blue) 100%);
  box-shadow: 0 10px 26px rgba(0, 104, 255, 0.35);
}

.ap-contact-cta-btn__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-contact-cta-btn__icon--zalo {
  background: var(--ap-ct-white);
  color: var(--ap-ct-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.ap-contact-cta-btn__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.ap-contact-cta-btn__content strong {
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.ap-contact-cta-btn__content small {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   MODAL CHI TIẾT ĐỊA CHỈ (KHÔNG DÙNG GOOGLE MAP)
   ========================================================================== */
.ap-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ap-contact-modal[hidden] {
  display: none !important;
}

.ap-contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 26, 46, 0.75);
  backdrop-filter: blur(4px);
}

.ap-contact-modal__dialog {
  position: relative;
  z-index: 2;
  background: var(--ap-ct-white);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(3, 26, 46, 0.35);
}

.ap-contact-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: var(--ap-ct-navy);
  font-size: 1.4rem;
  cursor: pointer;
}

.ap-contact-modal__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ap-ct-orange);
  background: rgba(255, 138, 30, 0.12);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.ap-contact-modal__title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ap-ct-navy);
  margin: 0 0 16px 0;
}

.ap-contact-modal__info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.ap-contact-modal__info-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
}

.ap-contact-modal__info-item strong {
  color: var(--ap-ct-navy);
  display: block;
  margin-bottom: 2px;
}

.ap-contact-modal__info-item a {
  color: var(--ap-ct-blue);
  font-weight: 700;
  text-decoration: none;
}

.ap-contact-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ==========================================================================
   7. RESPONSIVE (DESKTOP -> TABLET -> MOBILE)
   ========================================================================== */
@media (max-width: 1200px) {
  .ap-contact-nav__list {
    gap: 18px;
  }
}

@media (max-width: 992px) {
  /* Header Mobile/Tablet Burger */
  .ap-contact-header__burger {
    display: inline-flex;
  }

  .ap-contact-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ap-ct-white);
    border-bottom: 1px solid var(--ap-ct-border);
    box-shadow: 0 12px 28px rgba(7, 54, 92, 0.12);
    padding: 14px 20px;
    display: none;
  }

  .ap-contact-nav.is-open {
    display: block;
  }

  .ap-contact-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ap-contact-nav__link {
    padding: 10px 0;
    width: 100%;
  }

  .ap-contact-nav__link.is-active::after {
    bottom: 4px;
    width: 48px;
  }

  /* Hero xếp dọc trên Tablet/Mobile */
  .ap-contact-hero__right-visual {
    display: none;
  }

  .ap-contact-hero__bg-left {
    width: 100%;
  }

  .ap-contact-hero__content {
    max-width: 100%;
  }

  .ap-contact-hero__mobile-visual {
    display: block;
    margin-top: 28px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 12px 30px rgba(3, 27, 48, 0.35);
  }

  .ap-contact-hero__mobile-img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Tablet: Card xuống 2 hàng cân đối & căn giữa */
  .ap-contact-info-card {
    flex: 0 1 calc((100% - 20px) / 2);
  }

  /* Form và hình ảnh xếp dọc */
  .ap-contact-main-grid {
    grid-template-columns: 1fr;
  }

  /* CTA cuối trang xếp dọc cân đối */
  .ap-contact-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ap-contact-cta__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .ap-contact-cta-btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .ap-contact-hero__container {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .ap-contact-hero__highlights {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ap-contact-hero__highlight-item {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .ap-contact-cards-grid {
    gap: 14px;
  }

  .ap-contact-info-card {
    flex: 0 1 100%;
  }

  .ap-contact-form-card {
    padding: 24px 20px;
  }

  .ap-contact-form__row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ap-contact-showcase {
    padding: 20px;
    min-height: 380px;
  }

  .ap-contact-showcase__overlay-card {
    max-width: 100%;
    padding: 24px 20px;
  }

  .ap-contact-cta__actions {
    flex-direction: column;
  }

  .ap-contact-cta-btn {
    width: 100%;
  }

  .ap-contact-modal__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ap-contact-header__hotline {
    padding: 9px 14px;
    font-size: 0.85rem;
  }

  .ap-contact-logo__ap {
    font-size: 1.65rem;
  }

  .ap-contact-logo__brand {
    font-size: 0.92rem;
  }
}
