/* ==========================================================================
   contact-modern.css — Clean & minimal redesign for the contact page.
   Loaded ONLY on contact.php, AFTER style.css + contact.css, so it overrides
   the dated styling without touching any other page. Every selector is scoped
   to `body.contact-modern` to keep specificity high and bleed at zero.
   Matches home-modern.css design system.
   ========================================================================== */

/* ---- Design tokens ---- */
body.contact-modern {
  --pp-primary: #2563eb;
  --pp-primary-dark: #1d4ed8;
  --pp-primary-soft: #eff6ff;
  --pp-ink: #0f172a;
  --pp-body: #475569;
  --pp-muted: #64748b;
  --pp-line: #e2e8f0;
  --pp-bg: #ffffff;
  --pp-bg-alt: #f8fafc;
  --pp-radius: 18px;
  --pp-radius-sm: 12px;
  --pp-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 32px -12px rgba(15, 23, 42, 0.12);
  --pp-shadow-hover: 0 18px 48px -16px rgba(37, 99, 235, 0.28);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--pp-body);
  -webkit-font-smoothing: antialiased;
}

body.contact-modern h1,
body.contact-modern h2,
body.contact-modern h3,
body.contact-modern h4 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

body.contact-modern .title-blue {
  color: var(--pp-primary);
  font-weight: 700;
}

/* Shared "pill" badge styling */
body.contact-modern .contact-hero-badge,
body.contact-modern .form-badge,
body.contact-modern .faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pp-primary-soft) !important;
  color: var(--pp-primary-dark) !important;
  padding: 8px 16px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
