* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #ffffff;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

input,
textarea,
button {
  font-family: inherit;
}

.container {
  width: 90%;
  max-width: 1250px;
  margin: auto;
}

/* HEADER */
.header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #222;
}

.logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.logo-box h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #222;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 34px;
}

.navbar a {
  color: #333;
  font-size: 1.08rem;
  font-weight: 500;
  transition: 0.3s;
}

.navbar a:hover {
  color: #c63c48;
}

.active-link {
  background: #c63c48;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  font-size: 1.7rem;
  cursor: pointer;
}

/* HERO */
.contact-hero {
  position: relative;
  min-height: 520px;
  background-color: #2b0f12; /* fallback color */
  background-image: url("images/school-innerview\(2\).JPG");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 60px 20px;
}

.contact-hero-content h1 {
  font-family: "Baloo 2", cursive;
  font-size: 5rem;
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.contact-hero-content p {
  margin-top: 16px;
  font-size: 1.5rem;
  font-weight: 400;
}

/* COMMON */
.section {
  padding: 80px 0;
}

.light-section {
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 55px;
  color: #000;
}

/* FORM CARD */
.form-card {
  background: #fff;
  border: 4px solid #c73b47;
  border-radius: 36px;
  padding: 42px 34px 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.form-title {
  margin-bottom: 34px;
}

.contact-form {
  max-width: 1100px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 26px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  border: 2px solid #d5d7df;
  border-radius: 20px;
  padding: 18px 22px;
  font-size: 1.08rem;
  color: #111;
  background: #fff;
  outline: none;
  transition: all 0.3s ease;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #9a9daa;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #c73b47;
  box-shadow: 0 0 0 4px rgba(199, 59, 71, 0.08);
}

.full-width {
  grid-column: 1 / -1;
}

.input-group textarea {
  resize: vertical;
  min-height: 220px;
}

.submit-wrap {
  text-align: center;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 16px 34px;
  border-radius: 40px;
  font-size: 1.08rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #db525b;
  color: #fff;
  box-shadow: 0 8px 20px rgba(219, 82, 91, 0.3);
}

.btn-primary:hover {
  background: #c9444d;
  transform: translateY(-3px) scale(1.02);
}

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

.form-status {
  margin-top: 16px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  min-height: 24px;
}

.form-status.success {
  color: #16824a;
}

.form-status.error {
  color: #c63c48;
}

/* CONTACT DETAILS */
.contact-details-section {
  padding-top: 10px;
}

.details-title {
  text-align: left;
  margin-bottom: 30px;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 850px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.detail-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  border: 3px solid #c73b47;
  color: #c73b47;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.detail-item p {
  font-size: 1.45rem;
  font-weight: 600;
  color: #111;
  max-width: 900px;
}

/* MAP */
.map-section {
  padding-top: 20px;
}

.map-box {
  border: 4px solid #c73b47;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

/* FOOTER */
.footer {
  background: #98000a;
  color: #fff;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1fr;
  gap: 30px;
  padding: 40px 0;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.footer-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.footer-brand h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 1.05rem;
  max-width: 270px;
}

.footer-col h4 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a,
.footer-col p,
.footer-col a {
  color: #fff;
  font-size: 1.05rem;
}

.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.social-icons a {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  transition: 0.3s;
}

.social-icons a:hover {
  transform: translateY(-4px) scale(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 18px 10px;
}

.footer-bottom p {
  font-size: 1rem;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .contact-hero-content h1 {
    font-size: 3.8rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-item p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 86px;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 25px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }

  .navbar.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  .logo-box h2 {
    font-size: 1.4rem;
  }

  .contact-hero {
    min-height: 420px;
    border-radius: 24px;
  }

  .contact-hero-content h1 {
    font-size: 2.9rem;
  }

  .contact-hero-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.3rem;
  }

  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-item p {
    font-size: 1rem;
  }

  .btn {
    min-width: 180px;
    font-size: 1rem;
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  .section {
    padding: 60px 0;
  }

  .contact-hero {
    min-height: 360px;
    width: 92%;
  }

  .contact-hero-content h1 {
    font-size: 2.2rem;
  }

  .contact-hero-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.95rem;
    margin-bottom: 30px;
  }

  .form-card {
    padding: 26px 18px 22px;
    border-radius: 24px;
  }

  .input-group input,
  .input-group textarea {
    padding: 15px 16px;
    border-radius: 16px;
  }

  .detail-item {
    gap: 14px;
  }

  .detail-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    font-size: 1.25rem;
  }

  .footer-brand {
    flex-direction: column;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}