/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT PAGE STYLES - PyStatR+
   File: scss/pages/contact.css
   
   This file owns ALL Contact page styling including:
   - Hero section (layout, padding, background, visuals)
   - Contact form styling
   - Contact info cards
   - Mobile responsive behavior
   
   NO other file should override these styles.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
  --navbar-height: 70px;
  --pystatr-deep-blue: #003366;
  --pystatr-navy: #1E3A8A;
  --pystatr-cyan: #22d3ee;
  --pystatr-gold: #FACC15;
  --pystatr-deep-black: #0B1120;
  --pystatr-slate: #1E293B;
  --pystatr-grey: #F7F9FC;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.contact-hero .container,
.contact-section .container,
.contact-support-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   FADE-IN ANIMATION OVERRIDE
   ========================================================================== */

.contact-hero .fade-in,
.contact-section .fade-in,
.contact-support-section .fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.contact-hero-content,
.contact-hero-visual,
.contact-form-wrapper,
.contact-info-wrapper,
.support-content {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* ==========================================================================
   SECTION LABEL
   ========================================================================== */

.contact-hero .section-label-dark {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 1rem;
}

/* ==========================================================================
   CTA BUTTONS
   ========================================================================== */

.contact-hero .cta-button,
.contact-support-section .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.contact-hero .cta-button:hover,
.contact-support-section .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  color: white;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 2px solid #0B1120;
  color: #0B1120;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline-dark:hover {
  background: #0B1120;
  color: white;
}

.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 2px solid #22d3ee;
  color: #22d3ee;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-cyan:hover {
  background: #22d3ee;
  color: #0B1120;
}

/* ==========================================================================
   CONTACT HERO SECTION
   ========================================================================== */

.contact-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0B1120 0%, #1E293B 50%, #0B1120 100%);
  overflow: hidden;
  padding-top: calc(var(--navbar-height) + 3rem);
  padding-bottom: 4rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.contact-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.contact-glow-orb.orb-cyan {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 70%);
  top: -100px;
  right: 10%;
}

.contact-glow-orb.orb-blue {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
  bottom: -50px;
  left: 10%;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.contact-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.contact-hero-title .text-white {
  color: white;
}

.contact-hero-title .text-gradient-cyan {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-hero-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 1.25rem;
  color: #9CA3AF;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}

.contact-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   PULSATING LOGO
   ========================================================================== */

.contact-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulsating-logo-container {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.3);
  animation: pulseRing 3s ease-out infinite;
}

.pulse-ring-1 {
  width: 100%;
  height: 100%;
  animation-delay: 0s;
}

.pulse-ring-2 {
  width: 130%;
  height: 130%;
  animation-delay: 1s;
}

.pulse-ring-3 {
  width: 160%;
  height: 160%;
  animation-delay: 2s;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.pulsating-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  animation: logoFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.3));
}

/* Fallback SVG Logo Styling */
.pulsating-logo-svg {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(250, 204, 21, 0.4));
}

.pulsating-logo-svg svg {
  width: 100%;
  height: 100%;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
  padding: 5rem 2rem;
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

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

/* ==========================================================================
   CONTACT FORM CARD
   ========================================================================== */

.contact-form-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(34, 211, 238, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-form-card .corner-accent {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid;
}

.contact-form-card .corner-tl {
  top: -1px;
  left: -1px;
  border-color: #22d3ee;
  border-right: none;
  border-bottom: none;
  border-radius: 20px 0 0 0;
}

.contact-form-card .corner-br {
  bottom: -1px;
  right: -1px;
  border-color: #3b82f6;
  border-left: none;
  border-top: none;
  border-radius: 0 0 20px 0;
}

.contact-form-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0B1120;
  margin-bottom: 0.5rem;
}

.contact-form-subtitle {
  font-family: 'Roboto', sans-serif;
  color: #6B7280;
  margin-bottom: 2rem;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0B1120;
}

.form-label .required {
  color: #ef4444;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  background: #f9fafb;
  transition: all 0.2s ease;
}

.form-input:hover {
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
  background: white;
  transform: translateY(-1px);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

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

.form-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

.form-submit-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 40px rgba(34, 211, 238, 0.4);
}

.form-submit-btn .btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.form-submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   CONTACT INFO CARDS
   ========================================================================== */

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(59, 130, 246, 0.05));
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(34, 211, 238, 0.1);
}

.info-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0B1120;
  margin-bottom: 1.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.info-icon-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon {
  width: 24px;
  height: 24px;
  color: white;
}

.info-content h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #0B1120;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.info-content a {
  color: #0891b2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-content a:hover {
  color: #22d3ee;
}

.info-content p {
  font-family: 'Roboto', sans-serif;
  color: #4B5563;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   FAQ CARD
   ========================================================================== */

.contact-faq-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.faq-icon-box {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.faq-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0B1120;
  margin-bottom: 0.5rem;
}

.faq-content p {
  font-family: 'Roboto', sans-serif;
  color: #6B7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.faq-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0891b2;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.faq-link:hover {
  color: #22d3ee;
}

.faq-link .link-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.faq-link:hover .link-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   COMMUNITY CARD
   ========================================================================== */

.contact-community-card {
  background: linear-gradient(135deg, #0B1120, #1E3A5F);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.community-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 70%);
  filter: blur(40px);
}

.community-content {
  position: relative;
  z-index: 2;
}

.community-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.community-content p {
  font-family: 'Roboto', sans-serif;
  color: #9CA3AF;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.community-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  transform: translateX(7.5px) !important;
}

.social-link.youtube:hover {
  background: #FFD700;
  color: #0B1120;
}

.social-link.facebook:hover {
  background: #1877F2;
}

.social-link.github:hover {
  background: #333;
}

.social-link.linkedin:hover {
  background: #0A66C2;
}

/* ==========================================================================
   SUPPORT SECTION
   ========================================================================== */

.contact-support-section {
  padding: 5rem 2rem;
  background: white;
}

.support-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.support-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0B1120;
  margin-bottom: 1rem;
}

.support-text {
  font-family: 'Roboto', sans-serif;
  font-size: 1.125rem;
  color: #6B7280;
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 1024px) {
  .contact-hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-hero-visual {
    display: none;
  }
  
  .contact-hero-content {
    text-align: center;
  }
  
  .contact-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .contact-hero-buttons {
    justify-content: center;
  }
  
  .contact-info-wrapper {
    order: -1;
  }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 767px) {
  .contact-hero {
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 2.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    min-height: auto;
  }
  
  .contact-hero-title {
    font-size: 1.75rem;
  }
  
  .contact-hero-subtitle {
    font-size: 1rem;
  }
  
  .contact-hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-hero .cta-button,
  .contact-hero .btn-outline-cyan {
    width: 100%;
    justify-content: center;
  }
  
  .contact-section {
    padding: 3rem 1.25rem;
  }
  
  .contact-form-card {
    padding: 1.5rem;
  }
  
  .contact-form-title {
    font-size: 1.5rem;
  }
  
  .contact-info-card {
    padding: 1.5rem;
  }
  
  .info-card-title {
    font-size: 1.25rem;
  }
  
  .contact-support-section {
    padding: 3rem 1.25rem;
  }
  
  .support-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .support-buttons .cta-button,
  .support-buttons .btn-outline-dark {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .contact-faq-card {
    flex-direction: column;
    text-align: center;
  }

  .faq-icon-box {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .contact-form-card {
    padding: 1rem;
    border-radius: 16px;
  }
  .contact-info-card {
    padding: 1rem;
  }
  .contact-hero-title {
    font-size: 1.5rem;
  }
}