body.contact-modern .contact-hero-badge i,
body.contact-modern .form-badge i,
body.contact-modern .faq-badge i {
  font-size: 12px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
body.contact-modern .contact-hero {
  background: radial-gradient(1200px 600px at 80% -10%, #eef4ff 0%, rgba(238, 244, 255, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--pp-bg-alt) 100%);
  padding: 84px 0 64px;
  min-height: auto;
}
body.contact-modern .contact-hero-title {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--pp-ink);
  margin: 0 0 18px;
}
body.contact-modern .contact-hero-description {
  font-size: 17px;
  color: var(--pp-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   CONTACT INFO CARDS
   ========================================================================== */
body.contact-modern .contact-info {
  background: var(--pp-bg-alt);
  padding: 72px 0;
}
body.contact-modern .contact-info-card {
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
  padding: 32px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body.contact-modern .contact-info-card:hover {
  transform: translateY(-6px);
  border-color: #dbeafe !important;
  box-shadow: var(--pp-shadow-hover);
}
body.contact-modern .contact-info-icon {
  background: var(--pp-primary-soft);
  color: var(--pp-primary);
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 22px;
  box-shadow: none;
  margin: 0 auto 18px;
}
body.contact-modern .contact-info-card h3 {
  font-size: 18px;
  color: var(--pp-ink);
  margin: 0 0 10px;
  font-weight: 600;
}
body.contact-modern .contact-info-card p {
  font-size: 14.5px;
  color: var(--pp-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT FORM SECTION
   ========================================================================== */
body.contact-modern .contact-form-section {
  background: #fff;
  padding: 80px 0;
}
body.contact-modern .form-title {
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--pp-ink);
  margin: 0 0 16px;
}
body.contact-modern .form-description {
  font-size: 16px;
  color: var(--pp-muted);
  line-height: 1.7;
}

/* Form panel */
body.contact-modern .contact-form {
  background: var(--pp-bg-alt);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  padding: 32px;
}
body.contact-modern .form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pp-ink);
  margin-bottom: 6px;
}
body.contact-modern .form-group input,
body.contact-modern .form-group textarea {
  border: 1px solid var(--pp-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--pp-ink);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
body.contact-modern .form-group input:focus,
body.contact-modern .form-group textarea:focus {
  outline: none;
  border-color: var(--pp-primary) !important;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
body.contact-modern .checkbox-label {
  font-size: 14px;
  color: var(--pp-muted);
}
body.contact-modern .checkbox-label input[type="checkbox"] {
  accent-color: var(--pp-primary) !important;
}

/* Submit button (base contact.css uses no !important on submit-btn itself,
   but we use !important to override the gradient/padding cleanly) */
body.contact-modern .submit-btn {
  background: var(--pp-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 26px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.6) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}
body.contact-modern .submit-btn span {
  color: #fff !important;
}
body.contact-modern .submit-btn:hover {
  background: var(--pp-primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--pp-shadow-hover) !important;
}
body.contact-modern .btn-icon {
  font-size: 15px;
}

/* Success / error messages */
body.contact-modern .form-success,
body.contact-modern .form-error {
  border-radius: var(--pp-radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14.5px;
  font-weight: 500;
}
body.contact-modern .form-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
body.contact-modern .form-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   MAP + FEATURE PANELS (right column)
   ========================================================================== */
body.contact-modern .contact-map {
  background: var(--pp-bg-alt);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  padding: 0;
  margin: 0 0 26px 0;
  overflow: hidden;
}
body.contact-modern .map-placeholder {
  background: linear-gradient(135deg, var(--pp-primary) 0%, var(--pp-primary-dark) 100%);
  box-shadow: none;
  border-radius: 0;
  padding: 48px 36px;
  color: #fff;
}
body.contact-modern .map-icon {
  font-size: 40px;
  color: #fff;
  margin-bottom: 16px;
}
body.contact-modern .map-placeholder h3 {
  color: #fff;
  font-size: 20px;
  margin: 0 0 6px;
}
body.contact-modern .map-placeholder > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  margin: 0 0 18px;
}
body.contact-modern .map-address p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
  margin: 0 0 4px;
}

/* Feature items */
body.contact-modern .contact-features {
  gap: 16px;
}
body.contact-modern .feature-item {
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
  padding: 20px;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body.contact-modern .feature-item:hover {
  transform: translateY(-4px);
  border-color: #dbeafe;
  box-shadow: var(--pp-shadow-hover);
}
body.contact-modern .feature-icon {
  background: var(--pp-primary-soft) !important;
  color: var(--pp-primary) !important;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 19px;
}
body.contact-modern .feature-content h4 {
  font-size: 16px;
  color: var(--pp-ink);
  margin: 0 0 4px;
  font-weight: 600;
}
body.contact-modern .feature-content p {
  font-size: 13.5px;
  color: var(--pp-muted);
  line-height: 1.55;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
body.contact-modern .faq-section {
  background: var(--pp-bg-alt);
  padding: 80px 0;
}
body.contact-modern .faq-header {
  margin: 0 auto 48px auto;
}
body.contact-modern .faq-title {
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--pp-ink);
  margin: 0 0 16px;
}
body.contact-modern .faq-description {
  font-size: 16px;
  color: var(--pp-muted);
  line-height: 1.7;
}
body.contact-modern .faq-item {
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
}
body.contact-modern .faq-question h3 {
  font-size: 16px;
  color: var(--pp-ink);
  font-weight: 600;
}
body.contact-modern .faq-question:hover {
  background: var(--pp-bg-alt);
}
body.contact-modern .faq-icon {
  color: var(--pp-primary) !important;
  font-size: 22px;
}
body.contact-modern .faq-answer p {
  font-size: 14.5px;
  color: var(--pp-muted);
  line-height: 1.65;
}

/* ==========================================================================
   CTA
   ========================================================================== */
body.contact-modern .contact-cta {
  background: linear-gradient(135deg, var(--pp-primary) 0%, var(--pp-primary-dark) 100%);
  padding: 80px 0;
}
body.contact-modern .cta-title {
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 0 0 16px;
}
body.contact-modern .cta-description {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
  line-height: 1.6;
}
body.contact-modern .btn-cta-primary {
  background: #fff !important;
  color: var(--pp-primary-dark) !important;
  padding: 14px 28px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.18s ease, background 0.18s ease !important;
}
body.contact-modern .btn-cta-primary:hover {
  background: #f1f5f9 !important;
  color: var(--pp-primary-dark) !important;
  transform: translateY(-2px) !important;
}
body.contact-modern .btn-cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  color: #fff !important;
  padding: 14px 28px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  transition: transform 0.18s ease, background 0.18s ease !important;
}
body.contact-modern .btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  body.contact-modern .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  body.contact-modern .contact-form-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
@media (max-width: 640px) {
  body.contact-modern .contact-info-grid {
    grid-template-columns: 1fr;
  }
  body.contact-modern .contact-info,
  body.contact-modern .contact-form-section,
  body.contact-modern .faq-section,
  body.contact-modern .contact-cta {
    padding: 56px 0;
  }
  body.contact-modern .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  body.contact-modern .contact-form {
    padding: 24px 20px;
  }
}
