/* Contact Hero Section */
.contact-hero {
  position: relative;
  height: 90vh;
  background: url("../images/contactus_image.png") center/cover no-repeat;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

/* Dark Overlay */
.contact-hero .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(28, 18, 51, 0.7); /* purple-dark overlay */
  top: 0;
  left: 0;
  z-index: 1;
}

.icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  position: absolute;
  top: 18px; /* adjust this */
  left: 50%;
  transform: translateX(-50%);
}
/* ================================
   CONTACT BOXES (Address / Phone / Email)
================================ */

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 230px;
  position: relative;
  z-index: 2; /* make it above overlay */
  flex-wrap: wrap;
}

.contact-box {
  background: #ffffff;
  padding: 20px 15px;
  border-radius: 15px;
  width: 160px !important;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  flex: 0 0 320px !important;
}

.contact-box {
  flex: 1 1 250px; /* flexible width, min 250px */
  max-width: 320px;
  height: 180px;
}

.contact-content { z-index: 2; }

.contact-grid { position: relative; z-index: 2; }

.contact-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); /* stronger shadow on hover */
}

/* Text Styling */
.contact-box h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #222 !important;
}

.contact-box p {
  margin: 0;
  font-size: 14px;
  color: #222 !important;
}

/* Contact Icon */
.contact-box i {
  font-size: 26px;
  padding: 15px;
  border-radius: 50%;
  color: #fff;
  background: #f4b400;
}

.contact-box:nth-child(1) i {
  background: #f4b400; /* yellow */
}

.contact-box:nth-child(2) i {
  background: #e91e63; /* pink */
}

.contact-box:nth-child(3) i {
  background: #6a1b9a; /* purple */
}
/* Address */
.contact-box:nth-child(1) {
  border-top: 4px solid #f4b400; /* yellow */
}

/* Phone */
.contact-box:nth-child(2) {
  border-top: 4px solid #e91e63; /* pink */
}

/* Email */
.contact-box:nth-child(3) {
  border-top: 4px solid #6a1b9a; /* purple */
}

/* Floating animation */
@keyframes floatIcon {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Glow Pulse */
.contact-box i::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ff9800;
  border-radius: 50%;
  top: -4px;
  right: -6px;
  opacity: 0;
  animation: sparkle 2s infinite;
}
.contact-popup {
  width: 100%; /* full width inside hero */
  height: auto;
  background: #fff;
  padding: 20px;
}

/* Spark animation */
@keyframes sparkle {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  40% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* Hover effect */
.contact-box:hover i {
  transform: scale(1.2);
  text-shadow:
    0 0 15px #ff9800,
    0 0 25px #ff6636;
  transition: 0.4s;
}

/* Content */
.contact-content {
  position: relative;
  z-index: 2;
  /* max-width: 800px; */
  padding: 20px;
}

.contact-content h1 {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f1f1f1;
}

/* Button */
.btn-primary {
  display: inline-block;
  background: #ffba00;
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #ff6636;
}
.contact-box,
.contact-box i,
.contact-content {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* ==============================
   Large Tablets (992px)
============================== */
@media (max-width: 992px) {
  .contact-hero {
    height: 500px;
  }

  .contact-content h1 {
    font-size: 42px;
  }

  .contact-content p {
    font-size: 16px;
    max-width: 600px;
  }

  .contact-btn {
    padding: 10px 26px;
    font-size: 15px;
  }
}

/* ==============================
   Mobile (768px)
============================== */
@media (max-width: 768px) {
  .contact-hero {
    height: 420px;
  }

  .contact-overlay {
    padding: 30px 20px;
  }

  .contact-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .contact-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
  }

  .contact-btn {
    padding: 10px 22px;
    font-size: 14px;
  }
}

/* ================================
   FAQ + ENQUIRY SECTION
================================ */

.faq-enquiry {
  background: #ffffff;
  padding: 80px 20px;
}
.faq-enquiry .container {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}
/* ================================
   FAQ SECTION
================================ */

.faq {
  flex: 1;
}

.faq h2 {
  font-size: 40px;
  font-weight: 700;
  color: #222;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 18px 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-size: 17px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #222;
  padding: 0;
}

/* Circle Icon */
.faq-question .icon {
  width: 22px;
  height: 22px;
  border: 1px solid #304a8e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #304a8e;
  transition: 0.3s;
}

.faq-answer {
  display: none;
  padding-top: 12px;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.7;
  max-width: 95%;
}

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

/* ================================
   ENQUIRY FORM
================================ */

.enquiry {
  flex: 1;
  border-radius: 8px;
  height: 649px;
  width: 100%;
}

.enquiry h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #222;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
}

