/* Custom styles for Contact page */

/* Page Banner with geometric pattern */

/* Contact grid with unique styling */
.contact {
  padding: 5rem 0;
  position: relative;
  background-color: var(--light);
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: var(--primary);
  z-index: 1;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.contact-info {
  position: relative;
  background-color: var(--primary);
  color: var(--light);
  padding: 3rem;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
  z-index: 2;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--secondary);
  z-index: -1;
  pointer-events: none;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.contact-info h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
}

.contact-info p {
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.contact-info-item {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  position: relative;
  transition: all 0.3s ease;
  padding: 1rem;
}

.contact-info-item:hover {
  background-color: var(--primary);
}

.contact-info-item i {
  font-size: 1.8rem;
  margin-right: 1.5rem;
  color: var(--secondary);
  width: 40px;
  text-align: center;
}

.contact-info-item div {
  flex: 1;
}

.contact-info-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.contact-info-item p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-form {
  background-color: var(--light);
  padding: 3rem;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
  color: var(--primary);
}

.contact-form h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
}

.contact-form p {
  margin-bottom: 2rem;
  color: var(--black);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: none;
  background-color: var(--light);
  color: var(--black);
}

.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--secondary);
  background-color: var(--light);
}

.form-control::placeholder {
  color: var(--primary);
}

.form-control.error {
  border: 1px solid var(--primary);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Custom submit button */
.btn-submit {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--secondary);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--primary);
  z-index: -1;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  color: var(--light);
}

.btn-submit:hover::before {
  width: 100%;
}

/* Map section */
.map-container {
  position: relative;
  height: 500px;
  margin-top: 5rem;
  overflow: hidden;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-info {
  position: absolute;
  top: 50px;
  right: 50px;
  background-color: var(--primary);
  color: var(--light);
  padding: 2rem;
  max-width: 300px;
  z-index: 2;
  border-left: 5px solid var(--secondary);
}

.map-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light);
  position: relative;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  position: relative;
  background-color: var(--light);
}

.faq::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background-color: var(--primary);
  opacity: 0.05;
  z-index: 0;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--secondary);
  padding-left: 1.5rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-left-width: 5px;
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 0;
  cursor: pointer;
  color: var(--primary);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--secondary);
}

.faq-answer {
  display: none;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item.active .faq-question::after {
  content: "-";
  color: var(--secondary);
}

/* Office hours section */
.office-hours {
  padding: 5rem 0;
  background-color: var(--primary);
  color: var(--light);
}

.hours-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.hours-card {
  background-color: var(--light);
  padding: 2rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hours-card:hover {
  transform: translateY(-10px);
}

.hours-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.hours-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.hours-day {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hours-time {
  font-size: 1.1rem;
  color: var(--primary);
}

/* Media Queries */
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    clip-path: none;
  }

  .map-info {
    position: relative;
    top: auto;
    right: auto;
    max-width: 100%;
    margin-bottom: 2rem;
    border-left: 5px solid var(--secondary);
  }

  .map-container {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contact-info h2,
  .contact-form h2 {
    font-size: 1.8rem;
  }

  .hours-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .contact-info,
  .contact-form {
    padding: 2rem;
  }

  .contact-info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
  }

  .contact-info-item h3 {
    font-size: 1.1rem;
  }

  .btn-submit {
    width: 100%;
  }
}
