/* Contact Page Specific Styles */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--white);
  padding: 120px 0 60px;
  text-align: center;
  margin-top: 70px;
}

.page-header h1 {
  font-size: 3rem;
  font-family: var(--font-secondary);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Contact Information */
.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: var(--font-secondary);
}

.contact-info > p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-text p {
  color: var(--dark-gray);
  line-height: 1.5;
}

.social-contact h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Contact Form */
.contact-form-container {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-family: var(--font-secondary);
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  transform: translateY(-2px);
}

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

.form-error {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: block;
}

/* Checkbox Styling */
.checkbox-group {
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-weight: bold;
  font-size: 12px;
}

.terms-link {
  color: var(--secondary-color);
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Map Section */
.map-section {
  padding: 80px 0;
  background: var(--white);
}

.map-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  font-family: var(--font-secondary);
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.map-content i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.map-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
}

.map-content p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.map-content .btn {
  margin-top: 1rem;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Success Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--dark-gray);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--secondary-color);
}

.modal-body {
  padding: 3rem 2rem;
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.modal-body h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: var(--font-secondary);
}

.modal-body p {
  color: var(--dark-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Form Validation States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 191, 166, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-container {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-item {
    padding: 1rem;
  }

  .social-links {
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 100px 0 40px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .contact-section {
    padding: 60px 0;
  }

  .contact-info h2 {
    font-size: 2rem;
  }

  .contact-form h3 {
    font-size: 1.5rem;
  }

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

  .map-section h2 {
    font-size: 2rem;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .modal-content {
    margin: 20% auto;
    width: 95%;
  }

  .modal-body {
    padding: 2rem 1.5rem;
  }
}

/* Loading Animation */
.form-loading {
  opacity: 0.7;
  pointer-events: none;
}

.form-loading .submit-btn {
  background: var(--dark-gray);
}

/* Active nav link */
.nav-link.active {
  color: var(--secondary-color);
}

.nav-link.active::after {
  width: 100%;
}

/* Logo link styling */
.nav-logo a {
  color: var(--white);
  text-decoration: none;
}

.nav-logo a:hover {
  color: var(--secondary-color);
}
