/* Contact Page Styles */

/* Banner Styles */
.contact-banner {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, rgba(0, 90, 135, 0.9), rgba(0, 74, 112, 0.9)), url("../images/campus-wide.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.contact-banner h1 {
  font-size: 3.5rem;
  font-family: var(--font-secondary);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-banner p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.banner-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
}

.banner-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.banner-breadcrumb a:hover {
  color: var(--secondary-color);
}

.banner-breadcrumb i {
  font-size: 0.7rem;
  opacity: 0.7;
}

.banner-breadcrumb span {
  color: var(--secondary-color);
}

/* Animated Shapes */
.animated-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: -100px;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  right: 20%;
  animation-delay: 3s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: -50px;
  animation-delay: 6s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 5%;
  animation-delay: 9s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(10px) rotate(-5deg);
  }
  75% {
    transform: translateY(-15px) rotate(3deg);
  }
}

/* Contact Info Cards */
.contact-info-section {
  padding: 80px 0 60px;
  background-color: var(--bg-light);
  position: relative;
  z-index: 2;
  margin-top: -50px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.contact-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: height 0.3s ease;
  z-index: -1;
}

.contact-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-card:hover::before {
  height: 100%;
  opacity: 0.05;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 10px 20px rgba(0, 90, 135, 0.2);
  transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  transition: var(--transition);
}

.contact-card:hover h3 {
  color: var(--secondary-color);
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-link {
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.btn-link:hover {
  color: var(--secondary-color);
}

.btn-link:hover::after {
  width: 100%;
}

/* Contact Form Section */
.contact-form-section {
  padding: 80px 0;
  background-color: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.section-header.text-left {
  text-align: left;
  margin-bottom: 30px;
}

.section-header.text-left h2::after {
  left: 0;
  transform: none;
}

.contact-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.input-wrapper {
  position: relative;
  overflow: hidden;
}

.input-wrapper input,
.textarea-wrapper textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: transparent;
  position: relative;
  z-index: 2;
}

.input-wrapper input:focus,
.textarea-wrapper textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.input-wrapper label,
.textarea-wrapper label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-lighter);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.textarea-wrapper label {
  top: 20px;
  transform: none;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.textarea-wrapper textarea:focus + label,
.textarea-wrapper textarea:not(:placeholder-shown) + label {
  top: 0;
  left: 15px;
  font-size: 0.8rem;
  padding: 0 5px;
  background-color: white;
  color: var(--primary-color);
  z-index: 3;
}

.input-focus-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
  z-index: 1;
}

.input-wrapper input:focus ~ .input-focus-bg,
.textarea-wrapper textarea:focus ~ .input-focus-bg {
  width: 100%;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  appearance: none;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-wrapper select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.select-arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-lighter);
  transition: all 0.3s ease;
}

.select-wrapper select:focus + .select-arrow {
  color: var(--primary-color);
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.8rem;
}

.checkbox-wrapper label {
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
}

.checkbox-wrapper label a {
  color: var(--primary-color);
  text-decoration: underline;
}

.form-submit {
  margin-top: 30px;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn i {
  transition: all 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(5px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 20px;
  animation: success-pulse 2s infinite;
}

@keyframes success-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.form-success p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.reset-form-btn {
  margin-top: 20px;
}

/* Info Side Styles */
.info-side {
  position: relative;
}

.contact-image-wrapper {
  position: relative;
  height: 300px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.contact-image-wrapper:hover .contact-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 90, 135, 0.2), rgba(0, 74, 112, 0.7));
}

.contact-departments {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  margin-bottom: 30px;
}

.contact-departments h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.contact-departments h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.department {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.department:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.department h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.department p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  color: var(--text-light);
}

.department p i {
  color: var(--primary-color);
  width: 20px;
}

.social-connect {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-lg);
  padding: 30px;
}

.social-connect h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.social-connect h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.social-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
  z-index: -1;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.facebook::before {
  background: #3b5998;
}

.twitter::before {
  background: #1da1f2;
}

.instagram::before {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.linkedin::before {
  background: #0077b5;
}

.youtube::before {
  background: #ff0000;
}

/* Map Section */
.map-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.map-container {
  margin-top: 50px;
  position: relative;
}

.map-wrapper {
  position: relative;
  height: 500px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.campus-map {
  width: 100%;
  height: 100%;
}

.map-overlay {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;
}

.map-card {
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 300px;
}

.map-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.map-card p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.map-card p i {
  color: var(--primary-color);
  width: 20px;
}

.direction-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.direction-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.direction-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: white;
}

.faq-container {
  max-width: 800px;
  margin: 50px auto 0;
}

.faq-item {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question h3 {
  font-size: 1.1rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.faq-icon {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  background-color: var(--primary-color);
}

.faq-item.active .faq-question h3 {
  color: white;
}

.faq-item.active .faq-icon {
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px;
  max-height: 1000px;
}

.faq-more {
  text-align: center;
  margin-top: 40px;
}

.faq-more p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: white;
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: var(--accent-color);
}

.modal-body {
  padding: 25px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .contact-banner h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .info-side {
    order: -1;
  }

  .contact-image-wrapper {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .contact-banner {
    height: 400px;
  }

  .contact-banner h1 {
    font-size: 2.5rem;
  }

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

  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-banner h1 {
    font-size: 2rem;
  }

  .map-overlay {
    position: relative;
    top: 0;
    left: 0;
    padding: 20px;
  }

  .map-card {
    max-width: 100%;
  }

  .direction-buttons {
    flex-direction: column;
  }
}

