/* ===================================================================
   contact.css - JobNav Contact Page Styles
   Professional contact page with forms, team info, and map
   =================================================================== */

/* =====================================================================
   SECTION 1: PAGE LAYOUT OVERRIDE
   Override the default sidebar layout for full-width marketing page
   ===================================================================== */
.contact-page {
  margin: calc(-1 * var(--space-md, 1rem)) 0 0 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* =====================================================================
   SECTION 2: HERO SECTION
   Gradient background with animated elements
   ===================================================================== */
.contact-hero {
  position: relative;
  background: linear-gradient(135deg, #010080 0%, #1a1a6e 50%, #0a0a50 100%);
  padding: 80px 0 100px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.1);
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
  background: rgba(255, 255, 255, 0.05);
  animation: float 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 30%;
  background: rgba(255, 204, 0, 0.05);
  animation: float 12s ease-in-out infinite;
}

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { top: 40%; left: 25%; animation-delay: 0.5s; }
.hero-particles span:nth-child(3) { top: 60%; left: 15%; animation-delay: 1s; }
.hero-particles span:nth-child(4) { top: 30%; right: 20%; animation-delay: 1.5s; }
.hero-particles span:nth-child(5) { top: 70%; right: 30%; animation-delay: 2s; }
.hero-particles span:nth-child(6) { top: 15%; left: 50%; animation-delay: 0.3s; }
.hero-particles span:nth-child(7) { top: 80%; left: 40%; animation-delay: 0.8s; }
.hero-particles span:nth-child(8) { top: 25%; right: 40%; animation-delay: 1.3s; }
.hero-particles span:nth-child(9) { top: 55%; right: 15%; animation-delay: 1.8s; }
.hero-particles span:nth-child(10) { top: 45%; left: 60%; animation-delay: 2.3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 204, 0, 0.15);
  border: 1px solid rgba(255, 204, 0, 0.3);
  color: #ffcc00;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-badge i {
  font-size: 16px;
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* =====================================================================
   SECTION 3: QUICK CONTACT CARDS
   Three contact method cards
   ===================================================================== */
.quick-contact-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.quick-contact-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 30px rgba(1, 0, 128, 0.08);
  border: 1px solid rgba(1, 0, 128, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

.quick-contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(1, 0, 128, 0.15);
}

.quick-contact-card.featured {
  background: linear-gradient(135deg, #010080 0%, #1a1a8e 100%);
  border: none;
}

.quick-contact-card.featured h3,
.quick-contact-card.featured p {
  color: #ffffff;
}

.quick-contact-card.featured .qc-hours {
  color: rgba(255, 255, 255, 0.7);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
  color: #010080;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qc-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(1, 0, 128, 0.08) 0%, rgba(1, 0, 128, 0.04) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.quick-contact-card.featured .qc-icon {
  background: rgba(255, 255, 255, 0.15);
}

.qc-icon i {
  font-size: 32px;
  color: #010080;
}

.quick-contact-card.featured .qc-icon i {
  color: #ffcc00;
}

.quick-contact-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212121;
  margin-bottom: 12px;
}

.quick-contact-card p {
  color: #616161;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.qc-phone,
.qc-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #010080;
  padding: 12px 24px;
  background: rgba(1, 0, 128, 0.06);
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.quick-contact-card.featured .qc-phone,
.quick-contact-card.featured .qc-email {
  background: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
}

.qc-phone:hover,
.qc-email:hover {
  background: #010080;
  color: #ffffff;
  transform: scale(1.02);
}

.quick-contact-card.featured .qc-phone:hover,
.quick-contact-card.featured .qc-email:hover {
  background: #ffcc00;
  color: #010080;
}

.qc-hours {
  display: block;
  font-size: 0.85rem;
  color: #9e9e9e;
}

/* =====================================================================
   SECTION 4: MAIN CONTACT SECTION
   Form and sidebar layout
   ===================================================================== */
.main-contact-section {
  padding: 80px 0;
  background: #ffffff;
}

/* Contact Form */
.contact-form-wrapper {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 4px 40px rgba(1, 0, 128, 0.08);
  border: 1px solid rgba(1, 0, 128, 0.06);
}

.form-header {
  margin-bottom: 32px;
}

.form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #212121;
  margin-bottom: 8px;
}

.form-header p {
  color: #616161;
  font-size: 1rem;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #424242;
  margin-bottom: 8px;
}

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

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9e9e9e;
  font-size: 18px;
  transition: color 0.3s ease;
  z-index: 1;
}

.input-wrapper.textarea-wrapper i {
  top: 20px;
  transform: none;
}

.input-wrapper .form-control {
  width: 100%;
  padding: 14px 16px 14px 50px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  transition: all 0.3s ease;
  font-family: inherit;
}

.input-wrapper .form-control:focus {
  outline: none;
  border-color: #010080;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(1, 0, 128, 0.1);
}

.input-wrapper .form-control:focus + i,
.input-wrapper:focus-within i {
  color: #010080;
}

.input-wrapper .form-control::placeholder {
  color: #bdbdbd;
}

.select-wrapper select {
  appearance: none;
  cursor: pointer;
  padding-right: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239e9e9e' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.input-wrapper textarea {
  min-height: 140px;
  resize: vertical;
}

