/* Contact Page Styles */

/* General Layout */
.contact-content {
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 60px 0;
}

h1,
h2,
h3 {
  color: var(--primary-color-dark);
  font-weight: 400;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Hero Section */
.contact-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../../../assets/img/contact/hero-background.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0 80px;
  position: relative;
  color: var(--text-color-light);
}

.contact-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(
    to right bottom,
    transparent 49%,
    var(--background-color-light) 50%
  );
}

.contact-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro p {
  font-size: 1.3rem;
  color: var(--text-color-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-title {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-title h1 {
  font-size: 3.5rem;
  color: var(--light-color);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  text-transform: uppercase;
}

/* Contact Form Section - Now first section after hero */
.contact-form-section {
  background-color: var(--background-color-light);
  color: var(--text-color);
  padding: 80px 0;
  position: relative;
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--background-color);
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2 {
  color: var(--primary-color-dark);
  text-align: center;
  margin-bottom: 40px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary-color-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  background-color: var(--background-color-light);
  color: var(--text-color);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
  outline: none;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  grid-column: span 2;
  text-align: center;
  margin-top: 10px;
}

.submit-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 12px 30px;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  text-transform: uppercase;
}

.submit-button:hover {
  background-color: var(--primary-color-light);
  transform: translateY(-3px);
}

/* Contact Information Section - Now second section after form */
.contact-info-section {
  background-color: var(--background-color-dark);
  color: var(--text-color-light);
  padding: 80px 0;
  position: relative;
}

.contact-info-section::before,
.contact-info-section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 50px;
}

.contact-info-section::before {
  top: 0;
  background: linear-gradient(
    to right bottom,
    var(--background-color-light) 49%,
    transparent 50%
  );
}

.contact-info-section::after {
  bottom: 0;
  background: linear-gradient(
    to left bottom,
    transparent 49%,
    var(--background-color-light) 50%
  );
}

.contact-info-section h2 {
  color: var(--text-color-light);
  text-align: center;
  margin-bottom: 40px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-us-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.contact-us-icon i {
  font-size: 2rem;
  color: var(--text-color-light);
}

.contact-card h3 {
  margin-bottom: 15px;
  color: var(--light-accent-color);
}

.contact-card p,
.contact-card a {
  color: var(--text-color-light);
  font-size: 1.1rem;
  margin-bottom: 5px;
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--light-accent-color);
  text-decoration: underline;
}

/* Map Section - Now third section after contact info */
.map-section {
  background-color: var(--background-color-light);
  padding: 0;
  position: relative;
  margin-top: -50px; /* Pull the map up to overlap with the contact info section */
}

.map-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 1;
  background: linear-gradient(
    to left bottom,
    var(--background-color-dark) 49%,
    transparent 50%
  );
}

.map-container {
  height: 500px;
  width: 100%;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: relative;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width,
  .form-submit {
    grid-column: span 1;
  }

  section {
    padding: 40px 0;
  }

  .contact-hero {
    padding: 60px 0 40px;
  }
}
