/* Contact Page Specific Styles */

.contact-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
}

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

.hero-content {
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

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

/* Contact Form */
.contact-form-container {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-header p {
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  position: relative;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

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

.form-icon {
  position: absolute;
  right: 15px;
  top: 70%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.form-group:has(textarea) .form-icon {
  top: 45px;
  transform: none;
}

.submit-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.submit-btn:active {
  transform: translateY(0);
}

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

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

/* Contact Information */
.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.contact-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-card > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

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

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

.contact-text p {
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.quick-contact {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

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

.quick-buttons {
  display: flex;
  gap: 1rem;
}

.quick-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.phone-btn {
  background: var(--primary-color);
  color: white;
}

.phone-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.whatsapp-btn {
  background: #25d366;
  color: white;
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

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

.map-container {
  margin-top: 3rem;
}

.map-placeholder {
  height: 400px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-content {
  text-align: center;
  color: white;
  z-index: 2;
  position: relative;
}

.map-content i {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.map-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.map-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 3rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-medium);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-secondary);
}

.faq-item.active .faq-question {
  background: var(--primary-color);
}

.faq-item.active .faq-question h4 {
  color: white;
}

.faq-question h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.3s ease;
}

.faq-question i {
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 10px 0;
}

.faq-answer p {
  padding: 0 1.5rem 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.faq-answer ul {
  padding: 0 1.5rem 1rem 3rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

.faq-answer ul li {
  margin-bottom: 0.5rem;
}

.faq-answer p:last-child {
  padding-bottom: 1.5rem;
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ef4444;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: #10b981;
}

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

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

/* Loading State */
.submit-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

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

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

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

  .contact-details {
    gap: 1.5rem;
  }

  .contact-item {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .contact-text h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .contact-text p {
    font-size: 0.9rem;
    word-break: break-word;
  }

  .quick-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .quick-btn {
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .map-placeholder {
    height: 300px;
  }

  .map-container iframe {
    height: 300px;
    border-radius: 10px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .faq-question h4 {
    font-size: 1rem;
  }

  .faq-answer p,
  .faq-answer ul {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.95rem;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .container {
    padding: 0 1rem;
  }
}