.form-check-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f8f9fc;
  border-radius: 12px;
  margin-bottom: 24px;
}

.form-check-wrapper .form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid #bdbdbd;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-check-wrapper .form-check-input:checked {
  background-color: #010080;
  border-color: #010080;
}

.form-check-wrapper .form-check-label {
  font-size: 0.9rem;
  color: #616161;
  line-height: 1.5;
  cursor: pointer;
}

.form-check-wrapper .form-check-label a {
  color: #010080;
  text-decoration: underline;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, #010080 0%, #1a1a8e 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(1, 0, 128, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(1, 0, 128, 0.4);
}

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

.btn-submit .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.btn-submit.loading {
  opacity: 0.8;
  pointer-events: none;
}

/* Contact Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-card,
.office-card,
.social-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(1, 0, 128, 0.06);
  border: 1px solid rgba(1, 0, 128, 0.05);
}

.team-card h3,
.office-card h3,
.social-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #212121;
  margin-bottom: 12px;
}

.team-card h3 i,
.office-card h3 i,
.social-card h3 i {
  color: #010080;
  font-size: 20px;
}

.team-intro {
  color: #757575;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.team-members {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8f9fc;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.team-member:hover {
  background: rgba(1, 0, 128, 0.06);
  transform: translateX(4px);
}

.member-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-avatar span {
  font-size: 16px;
  font-weight: 700;
  color: #010080;
}

.member-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #212121;
  margin-bottom: 2px;
}

.member-role {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #010080;
  margin-bottom: 4px;
}

.member-info p {
  font-size: 0.8rem;
  color: #757575;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Office Card */
.office-address {
  font-size: 0.95rem;
  color: #424242;
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid #ffcc00;
}

.office-hours {
  padding: 16px;
  background: #f8f9fc;
  border-radius: 12px;
}

.office-hours strong {
  display: block;
  font-size: 0.85rem;
  color: #010080;
  margin-bottom: 8px;
}

.office-hours p {
  font-size: 0.9rem;
  color: #616161;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Social Card */
.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f8f9fc;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #424242;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link i {
  font-size: 18px;
}

.social-link.linkedin:hover {
  background: #0077b5;
  color: #ffffff;
}

.social-link.twitter:hover {
  background: #1da1f2;
  color: #ffffff;
}

.social-link.facebook:hover {
  background: #1877f2;
  color: #ffffff;
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #ffffff;
}

/* =====================================================================
   SECTION 5: MAP SECTION
   Full-width embedded map
   ===================================================================== */
.map-section {
  position: relative;
  background: #f8f9fc;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(20%) contrast(1.1);
}

.map-overlay-card {
  position: absolute;
  bottom: 40px;
  left: 50px;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 300px;
}

.overlay-content {
  text-align: left;
}

.overlay-content i {
  font-size: 32px;
  color: #010080;
  margin-bottom: 12px;
}

.overlay-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212121;
  margin-bottom: 8px;
}

.overlay-content p {
  font-size: 0.9rem;
  color: #616161;
  margin-bottom: 16px;
  line-height: 1.5;
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #010080;
  transition: all 0.3s ease;
}

.directions-btn:hover {
  gap: 12px;
  color: #000066;
}

/* =====================================================================
   SECTION 6: CTA SECTION
   Call to action for support/FAQs
   ===================================================================== */
.contact-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
}

.cta-wrapper {
  background: linear-gradient(135deg, #010080 0%, #1a1a6e 100%);
  border-radius: 28px;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 204, 0, 0.1);
  border-radius: 50%;
}

.cta-wrapper::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.btn-cta-primary {
  background: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
  color: #010080;
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
  color: #010080;
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  color: #ffffff;
}

/* =====================================================================
   SECTION 7: RESPONSIVE STYLES
   Mobile and tablet adaptations
   ===================================================================== */
@media (max-width: 991.98px) {
  .contact-hero {
    padding: 60px 0 80px;
  }
  
  .quick-contact-section {
    padding: 60px 20px;
  }
  
  .main-contact-section {
    padding: 60px 20px;
  }
  
  .contact-form-wrapper {
    padding: 32px 24px;
  }
  
  .map-overlay-card {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: none;
  }
  
  .cta-wrapper {
    padding: 40px 24px;
    border-radius: 20px;
  }
}

@media (max-width: 767.98px) {
  .contact-hero {
    padding: 50px 20px 70px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .quick-contact-card {
    padding: 30px 20px;
  }
  
  .qc-phone,
  .qc-email {
    font-size: 1rem;
    padding: 10px 20px;
  }
  
  .contact-sidebar {
    margin-top: 20px;
  }
  
  .social-links {
    grid-template-columns: 1fr;
  }
  
  .map-wrapper {
    height: 300px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* =====================================================================
   SECTION 8: ACCESSIBILITY & REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-shape,
  .hero-particles span {
    animation: none;
  }
  
  .quick-contact-card:hover,
  .team-member:hover,
  .social-link:hover,
  .btn-submit:hover,
  .btn-cta-primary:hover,
  .btn-cta-secondary:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .contact-hero {
    background: #ffffff;
    color: #000000;
  }
  
  .hero-title,
  .hero-subtitle {
    color: #000000;
  }
  
  .map-section,
  .hero-bg-elements {
    display: none;
  }
}