/* ========================================
   📞 CONTACT PAGE - RESPONSIVE CSS
   Mobile First Design
======================================== */

/* ✅ Contact Main Container */
.contact-main {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 2rem 1.5rem;
}

/* ========================================
   📋 CONTACT HEADER
======================================== */
.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ========================================
   📱 CONTACT GRID (Mobile First)
======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* ========================================
   📝 CONTACT FORM SECTION
======================================== */
.contact-form-section h2,
.contact-info-section h2 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--bg-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.submit-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  margin-top: 0.5rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Form Messages */
.form-message {
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
  border: 2px solid #10b981;
}

.form-message.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid #ef4444;
}

/* ========================================
   📞 CONTACT INFO SECTION
======================================== */
.info-intro {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.info-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-color);
  border-radius: 12px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.info-content p {
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.info-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.info-content a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.info-note {
  font-size: 0.85rem;
  color: var(--text-light) !important;
  font-style: italic;
}

/* ========================================
   ❓ FAQ SECTION
======================================== */
.faq-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border-color);
}

.faq-section h2 {
  font-size: 1.75rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.faq-item {
  padding: 1.5rem;
  background: var(--bg-color);
  border-radius: 12px;
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.faq-item h3 {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ========================================
   🎨 ACTIVE NAV LINK
======================================== */
nav a.active {
  background: var(--primary-color);
  color: white;
}

/* ========================================
   📱 RESPONSIVE - TABLETS (640px+)
======================================== */
@media (min-width: 640px) {
  .contact-header h1 {
    font-size: 2.25rem;
  }

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   💻 RESPONSIVE - DESKTOP (768px+)
======================================== */
@media (min-width: 768px) {
  .contact-main {
    padding: 3rem 2.5rem;
  }

  .contact-header h1 {
    font-size: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1rem;
  }
}

/* ========================================
   🖥️ RESPONSIVE - LARGE DESKTOP (1024px+)
======================================== */
@media (min-width: 1024px) {
  .contact-header h1 {
    font-size: 3rem;
  }

  .contact-grid {
    gap: 4rem;
  }

  .faq-grid {
    gap: 2rem;
  }
}

/* ========================================
   ✨ ANIMATIONS
======================================== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form-section,
.contact-info-section {
  animation: slideIn 0.6s ease;
}

.contact-info-section {
  animation-delay: 0.2s;
  animation-fill-mode: backwards;
}

.info-card {
  animation: slideIn 0.6s ease backwards;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }

.faq-item {
  animation: slideIn 0.6s ease backwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   ♿ ACCESSIBILITY
======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}