/* Contact page specific styles */

/* Contact form specific styling */
#contactForm {
  padding: 0;
}

#contactForm .form-control,
#contactForm .form-select {
  border-radius: 10px;
  border: 2px solid #ffeeba;
  font-size: 1rem;
  background-color: #fffbf0;
}

#contactForm .form-control:focus,
#contactForm .form-select:focus {
  border-color: #e8b004;
  box-shadow: 0 0 0 0.25rem rgba(253, 126, 20, 0.15);
  background-color: white;
}

/* Contact cards styling */
.contact-info-cards .card {
  border-radius: 20px;
  border: 3px solid #ffeeba;
  background: linear-gradient(145deg, #ffffff 0%, #fffbf0 100%);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

.contact-info-cards .card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(253,126,20,0.1) 50%, transparent 60%);
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.contact-info-cards .card:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translate(50%, 50%);
}

.contact-info-cards .card:hover {
  border-color: #e8b004;
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(253, 126, 20, 0.25);
}

.contact-info-cards .card-body {
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 2;
}

.contact-info-cards .bi {
  color: #e8b004;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.contact-info-cards .card:hover .bi {
  transform: scale(1.1);
  color: #e8b004;
}

.contact-info-cards .card-title {
  color: #e8b004;
  font-weight: 700;
  font-size: 1.4rem;
}

/* Board members section */
.board-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff3cd 100%);
}

.board-section h3 {
  color: #e8b004;
  font-weight: 700;
  position: relative;
  margin-bottom: 3rem;
}

.board-section h3::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  border-radius: 2px;
}

.board-section .card {
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff 0%, #fffbf0 100%);
  border: 2px solid #ffeeba;
  transition: all 0.3s ease;
}

.board-section .card:hover {
  border-color: #e8b004;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(253, 126, 20, 0.15);
}

.board-section .card-title {
  color: #e8b004;
  font-weight: 700;
}

.board-section a {
  color: #6c757d;
  transition: color 0.3s ease;
}

.board-section a:hover {
  color: #e8b004;
}

/* Contact form header */
.contact-form-header {
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%) !important;
  border-radius: 15px 15px 0 0;
}

/* Submit button specific styling */
#contactForm .btn-primary {
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

#contactForm .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(253, 126, 20, 0.3);
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
}

/* Contact page header styling */
.contact-header {
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  position: relative;
  overflow: hidden;
  min-height: clamp(120px, 22vh, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.contact-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(232, 176, 4, 0.85) 0%, rgba(174, 131, 4, 0.85) 100%);
  z-index: 1;
}

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

@media (max-width: 576px) {
  .contact-header {
    min-height: 180px;
    padding: 1.2rem 0 1.2rem 0;
  }
  .contact-header h1 {
    font-size: clamp(1.1rem, 6vw, 1.5rem);
  }
  .contact-header h2 {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }
}

@media (max-width: 400px) {
  .contact-header {
    min-height: 140px;
    padding: 0.7rem 0;
  }
  .contact-header h1 {
    font-size: 1rem;
  }
  .contact-header h2 {
    font-size: 0.7rem;
  }
}

/* Contact form card styling */
.contact-form-card {
  border-radius: 20px;
  border: 3px solid #ffeeba;
  background: linear-gradient(145deg, #ffffff 0%, #fffbf0 100%);
  overflow: hidden;
}

/* Animation for contact cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-info-cards .card {
  animation: fadeInUp 0.6s ease-out;
}

.contact-info-cards .col-lg-4:nth-child(1) .card {
  animation-delay: 0.1s;
}

.contact-info-cards .col-lg-4:nth-child(2) .card {
  animation-delay: 0.2s;
}

.contact-info-cards .col-lg-4:nth-child(3) .card {
  animation-delay: 0.3s;
}

.board-section .card {
  animation: fadeInUp 0.6s ease-out;
}

.board-section .col-md-6:nth-child(1) .card {
  animation-delay: 0.4s;
}

.board-section .col-md-6:nth-child(2) .card {
  animation-delay: 0.5s;
}

/* Responsive adjustments for contact page */
@media (max-width: 1200px) {
  .contact-hero {
    min-height: 18vh;
    padding: 2rem 0;
  }
  .contact-card .card-img-top {
    height: 150px;
  }
}

@media (max-width: 900px) {
  .contact-card .card-img-top {
    height: 120px;
  }
  .contact-hero {
    min-height: 15vh;
    padding: 1.5rem 0;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: 30vh;
    padding: 1.5rem 0;
  }
  .contact-hero h1 {
    font-size: 2rem;
  }
  .contact-hero h2 {
    font-size: 1.3rem;
  }
  .contact-card .card-img-top {
    height: 100px;
  }
  .contact-card .card-body {
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 576px) {
  .container,
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
  .contact-hero {
    min-height: 20vh;
    padding: 1rem 0;
  }
  .contact-hero h1 {
    font-size: 1.2rem;
  }
  .contact-hero h2 {
    font-size: 1rem;
  }
  .contact-card .card-img-top {
    height: 70px;
  }
  .contact-card .card-body {
    padding: 0.7rem 0.3rem;
  }
}

@media (max-width: 400px) {
  .contact-hero {
    min-height: 10vh;
    padding: 0.5rem 0;
  }
  .contact-card .card-img-top {
    height: 40px;
  }
}
