/* Contact Hero Section */
.contact-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/images/contact-preview.jpg") no-repeat center
    center/cover;
  z-index: -1;
  background-attachment: fixed;
}

.contact-hero {
  position: relative;
  padding: 8rem 0;
  color: #fff;
  overflow: hidden;
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.contact-hero .highlight {
  color: #ffd700;
  position: relative;
}

.contact-hero .highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: rgba(255, 215, 0, 0.2);
  z-index: -1;
  border-radius: 50px;
}

.contact-hero .hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  opacity: 0.9;
}

/* Contact Options */
.contact-options {
  padding: 5rem 0;
  background-color: #fff;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.option-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

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

.option-icon {
  width: 60px;
  height: 60px;
  background-color: #e6f0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #0056b3;
  font-size: 1.5rem;
}

.option-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #212529;
}

.contact-details {
  margin-top: 1.5rem;
}

.contact-details p {
  margin-bottom: 0.75rem;
  color: #495057;
}

.contact-details strong {
  color: #212529;
}

/* Contact Form Section */
.contact-form-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.form-intro {
  padding: 2rem;
}

.form-intro h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #212529;
}

.form-features {
  margin-top: 2rem;
}

.form-features p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #495057;
}

.form-features i {
  color: #0056b3;
}

.sterra-contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #212529;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0056b3;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #dc3545;
}

.form-group.has-error .error-message {
  display: block;
}

.form-footer {
  margin-top: 2rem;
}

.form-disclaimer {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 1rem;
}

.form-disclaimer a {
  color: #0056b3;
  text-decoration: none;
}

.form-disclaimer a:hover {
  text-decoration: underline;
}

/* FAQ Preview */
.faq-preview {
  padding: 5rem 0;
  background-color: #fff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.faq-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #0056b3;
}

.faq-card p {
  color: #495057;
  margin-bottom: 0.5rem;
}

.faq-card a {
  color: #0056b3;
  text-decoration: none;
}

.faq-card a:hover {
  text-decoration: underline;
}

.faq-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Notification Popup */
.notification-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.notification-popup.success .popup-icon {
  color: #28a745;
}

.notification-popup.error .popup-icon {
  color: #dc3545;
}

.popup-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.popup-close {
  margin-top: 1.5rem;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
  vertical-align: middle;
}

.spinner.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .form-container {
    grid-template-columns: 1fr;
  }

  .form-intro {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .contact-hero h1 {
    font-size: 2.5rem;
  }

  .contact-hero .hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .contact-hero h1 {
    font-size: 2rem;
  }

  .options-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
