/* ==============================================================================
   Contact page — Creative, polished stylesheet
   Features:
   - Gradient hero with background image, glass cards, soft shadows
   - Animated inputs, micro-interactions
   - Mobile-first responsive layout
   - Accessible focus states
   ============================================================================== */

:root {
  --accent: #0f5a88;
  /* deep academy blue */
  --accent-2: #00a3e0;
  /* bright cyan */
  --muted: #6b7280;
  --bg: #f6f8fb;
  --card: #ffffff;
  --radius: 14px;
  --glass: rgba(255, 255, 255, 0.72);
  --hero-gradient: linear-gradient(135deg, rgba(15, 90, 136, 0.9), rgba(0, 163, 224, 0.8));
}

/* Base */
html,
body {
  height: 100%;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: #0b2230;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Enhanced Hero Section */
.contact-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: white;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero/1.jpg') center/cover no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-gradient);
  z-index: 2;
}

.contact-hero-content {
  position: relative;
  z-index: 3;
  /* max-width: 800px; */
  padding: 40px 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge i {
  font-size: 18px;
  color: #ffd700;
}

.contact-hero .hero-title {
  font-size: 4rem;
  margin: 0 0 16px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-hero .hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  font-weight: 600;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.contact-hero .hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn.primary {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.cta-btn.primary:hover {
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
}

/* Floating Elements */
.hero-floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.floating-ball {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.ball-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.ball-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.ball-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 28px 0 48px
}

/* Cards */
.contact-form-container,
.contact-details {
  background: linear-gradient(180deg, var(--card), var(--glass));
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(12, 20, 30, 0.06);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.contact-form-container::before,
.contact-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(15, 90, 136, 0.3);
}

.contact-form-container h2,
.contact-details h2 {
  margin: 0 0 10px;
  font-size: 28px;
  color: #0b3755;
  font-weight: 700
}

/* Form styles */
.contact-form {
  display: grid;
  gap: 12px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0b3b57
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e6eef6;
  background: #fff;
  font-size: 15px;
  transition: box-shadow .18s ease, transform .08s ease;
  border-radius: 10px
}

.form-group textarea {
  min-height: 120px
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9aa6b2
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 10px 30px rgba(15, 90, 136, 0.12);
  transform: translateY(-2px);
  border-color: var(--accent);
  outline: none
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(15, 90, 136, 0.12);
  transition: transform .12s ease, box-shadow .12s ease
}

.submit-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 90, 136, 0.16)
}

/* Contact details */
.contact-method {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px
}

.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 90, 136, 0.12), rgba(0, 163, 224, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px
}

.contact-content h4 {
  margin: 0 0 6px
}

.contact-content p {
  margin: 0;
  color: var(--muted)
}

.phone-label {
  display: block;
  color: #4b5563;
  font-size: 13px
}

/* Map */
.map-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 22px
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  border: 0
}

/* Enhanced Social Media Section */
.social-media-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.social-header {
  text-align: center;
  margin-bottom: 60px;
}

.social-icon-header {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(15, 90, 136, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(15, 90, 136, 0.3);
  }

  50% {
    box-shadow: 0 8px 35px rgba(15, 90, 136, 0.5);
  }

  100% {
    box-shadow: 0 8px 25px rgba(15, 90, 136, 0.3);
  }
}

.social-header h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 800;
}

