/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Hero Section */
.contact-hero {
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 12px, rgba(255,255,255,0) 12px 24px),
    linear-gradient(135deg, #e7eaf1 0%, #b8cbf8 50%, #b8cbf8 70%, #0e407a 100%);
  background-blend-mode: overlay;
  color: white;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .contact-hero {
  background-image:
    repeating-linear-gradient(135deg, rgba(16, 16, 16, 0.08) 0 12px, rgba(9, 9, 9, 0) 12px 24px),
    linear-gradient(135deg, #0c0d0d 0%, #101216 50%, #21242d 70%, #0e407a 100%);
  background-blend-mode: overlay;
  color: white;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(189, 180, 208, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: drift 20s linear infinite;
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  font-family: "Lora", serif;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 600px;
  opacity: 0.95;
}

.min-vh-75 {
  min-height: 75vh;
}

/* Contact Options Section */
.contact-options {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-family: "Lora", serif;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-primary, #000);
}

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

.contact-option-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color, #667eea);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 50%;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: var(--text-primary, #000);
}

.card-description {
  color: var(--text-secondary, #666);
  line-height: 1.7;
  font-size: 1rem;
}

/* Alternative Contact Section */
.alternative-contact {
  padding: 5rem 0;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color, #667eea);
  transition: all 0.3s ease;
}

.contact-method:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.method-icon {
  font-size: 1.75rem;
  color: var(--primary-color, #667eea);
  min-width: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-content h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #000);
}

.method-content a {
  color: var(--primary-color, #667eea);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.method-content a:hover {
  background-color: var(--primary-color, #667eea);
  color: white;
  text-decoration: underline;
}

/* Social Proof Section */
.social-proof {
  padding: 5rem 0;
}

.stat-card {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color, #667eea);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary, #666);
  font-weight: 500;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-link-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color, #667eea);
  border-radius: 50%;
  color: var(--primary-color, #667eea);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link-icon:hover {
  background: var(--primary-color, #667eea);
  color: white;
  transform: scale(1.1);
}

/* CTA Section */
.contact-cta {
  background: linear-gradient(135deg, var(--gradient-start, #667eea) 0%, var(--gradient-end, #764ba2) 100%);
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.contact-cta h2 {
  font-size: 2.5rem;
  font-family: "Lora", serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-cta .lead {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Buttons */
.btn-primary {
  background: var(--primary-color, #667eea);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary::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 ease;
}

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

.btn-primary:hover {
  background: var(--primary-hover, #00d4ff);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(18, 120, 197, 0.6), 0 0 25px rgba(0, 212, 255, 0.4);
  color: white;
  text-decoration: none;
}

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

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

  .section-title {
    font-size: 2rem;
  }

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

  .contact-cta h2 {
    font-size: 1.75rem;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .contact-option-card {
    padding: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }
}

/* Form Section */
.contact-form-section {
  padding: 5rem 0;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary, #000);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.form-control,
.form-select {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: white;
  color: var(--text-primary, #000);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color, #667eea);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  outline: none;
}

.form-control::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.3rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: var(--primary-color, #667eea);
  border-color: var(--primary-color, #667eea);
}

.form-check-input:focus {
  border-color: var(--primary-color, #667eea);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-check-label {
  color: var(--text-primary, #000);
  cursor: pointer;
  margin-left: 0.5rem;
}

/* Form Messages */
.alert {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 1rem 1.25rem;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

/* Submit Button Styling */
.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form Loading State */
.btn-primary.loading {
  position: relative;
  color: transparent;
}

.btn-primary.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

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

/* Dark Mode Support (use data-theme attribute for consistency) */
[data-theme="dark"] .contact-option-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .contact-method {
  background: var(--dark-bg-secondary, #1a1a1a);
  /* border-color: rgba(255, 255, 255, 0.1); */
  color: var(--dark-text, #e0e0e0);
}

[data-theme="dark"] .card-title,
[data-theme="dark"] .method-content h4 {
  color: var(--dark-text, #e0e0e0);
}

[data-theme="dark"] .card-description,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .method-content {
  color: var(--dark-text-secondary, #b0b0b0);
}

[data-theme="dark"] .section-title {
  color: var(--dark-text, #e0e0e0);
}

[data-theme="dark"] .bg-light {
  background: var(--dark-bg-primary, #0f0f0f) !important;
}

[data-theme="dark"] .contact-form {
  background: var(--dark-bg-secondary, #1a1a1a);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-label {
  color: var(--dark-text, #e0e0e0);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: var(--dark-bg-secondary, #1a1a1a);
  color: var(--dark-text, #e0e0e0);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .form-check-label {
  color: var(--dark-text, #e0e0e0);
}

[data-theme="dark"] .small.text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* CTA Section Animations */
.contact-cta.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.contact-cta.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.contact-cta.scroll-reveal.active h2 {
  animation: fadeInUp 1s ease 0.2s both;
}

.contact-cta.scroll-reveal.active .lead {
  animation: fadeInUp 1s ease 0.4s both;
}

.contact-cta.scroll-reveal.active .cta-animated-btn {
  animation: fadeInUp 1s ease 0.6s both, pulseGlow 3s ease-in-out infinite;
}

.cta-animated-btn {
  position: relative;
  overflow: hidden;
}

.cta-animated-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(18, 120, 197, 0.6), 0 0 25px rgba(0, 212, 255, 0.4);
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
  }
  50% {
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.5);
  }
}

.cta-animated-btn i {
  transition: transform 0.3s ease;
}

.cta-animated-btn:hover i {
  transform: translateX(5px);
}
