/* Hero Section */
.hero-section {
  background-image: url('../images/school-building.jpeg');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(76, 28, 34, 0.466) 60%, rgb(234, 197, 122, 0.466) 100%);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: 'Merriweather', serif;
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  animation: fadeInUp 1s ease 0.3s both;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-icon {
  display: block;
  margin: 0 auto;
  animation: bounce 2s infinite;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Contact Section */
.contact-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 20px;
}

.contact-section h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.8rem;
  color: #481f24;
  text-align: center;
  margin-bottom: 1rem;
}

.contact-section p {
  font-size: 1.2rem;
  color: #4a5568;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(72, 31, 36, 0.1);
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(72, 31, 36, 0.15);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 14px 14px 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  background: #f9fafb;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #eac57a;
  box-shadow: 0 0 0 3px rgba(234, 197, 122, 0.2);
}

.contact-form textarea {
  resize: vertical;
  max-height: 200px;
}

.contact-form label {
  position: absolute;
  top: 14px;
  left: 40px;
  font-size: 1rem;
  color: #718096;
  pointer-events: none;
  transition: all 0.2s ease;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 20px;
  font-size: 0.85rem;
  color: #481f24;
  background: #fff;
  padding: 0 5px;
}

.contact-form label i {
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  color: #eac57a;
}

.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #eac57a, #f4d38e);
  color: #481f24;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(234, 197, 122, 0.4);
  transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #3ec381;
  transition: left 0.4s ease;
  z-index: 0;
}

.contact-form button:hover::before {
  left: 0;
}

.contact-form button:hover {
  color: #fff;
  box-shadow: 0 8px 20px rgba(234, 197, 122, 0.6);
  transform: translateY(-5px);
}

.contact-form button span {
  position: relative;
  z-index: 1;
}


/* Enhanced Success Message Styling */
/* Form Status Styling */
#form-status {
  text-align: center;
  font-size: 1rem;
  margin-top: 1rem;
  display: none;
  position: relative;
}

#form-status.success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #3ec381;
  background: linear-gradient(45deg, rgba(62, 195, 129, 0.1), rgba(62, 195, 129, 0.05));
  border: 1px solid #3ec381;
  border-radius: 8px;
  padding: 0.8rem 2.5rem 0.8rem 1.5rem;
  max-width: 300px;
  margin: 1rem auto;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(62, 195, 129, 0.15);
  animation: popIn 0.5s ease forwards;
}

#form-status.success::before {
  content: '\f058'; /* Font Awesome check-circle icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 1.2rem;
  color: #3ec381;
}

#form-status.error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #481f24;
  background: rgba(72, 31, 36, 0.05);
  border: 1px solid #481f24;
  border-radius: 8px;
  padding: 0.8rem 2.5rem 0.8rem 1.5rem;
  max-width: 300px;
  margin: 1rem auto;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(72, 31, 36, 0.15);
  animation: popIn 0.5s ease forwards;
}

#form-status.error::before {
  content: '\f057'; /* Font Awesome times-circle icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 1.2rem;
  color: #481f24;
}

/* Dismiss Button Styling */
#form-status .dismiss-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  color: inherit;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color 0.3s ease;
  display: none; /* Hidden initially */
}

#form-status.success .dismiss-btn,
#form-status.error .dismiss-btn {
  display: block; /* Show when message appears */
}

#form-status .dismiss-btn:hover {
    color: #fff;
}

/* Animation for Success/Error Message */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Theme Compatibility */
[data-theme="dark"] #form-status.success {
  background: linear-gradient(45deg, rgba(62, 195, 129, 0.2), rgba(62, 195, 129, 0.1));
  box-shadow: 0 2px 8px rgba(62, 195, 129, 0.3);
}
[data-theme="dark"] #form-status.error {
  background: rgba(72, 31, 36, 0.1);
  box-shadow: 0 2px 8px rgba(72, 31, 36, 0.3);
}


.contact-form button.sending {
  cursor: not-allowed;
  opacity: 0.8;
}

/* Contact Info */
.contact-info h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  color: #481f24;
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 1.1rem;
  color: #4a5568;
  margin: 15px 0;
  text-align: left;
}

.contact-info p i {
  color: #eac57a;
  margin-right: 10px;
}

.contact-info a {
  color: #3ec381;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #2d9d68;
}

/* Email List Styling for Vertical Stacking */
.contact-info .email-list {
  display: inline-flex;
  flex-direction: column;
  margin-left: 0.5rem;
}

.social-icons {
  /* margin-top: 20px; */
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  font-size: 1.3rem;
  color: #481f24;
  /* background: #f1f5f9; */
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #fff;
  background: #eac57a;
  transform: scale(1.1);
}

/* Map Container */
.map-container {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #eac57a;
  box-shadow: 0 8px 24px rgba(72, 31, 36, 0.1);
}

.map-container iframe {
  display: block;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .hero-section {
    height: 350px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 300px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .contact-section h1 {
    font-size: 2.2rem;
  }

  .contact-section p {
    font-size: 1rem;
  }

  .card {
    padding: 30px;
  }

  .map-container iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 250px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-icon {
    width: 50px;
    height: 50px;
  }

  .contact-section {
    padding: 40px 15px;
  }

  .contact-section h1 {
    font-size: 1.8rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 12px 12px 35px;
  }

  .contact-form label i {
    left: -22px;
  }

  .contact-form button {
    font-size: 1rem;
    padding: 0.7rem 1.8rem;
  }

  .contact-info h2 {
    font-size: 1.8rem;
  }

  .map-container iframe {
    height: 250px;
  }
}