/* Contact Page Specific Styles */

/* Hero Section */
.contact-hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(19,176,203,0.05) 0%, rgba(81,193,134,0.02) 100%);
  border-radius: 50%;
  z-index: 0;
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* LEFT COLUMN - Contact Info */
.contact-info {
  padding-right: 2rem;
}

.contact-info h2 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1rem 0 2rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-colored);
  border-color: var(--color-6);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(19, 176, 203, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-6);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-details h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.info-details p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.info-details a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.info-details a:hover {
  color: var(--color-6);
}

/* Social Links */
.social-links {
  margin-top: 2rem;
}

.social-links h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--black);
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icons a {
  width: 45px;
  height: 45px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-6);
  font-size: 1.2rem;
  transition: all 0.3s;
  border: 1px solid var(--border-light);
}

.social-icons a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored);
}

/* RIGHT COLUMN - Contact Form */
.contact-form-container {
  background: var(--bg-light);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.contact-form-container h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.form-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  width: 100%;
}

.form-row.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-row.full-width {
  display: block;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.required {
  color: #ff4444;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--white);
  transition: all 0.2s;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-6);
  box-shadow: 0 0 0 3px rgba(19, 176, 203, 0.1);
}

.readonly-field {
  background: #f5f5f5;
  color: var(--text-light);
  cursor: not-allowed;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.submit-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored);
  gap: 1rem;
}

.submit-btn i {
  transition: transform 0.2s;
}

.submit-btn:hover i {
  transform: translateX(4px);
}

/* Map Section */
.map-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.map-container {
  margin-top: 2rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background: var(--white);
}

.faq-grid {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--color-6);
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
}

.faq-question i {
  color: var(--color-6);
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  display: none;
  color: var(--text-light);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info {
    padding-right: 0;
  }
  
  .form-row.two-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .contact-hero h1 {
    font-size: 2.2rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .info-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(19, 176, 203, 0.1), transparent 34%),
    radial-gradient(circle at top left, rgba(81, 193, 134, 0.08), transparent 28%);
  pointer-events: none;
  z-index: -1;
}

.navbar,
.footer {
  backdrop-filter: blur(14px);
}

.navbar {
  padding: 1.15rem 2.25rem !important;
}

.logo-container,
.footer-brand {
  gap: 0.9rem !important;
}

.logo-img,
.footer-brand img {
  height: 44px !important;
}

.logo-text,
.footer-brand-text {
  letter-spacing: 0.015em !important;
}

.nav-links {
  align-items: center;
  gap: 1.35rem !important;
}

.nav-links a {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links a:not(.nav-cta)::after {
  height: 1px !important;
  background: rgba(19, 176, 203, 0.32) !important;
}

.nav-cta {
  border-radius: 0 !important;
  padding: 1rem 1.75rem !important;
  background: #0f8688 !important;
  clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%) !important;
  box-shadow: none !important;
}

.contact-hero,
.contact-section,
.map-section,
.faq-section {
  position: relative;
  overflow: hidden;
}

.info-card,
.contact-form-container,
.faq-item,
.social-links,
.map-container {
  border-radius: 24px !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.info-card:hover,
.contact-form-container:hover,
.faq-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(19, 176, 203, 0.12) !important;
}

.footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(19, 176, 203, 0.12);
}

.footer-bottom {
  padding-top: 1.8rem !important;
}


/* ==========================================================================
   GLOBAL RESPONSIVE OVERRIDES (ADDED AUTOMATICALLY)
   ========================================================================== */
@media (max-width: 900px) {
  .hero-content h1 { font-size: 2.5rem !important; }
  .section-header h2 { font-size: 2rem !important; }
  .mission-grid, .strategy-grid, .services-grid, .footer-container, .contact-content, .career-content, .job-listings {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 768px) {
  /* Enforce container widths to avoid horizontal scrolling */
  body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  .container {
    padding: 0 1rem !important;
    width: 100% !important;
  }

  /* Typography downscaling */
  h1 { font-size: 2.2rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.8rem !important; line-height: 1.3 !important; }
  h3 { font-size: 1.5rem !important; }
  p, .hero-description, .mission-text { font-size: 0.95rem !important; line-height: 1.5 !important; }
  
  /* Reset complex grids to 1 column */
  .grid-2, .grid-3, .grid-4, .strategy-grid, .services-grid, .mission-grid, .blog-grid, .career-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  /* Reset flex layouts */
  .flex-row, .hero-split, .contact-split {
    flex-direction: column !important;
  }

  /* Forms and inputs */
  input, select, textarea, button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Padding margins normalization */
  .hero-section, .mission-section, .strategy-section, .services-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* Images responsive */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}
