/* Contact Page Styling */

.contact-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 128, 128, 0.8) 0%, rgba(0, 160, 160, 0.7) 100%);
  color: #fff;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.pexels.com/photos/3209049/pexels-photo-3209049.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
}

.contact-hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-hero p {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
}

.contact-section {
  padding: 80px 0;
  background-color: #fff;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  padding: 30px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #008080;
}

.info-card p {
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  color: #444;
}

.contact-form-wrapper {
  flex: 1.5;
  min-width: 400px;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
}

.contact-form-wrapper h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  width: 100%;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9f9f9;
  color: #333;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: #008080;
  box-shadow: 0 0 0 2px rgba(0, 128, 128, 0.2);
  background: #fff;
}

.input-wrapper label {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Raleway', sans-serif;
  color: #777;
  transition: all 0.3s ease;
  pointer-events: none;
}

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

.input-wrapper input:focus ~ label,
.input-wrapper textarea:focus ~ label,
.input-wrapper.has-content input ~ label,
.input-wrapper.has-content textarea ~ label {
  top: -12px;
  left: 20px;
  font-size: 0.8rem;
  padding: 0 5px;
  background: #fff;
  color: #008080;
  border-radius: 4px;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.message-icon {
  top: 20px;
}

.input-wrapper.focused .input-icon,
.input-wrapper.has-content .input-icon {
  opacity: 1;
}

.name-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23008080'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.email-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23008080'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.subject-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23008080'%3E%3Cpath d='M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
}

.message-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23008080'%3E%3Cpath d='M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z'/%3E%3C/svg%3E");
}

.error-message {
  color: #e53935;
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
  font-family: 'Raleway', sans-serif;
}

.input-wrapper.has-error input,
.input-wrapper.has-error textarea {
  border-color: #e53935;
  background-color: rgba(229, 57, 53, 0.05);
}

.submit-button {
  margin-top: 20px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #008080 0%, #00a0a0 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 128, 128, 0.2);
  position: relative;
  overflow: hidden;
}

.submit-button::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: 0.5s;
}

.submit-button:hover {
  box-shadow: 0 6px 15px rgba(0, 128, 128, 0.3);
  transform: translateY(-3px);
}

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

.contact-form.submitting .submit-button {
  pointer-events: none;
  opacity: 0.7;
}

.contact-form.submitting .submit-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-message {
  display: none;
  padding: 30px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
}

.form-message h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.form-message p {
  margin-bottom: 0;
  font-family: 'Raleway', sans-serif;
}

.form-message.success {
  background: rgba(0, 128, 128, 0.1);
  border-left: 4px solid #008080;
}

.form-message.success h3 {
  color: #008080;
}

.form-message.error {
  background: rgba(229, 57, 53, 0.1);
  border-left: 4px solid #e53935;
}

.form-message.error h3 {
  color: #e53935;
}

.contact-form.submitted {
  height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  padding: 0;
}

.map-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.map-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(5px);
}

.map-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #008080;
}

.map-overlay p {
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #444;
}

.map-overlay .text-link {
  display: inline-block;
  color: #008080;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.map-overlay .text-link:hover {
  border-bottom-color: #008080;
}

.map-placeholder {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .contact-form-wrapper {
    min-width: 350px;
  }
}

@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
  }
  
  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .info-card {
    flex: 1;
    min-width: 200px;
  }
  
  .map-overlay {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .contact-hero h2 {
    font-size: 2.5rem;
  }
  
  .contact-hero p {
    font-size: 1rem;
  }
  
  .contact-form-wrapper {
    min-width: 100%;
    padding: 30px 20px;
  }
  
  .info-card {
    min-width: 100%;
  }
  
  .map-overlay {
    position: relative;
    width: 100%;
    height: auto;
    background: #fff;
  }
  
  .map-container {
    box-shadow: none;
  }
  
  .map-placeholder {
    height: 300px;
  }
}