/* Contact Page Specific Styles */

/* Page Header with Map Pin Animation */
.page-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--dark-color) 100%
  );
  padding: 80px 0 100px;
}

.page-header::before {
  content: "\f3c5"; /* Map marker icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  font-size: 180px;
  color: rgba(255, 255, 255, 0.05);
  top: -20px;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 0;
}

/* Contact Wrapper Layout */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-top: -50px;
  position: relative;
}

/* Contact Details Card */
.contact-details {
  background-color: var(--primary-color);
  color: white;
  padding: 40px 30px;
  position: relative;
  z-index: 10;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.contact-details::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: var(--accent-color);
  top: -20px;
  right: -20px;
  z-index: -1;
}

.contact-details h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.contact-details h3::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: white;
  bottom: 0;
  left: 0;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-detail:last-child {
  margin-bottom: 0;
}

.contact-detail i {
  font-size: 22px;
  margin-right: 20px;
  color: var(--accent-color);
  width: 25px;
  text-align: center;
}

.contact-detail div {
  flex: 1;
}

.contact-detail strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-detail p {
  margin: 0;
  line-height: 1.6;
}

/* Contact Form Container */
.contact-form-container {
  background-color: white;
  padding: 40px;
  position: relative;
  z-index: 10;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-container::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 20px;
  background-color: var(--accent-color);
  top: 0;
  left: 10%;
}

.contact-form-container h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 15px;
}

.contact-form-container h3::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Form Styling */
.contact-form .form-grid {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  transition: border 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

.form-group button {
  width: 100%;
  padding: 15px;
  border: none;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-group button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.form-group button:hover::before {
  left: 100%;
}

.form-group button:hover {
  background-color: var(--secondary-color);
}

/* Map Section */
.contact-map {
  grid-column: span 2;
  height: 450px;
  position: relative;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Custom Map Overlay */
.contact-map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  background-color: var(--primary-color);
  z-index: 10;
}

/* FAQ Section */
.content-section:nth-of-type(3) {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
}

.content-section:nth-of-type(3)::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: rgba(156, 93, 62, 0.05);
  top: -150px;
  left: -150px;
  transform: rotate(45deg);
}

.content-section:nth-of-type(3) h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}

.content-section:nth-of-type(3) h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.faq-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 30px;
}

.faq-item {
  background-color: white;
  padding: 30px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 0;
  background-color: var(--primary-color);
  left: 0;
  top: 0;
  transition: height 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.faq-item:hover::before {
  height: 100%;
}

.faq-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
  position: relative;
  padding-left: 35px;
}

.faq-item h3::before {
  content: "\f059"; /* Question mark icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.faq-item p {
  color: #666;
  line-height: 1.7;
  padding-left: 35px;
}

/* Animation Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-details,
.contact-form-container,
.faq-item {
  animation: fadeInUp 0.6s ease forwards;
}

.contact-details {
  animation-delay: 0.2s;
}

.contact-form-container {
  animation-delay: 0.4s;
}

.contact-map {
  animation-delay: 0.6s;
}

.faq-item:nth-child(1) {
  animation-delay: 0.8s;
}

.faq-item:nth-child(2) {
  animation-delay: 1s;
}

.faq-item:nth-child(3) {
  animation-delay: 1.2s;
}

.faq-item:nth-child(4) {
  animation-delay: 1.4s;
}

/* Form Error States */
.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.form-group input.error + .error-message,
.form-group textarea.error + .error-message {
  display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-map {
    grid-column: span 1;
  }

  .page-header h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.4rem;
  }

  .faq-container {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-details::before {
    display: none;
  }

  .page-header::before {
    display: none;
  }
}
