html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  line-height: 1.6;
}

/* ===========================
   🌟 Contact Hero Section
=========================== */
.contact-hero {
  min-height: 320px;
  background: linear-gradient(135deg, #11131dcc, #030304cc),
    url('../img/contact.jpg') center/cover no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(26, 35, 126, 0.5);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  user-select: none;
  height: 500px;
  text-align: center;
}

.contact-hero .hero-title {
  padding-top: 80px;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.contact-hero .hero-subtitle {
  font-size: 1.3rem;
  font-weight: 500;
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.5;
  color: #dcdde1dd;
}

/* Hero Button */
.btn-hero {
  background: #ff6f61;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255,111,97,0.5);
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.btn-hero:hover {
  background: #ff4b3e;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(255,75,62,0.7);
}

.btn-hero:active {
  transform: translateY(-1px) scale(1.02);
}

/* ===========================
   📩 Contact Section
=========================== */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem;
  max-width: 1200px;
  margin: auto;
}

.contact-form,
.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Form */
.contact-form h2 {
  margin-bottom: 1rem;
  color: #1a237e;
}

.contact-form label {
  font-weight: bold;
  margin-top: 1rem;
  display: block;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.3rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #3949ab;
  outline: none;
  box-shadow: 0 0 5px rgba(57,73,171,0.3);
}

.contact-form button {
  margin-top: 1.5rem;
  background: #3949ab;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #1a237e;
}

/* Info */
.contact-info h2 {
  color: #1a237e;
  margin-bottom: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
}

/* ===========================
   📊 Popup Modal
=========================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  animation: popupFade 0.3s ease;
}

.popup-content h2 {
  color: #333;
  margin-bottom: 10px;
}

.popup-content p {
  color: #555;
  margin-bottom: 15px;
}

.popup-content button {
  padding: 10px 18px;
  background: #ff9800;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.popup-content button:hover {
  background: #e68900;
}

@keyframes popupFade {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===========================
   📱 Responsive Breakpoints
=========================== */

/* Tablets */
@media (max-width: 1024px) {
  .contact-hero {
    height: auto;
    padding: 3rem 1rem;
  }
  .contact-hero .hero-title {
    font-size: 2.5rem;
    padding-top: 50px;
  }
  .contact-hero .hero-subtitle {
    font-size: 1.1rem;
  }
  .contact-section {
    grid-template-columns: 1fr; /* Stack */
    padding: 2rem 1rem;
    gap: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .contact-hero {
    padding: 2.5rem 1rem;
    border-radius: 0;
    height: auto;
  }
  .contact-hero .hero-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  .contact-hero .hero-subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }
  .btn-hero {
    font-size: 0.9rem;
    padding: 10px 22px;
  }
  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .contact-hero .hero-title {
    font-size: 1.7rem;
  }
  .contact-hero .hero-subtitle {
    font-size: 0.9rem;
  }
  .btn-hero {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
  }
  .contact-section {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }
  .popup-content {
    width: 95%;
    padding: 20px;
  }
}