form input,
form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 14px;
  background: #f9fafb;
  outline: none;
  transition: 0.3s;
}

form input:focus,
form textarea:focus {
  border-color: #304a8e;
  background: #fff;
}

/* Buttons */
.form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.apply-btn {
  background: #220f48;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.cancel-btn {
  background: #ffffff;
  border: 1px solid #d1d5db;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.apply-btn:hover {
  background: #253b70;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 992px) {
  .faq-enquiry .container {
    flex-direction: column;
    gap: 50px;
  }
}
.custom-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 250px;
  padding: 14px 20px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;

  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.custom-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.custom-toast.success {
  background: #28a745;
}

.custom-toast.error {
  background: #dc3545;
}
.contact-box {
  background: #ffffff !important;
  backdrop-filter: none !important;
}
/* Common chip style */
.section-chip {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 10px;
  color: #fff;
}

/* FAQ chip (blue) */
.section-chip.faq-chip {
  background: #d6c6f7;
  color: #7d4bc0;
}

/* Enquiry chip - light green */
.section-chip.enquiry-chip {
  background: #a8f0e1;
  color: #2fc7a1;
}

.section-chip.department-chip {
  background: #ffe6f0;
  color: #f06292;
  padding: 6px 18px;
  border-radius: 40px;
}
/* SECTION */
.department-contacts {
  background: #fafafa;
  padding: 80px 20px;
}
.department-contacts .container {
  display: block;
}

/* HEADER */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h1 {
  font-size: 42px;
  font-weight: 700;
  margin: 12px 0;
}

.section-header p {
  color: #777;
}

/* CHIP */
.section-chip {
  display: inline-block;
  background: #ffe6f0;
  color: #f06292;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 18px;
  border-radius: 40px;
}

/* GROUP */
.department-group {
  margin-bottom: 60px;
  color: #220f48;
}

/* TITLE */
.group-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #220f48;
}

/* CARDS ROW */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: flex-start;
}

/* CARD */
.card {
  width: 300px;
  flex: 0 0 180px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: #fff;
  padding: 15px;
  border-radius: 12px;

  height: 140px;

  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);

  transition: box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.contact-page .container {
  max-width: 1100px;
  margin: 0 auto;
  display: block;
}
.card .icon {
  font-size: 25px;
}
.card h4 {
  font-size: 14px;
}

.card p {
  font-size: 14px;
  padding: 4px 8px; /* smaller email box */
}
.card.purple {
  border-top: 4px solid #6a1b9a;
}

.card.pink {
  border-top: 4px solid #e91e63;
}

.card.orange {
  border-top: 4px solid #ff9800;
}

.card.teal {
  border-top: 4px solid #2fc7a1;
}

.card.red {
  border-top: 4px solid #f44336;
}
.group-bar {
  display: inline-block;
  width: 30px;
  height: 2px;
  border-radius: 1px;
  vertical-align: middle;
  background: linear-gradient(90deg, #ff6636, #ff9800);
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.card .icon {
  transition: transform 0.4s ease;
}

.card:hover .icon {
  transform: rotate(8deg) scale(1.2);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 102, 54, 0.4),
    transparent
  );
  opacity: 0;
  transition: 0.4s;
}

.card:hover::before {
  opacity: 1;
}

.card {
  position: relative;
}

/* ===============================
   UNIQUE POP + BLUR ANIMATION
=============================== */

/* Initial state */
.card {
  opacity: 0;
  transform: scale(0.8);
  filter: blur(10px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

/* Visible state */
.card.show {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* Stagger effect (clean delay) */
.cards .card:nth-child(1) {
  transition-delay: 0.1s;
}
.cards .card:nth-child(2) {
  transition-delay: 0.2s;
}
.cards .card:nth-child(3) {
  transition-delay: 0.3s;
}
.cards .card:nth-child(4) {
  transition-delay: 0.4s;
}

/* Hover = soft zoom + glow */
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Icon animation */
.card .icon {
  transition: transform 0.4s ease;
}

.card:hover .icon {
  transform: scale(1.2) rotate(6deg);
}
