/* ==========================================================================
   NEXT 3D - CONTACT PAGE STYLESHEET
   Brand Identity: Dark Aquamarine (#0A4640), Deep Aquamarine (#052824),
   Neon Ice Blue (#DEF1FB), Pear Lime (#DBE134)
   ========================================================================== */

/* 1. Breadcrumb */
.n3d-contact-breadcrumb {
  background: var(--n3d-deep);
  border-bottom: 1px solid rgba(222, 241, 251, 0.1);
  padding: 12px 0;
}

.n3d-contact-breadcrumb nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #A3C9C4;
}

.n3d-contact-breadcrumb a {
  color: #A3C9C4;
}

.n3d-contact-breadcrumb a:hover {
  color: var(--n3d-pear);
}

.n3d-contact-breadcrumb .separator {
  font-size: 10px;
  opacity: 0.5;
}

.n3d-contact-breadcrumb .current {
  color: var(--n3d-pear);
  font-weight: 600;
}

/* 2. Hero Section */
.n3d-contact-hero {
  background: linear-gradient(135deg, var(--n3d-deep) 0%, var(--n3d-primary) 65%, #0d5952 100%);
  color: #fff;
  padding: 55px 0 65px;
  position: relative;
  overflow: hidden;
}

.n3d-contact-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(219, 225, 52, 0.12) 0%, rgba(222, 241, 251, 0.03) 60%, transparent 70%);
  pointer-events: none;
}

.n3d-contact-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(222, 241, 251, 0.2), transparent);
}

.n3d-contact-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.n3d-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(222, 241, 251, 0.12);
  border: 1px solid rgba(222, 241, 251, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--n3d-pear);
  margin-bottom: 18px;
}

.n3d-contact-hero h1 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.n3d-contact-hero h1 span {
  color: var(--n3d-pear);
  position: relative;
  display: inline-block;
}

.n3d-contact-hero p {
  font-size: 16px;
  color: #C2E2DF;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 700px;
}

/* 3. Quick Info Cards Grid */
.n3d-contact-cards-wrap {
  margin-top: -35px;
  position: relative;
  z-index: 3;
  margin-bottom: 50px;
}

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

.n3d-info-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid var(--n3d-border);
  box-shadow: 0 10px 30px rgba(10, 70, 64, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.n3d-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--n3d-primary);
  transition: var(--transition);
}

.n3d-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(10, 70, 64, 0.14);
  border-color: var(--n3d-neon-border);
}

.n3d-info-card:hover::before {
  background: var(--n3d-pear);
}

.n3d-card-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--n3d-neon);
  color: var(--n3d-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.n3d-info-card:hover .n3d-card-icon-box {
  background: var(--n3d-primary);
  color: var(--n3d-pear);
}

.n3d-info-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--n3d-text-heading);
  margin-bottom: 8px;
}

.n3d-info-card p,
.n3d-info-card .card-text {
  font-size: 13.5px;
  color: var(--n3d-text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  flex-grow: 1;
}

.n3d-info-card .card-action {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--n3d-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.n3d-info-card .card-action:hover {
  color: #0d5952;
  text-decoration: underline;
}

/* 4. Main Contact Grid (Form + Sidebar Info) */
.n3d-contact-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  margin-bottom: 60px;
}

/* Form Container */
.n3d-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--n3d-border);
  box-shadow: 0 10px 30px rgba(10, 70, 64, 0.06);
  padding: 40px;
}

.n3d-form-header {
  margin-bottom: 28px;
  border-bottom: 2px solid var(--n3d-border-subtle);
  padding-bottom: 18px;
}

.n3d-form-header-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--n3d-primary);
  background: var(--n3d-neon);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.n3d-form-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--n3d-text-heading);
  margin-bottom: 6px;
}

.n3d-form-header p {
  font-size: 14px;
  color: var(--n3d-text-muted);
}

/* Form Row & Groups */
.n3d-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.n3d-form-group {
  margin-bottom: 18px;
  position: relative;
}

.n3d-form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--n3d-text-heading);
  margin-bottom: 6px;
}

.n3d-form-group label .req {
  color: var(--n3d-sale);
  margin-left: 2px;
}

.n3d-input-wrap {
  position: relative;
}

.n3d-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--n3d-text-muted);
  font-size: 14px;
  pointer-events: none;
  transition: var(--transition);
}

.n3d-textarea-wrap .n3d-input-icon {
  top: 18px;
  transform: none;
}

.n3d-input-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--n3d-border);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--n3d-text-body);
  background: #FAFCFD;
  transition: var(--transition);
}

.n3d-input-control:focus {
  outline: none;
  border-color: var(--n3d-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 70, 64, 0.12);
}

.n3d-form-group:focus-within .n3d-input-icon {
  color: var(--n3d-primary);
}

select.n3d-input-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}