.social-intro {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Enhanced Social grid */
.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-radius: 16px;
  text-decoration: none;
  color: #0b2330;
  background: linear-gradient(135deg, #fff, #f8fafc);
  box-shadow: 0 8px 25px rgba(12, 20, 30, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.social-card:hover::before {
  left: 100%;
}

.social-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(12, 20, 30, 0.15);
}

.social-card .social-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-card:hover .social-icon {
  transform: scale(1.1) rotate(5deg);
}

.social-content {
  flex: 1;
}

.social-content h4 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
}

.social-content p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.follow-text {
  background: linear-gradient(45deg, var(--accent), var(--accent-2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  font-size: 0.9rem;
}

.social-arrow {
  color: var(--muted);
  transition: all 0.3s ease;
}

.social-card:hover .social-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Platform-specific colors */
.social-card.facebook .social-icon {
  background: linear-gradient(135deg, #3b5998, #4c70ba);
  color: white;
}

.social-card.instagram .social-icon {
  background: linear-gradient(135deg, #e4405f, #fd5949, #fccc63);
  color: white;
}

.social-card.youtube .social-icon {
  background: linear-gradient(135deg, #ff0000, #ff4444);
  color: white;
}

.social-card.whatsapp .social-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}

.social-card.twitter .social-icon {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9);
  color: white;
}

.social-card.linkedin .social-icon {
  background: linear-gradient(135deg, #0077b5, #005582);
  color: white;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eef6fb
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  cursor: pointer
}

.faq-answer {
  padding: 12px 14px;
  color: var(--muted);
  display: none
}

.faq-item.active .faq-answer {
  display: block
}

/* Emergency */
.emergency-contact {
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(240, 250, 255, 0.9), rgba(255, 255, 255, 0.65));
  border: 1px solid #e6f3fb
}

.emergency-btn {
  background: #e04747;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800
}

/* Desktop and Responsive */
@media(min-width:900px) {
  .contact-grid {
    grid-template-columns: 1fr 380px;
    gap: 28px
  }

  .map-container {
    grid-template-columns: 1fr 360px
  }

  .social-links-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .faq-grid {
    grid-template-columns: 1fr 1fr
  }

  .form-row {
    grid-template-columns: 1fr 1fr
  }
}

@media(min-width:1200px) {
  .social-links-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

/* Mobile Hero Adjustments */
@media(max-width:768px) {
  .contact-hero .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .contact-hero .hero-subtitle {
    font-size: 1.2rem;
  }

  .contact-hero .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .social-links-grid {
    grid-template-columns: 1fr;
  }

  .social-card {
    padding: 20px;
  }

  .floating-ball {
    display: none;
  }

  .contact-hero {
    min-height: 80vh;
  }
}

/* Accessibility helpers and animations */
.muted {
  color: var(--muted)
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced entrance animations */
.contact-form-container,
.contact-details {
  transform: translateY(20px);
  opacity: 0;
  animation: slideInUp 0.6s ease forwards;
}

.contact-details {
  animation-delay: 0.2s;
}

.social-card {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease forwards;
}

.social-card:nth-child(1) {
  animation-delay: 0.1s;
}

.social-card:nth-child(2) {
  animation-delay: 0.2s;
}

.social-card:nth-child(3) {
  animation-delay: 0.3s;
}

.social-card:nth-child(4) {
  animation-delay: 0.4s;
}

.social-card:nth-child(5) {
  animation-delay: 0.5s;
}

.social-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes slideInUp {
  to {
    transform: translateY(0);
    opacity: 1
  }
}

/* Loading states */
.social-card.animate {
  animation: slideInUp 0.6s ease forwards;
}

/* Focus states for accessibility */
.cta-btn:focus,
.social-card:focus {
  outline: 3px solid rgba(15, 90, 136, 0.5);
  outline-offset: 2px;
}

/* Print styles */
@media print {

  .hero-floating-elements,
  .social-card::before {
    display: none;
  }
}

/* Small helpers */
::placeholder {
  color: #9aa6b2
}

/* Contact info section spacing */
.contact-info-section {
  padding: 80px 0;
}

/* Section titles */
.section-title {
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #fafafa;
}

.faq-answer {
  padding: 12px 16px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Emergency */
.emergency-contact {
  background: #f7faff;
  padding: 18px;
  border-radius: 8px;
  margin-top: 18px;
}

.emergency-btn {
  display: inline-flex;
  gap: 10px;
  background: #c02b2b;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {

  .contact-grid,
  .map-container {
    grid-template-columns: 1fr;
  }

  .social-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .social-links-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}