textarea.n3d-input-control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* File / Cloud Upload Note */
.n3d-file-hint-box {
  background: var(--n3d-surface-alt);
  border: 1px dashed var(--n3d-neon-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--n3d-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.n3d-file-hint-box i {
  color: var(--n3d-primary);
  font-size: 16px;
  margin-top: 2px;
}

/* Submit Button */
.n3d-submit-btn {
  width: 100%;
  padding: 15px 28px;
  background: var(--n3d-pear);
  color: var(--n3d-pear-text);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-pear);
}

.n3d-submit-btn:hover {
  background: var(--n3d-pear-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(219, 225, 52, 0.6);
}

.n3d-submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* Message Feedback */
.n3d-form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.n3d-form-status.success {
  display: block;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.n3d-form-status.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* Sidebar Info Cards */
.n3d-contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Direct Channels Card */
.n3d-direct-box {
  background: linear-gradient(135deg, var(--n3d-deep) 0%, var(--n3d-primary) 100%);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: #fff;
  box-shadow: 0 10px 25px rgba(10, 70, 64, 0.15);
  position: relative;
  overflow: hidden;
}

.n3d-direct-box::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(219, 225, 52, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.n3d-direct-box h3 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.n3d-direct-box h3 i {
  color: var(--n3d-pear);
}

.n3d-direct-box p {
  font-size: 13.5px;
  color: #C2E2DF;
  line-height: 1.6;
  margin-bottom: 20px;
}

.n3d-direct-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.n3d-direct-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  text-align: left;
}

.n3d-btn-hotline {
  background: var(--n3d-pear);
  color: var(--n3d-pear-text);
  box-shadow: 0 4px 12px rgba(219, 225, 52, 0.35);
}

.n3d-btn-hotline:hover {
  background: var(--n3d-pear-hover);
  transform: translateY(-2px);
}

.n3d-btn-zalo {
  background: #0068FF;
  color: #fff;
}

.n3d-btn-zalo:hover {
  background: #0056D2;
  transform: translateY(-2px);
}

.n3d-btn-facebook {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.n3d-btn-facebook:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Company Legal Info Card */
.n3d-legal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--n3d-border);
  padding: 26px;
  box-shadow: 0 4px 16px rgba(10, 70, 64, 0.05);
}

.n3d-legal-card h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--n3d-text-heading);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--n3d-border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.n3d-legal-card h4 i {
  color: var(--n3d-primary);
}

.n3d-legal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.n3d-legal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--n3d-text-body);
  line-height: 1.5;
}

.n3d-legal-item i {
  color: var(--n3d-primary);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

.n3d-legal-item strong {
  color: var(--n3d-text-heading);
}

/* 5. Map & Directions Section */
.n3d-map-section {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--n3d-border);
  padding: 36px;
  box-shadow: 0 6px 24px rgba(10, 70, 64, 0.06);
  margin-bottom: 60px;
}

.n3d-map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.n3d-map-title-group h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--n3d-text-heading);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.n3d-map-title-group h2 i {
  color: var(--n3d-sale);
}

.n3d-map-title-group p {
  font-size: 14px;
  color: var(--n3d-text-muted);
}

.n3d-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--n3d-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  transition: var(--transition);
}

.n3d-map-btn:hover {
  background: var(--n3d-primary-hover);
  color: var(--n3d-pear);
  transform: translateY(-2px);
}

.n3d-map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--n3d-border);
  position: relative;
  height: 420px;
}

.n3d-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Route Guidance Box */
.n3d-directions-box {
  margin-top: 20px;
  background: var(--n3d-surface-alt);
  border-left: 4px solid var(--n3d-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.n3d-directions-box i {
  font-size: 20px;
  color: var(--n3d-primary);
  margin-top: 2px;
}

.n3d-directions-text h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--n3d-text-heading);
  margin-bottom: 4px;
}

.n3d-directions-text p {
  font-size: 13px;
  color: var(--n3d-text-body);
  line-height: 1.5;
  margin: 0;
}

/* 6. Commitments & Trust Bar */
.n3d-trust-section {
  margin-bottom: 60px;
}

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

.n3d-trust-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 18px;
  border: 1px solid var(--n3d-border);
  text-align: center;
  transition: var(--transition);
}

.n3d-trust-item:hover {
  border-color: var(--n3d-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.n3d-trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(10, 70, 64, 0.08);
  color: var(--n3d-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: var(--transition);
}

.n3d-trust-item:hover .n3d-trust-icon {
  background: var(--n3d-primary);
  color: var(--n3d-pear);
}

.n3d-trust-item h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--n3d-text-heading);
  margin-bottom: 6px;
}

.n3d-trust-item p {
  font-size: 12.5px;
  color: var(--n3d-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 7. FAQ Section */
.n3d-contact-faq {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--n3d-border);
  padding: 40px;
  margin-bottom: 60px;
}

.n3d-contact-faq h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--n3d-text-heading);
  margin-bottom: 24px;
  text-align: center;
}

.n3d-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.n3d-faq-box {
  background: var(--n3d-bg);
  border: 1px solid var(--n3d-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.n3d-faq-box:hover {
  border-color: var(--n3d-primary);
}

.n3d-faq-box h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--n3d-text-heading);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.n3d-faq-box h4 i {
  color: var(--n3d-primary);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.n3d-faq-box p {
  font-size: 13px;
  color: var(--n3d-text-muted);
  line-height: 1.6;
  margin: 0;
  padding-left: 24px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .n3d-contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .n3d-contact-main-grid {
    grid-template-columns: 1fr;
  }
  .n3d-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .n3d-contact-hero {
    padding: 40px 0 50px;
  }
  .n3d-contact-hero h1 {
    font-size: 28px;
  }
  .n3d-contact-cards-wrap {
    margin-top: -25px;
  }
  .n3d-contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .n3d-form-card {
    padding: 24px 18px;
  }
  .n3d-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .n3d-map-section {
    padding: 22px 16px;
  }
  .n3d-map-container {
    height: 320px;
  }
  .n3d-map-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .n3d-trust-grid {
    grid-template-columns: 1fr;
  }
  .n3d-faq-grid {
    grid-template-columns: 1fr;
  }
  .n3d-contact-faq {
    padding: 24px 18px;
  }
}
