/* ============================================
   CLASS-MARKET - CONTACT PAGE CSS
   Modern contact form and information cards
============================================ */

:root {
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --neutral-900: #0f172a;
  --neutral-700: #334155;
  --neutral-600: #64748b;
  --neutral-200: #e2e8f0;
  --success: #10b981;
}

.contact {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
  padding-top: calc(80px + 40px);
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.section-header h2 {
  color: var(--neutral-900);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-header h2 i {
  color: #ec4899;
  font-size: 2rem;
}

.section-header p {
  color: var(--neutral-600);
  font-size: 1.1rem;
  margin: 0;
}

/* ============================================
   CONTACT CONTENT LAYOUT
============================================ */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 80px;
  align-items: start;
}

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

.contact-info h2 {
  color: var(--neutral-900);
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info h2 i {
  color: #ec4899;
}

.contact-info > p {
  color: var(--neutral-700);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-method {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: white;
  border-radius: 15px;
  border: 1px solid var(--neutral-200);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-method:hover {
  transform: translateX(10px) translateY(-5px);
  border-color: var(--primary-500);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.method-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  border-radius: 12px;
  font-size: 1.8rem;
  color: white;
  flex-shrink: 0;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.contact-method:hover .method-icon-box {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 15px 50px rgba(6, 182, 212, 0.3);
}

.method-info h4 {
  color: var(--neutral-900);
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.method-info a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.method-info a:hover {
  text-decoration: underline;
}

.method-info p {
  color: var(--neutral-600);
  font-size: 0.9rem;
  margin: 6px 0 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.method-info p i {
  color: var(--success);
}

/* ============================================
   SOCIAL LINKS
============================================ */

.social-links {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.social-link.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.social-link.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0a66c2 100%);
}

.social-link.instagram {
  background: linear-gradient(135deg, #e1306c 0%, #fd1d1d 50%, #f77737 100%);
}

.social-link.tiktok {
  background: linear-gradient(135deg, #25f4ee 0%, #252525 100%);
  color: white;
}

.social-link:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

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

.contact-form-container {
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--neutral-200);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.alert {
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  animation: slideInDown 0.5s ease-out;
}

.alert i {
  font-size: 1.2rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error,
.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.form-group {
  margin-bottom: 25px;
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral-900);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.form-label i {
  color: var(--primary-600);
  font-size: 1.1rem;
}

.required {
  color: #ef4444;
  font-weight: 700;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--neutral-200);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
  color: var(--neutral-900);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: #fafbff;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--neutral-500);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  color: var(--neutral-600);
  font-size: 0.85rem;
  margin-top: 15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-note i {
  color: var(--primary-600);
}

/* ============================================
   FAQ SECTION
============================================ */

.faq-section {
  margin-top: 100px;
  padding-top: 80px;
  border-top: 2px solid var(--neutral-200);
  animation: fadeInUp 1s ease-out;
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-header h2 {
  color: var(--neutral-900);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.faq-header h2 i {
  color: #f59e0b;
  font-size: 2rem;
}

.faq-header p {
  color: var(--neutral-600);
  font-size: 1.1rem;
  margin: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.faq-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--neutral-200);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: slideInUp 0.8s ease-out;
  animation-fill-mode: both;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.faq-item:hover::before {
  left: 100%;
}

.faq-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary-400);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  border-radius: 10px;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 15px;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.faq-item:hover .faq-icon {
  transform: scale(1.15) rotate(-10deg);
  box-shadow: 0 15px 50px rgba(6, 182, 212, 0.3);
}

.faq-item h4 {
  color: var(--neutral-900);
  font-size: 1.1rem;
  margin: 0 0 12px 0;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.faq-item p {
  color: var(--neutral-700);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* ============================================
   ANIMATIONS CORE
============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 768px) {
  .contact {
    padding: 60px 0 40px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-container {
    padding: 25px;
  }

  .contact-methods {
    gap: 15px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 420px) {
  .contact {
    padding: 40px 0 20px;
  }

  .contact-info h2 {
    font-size: 1.4rem;
  }

  .contact-form-container {
    padding: 20px;
  }

  .form-input,
  .form-textarea {
    padding: 10px 12px;
    font-size: 16px;
  }

  .faq-item {
    padding: 20px;
  }
}
.contact-method:nth-child(3) { animation-delay: 0.3s; }
.contact-method:nth-child(4) { animation-delay: 0.4s; }

.contact-method:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-color: #0ea5e9;
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.2);
}

.method-icon {
  font-size: 2.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

.contact-method:hover .method-icon {
  animation: iconSpin 0.6s ease-out;
}

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

@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.method-info h4 {
  color: #0ea5e9;
  font-weight: 700;
  margin-bottom: 8px;
}

.method-info p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.method-info a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.method-info a:hover {
  color: #06b6d4;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  animation: fadeInUp 0.9s ease-out 0.5s both;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.social-link::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;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(6, 182, 212, 0.4));
  border-color: rgba(59, 130, 246, 0.6);
  color: white;
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.social-link svg {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: rotate(15deg) scale(1.15);
}

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

.contact-form-container {
  animation: fadeInRight 0.9s ease-out;
}

.contact-form {
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
  border: 2px solid #cbd5e1;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  animation: slideInUp 0.8s ease-out 0.1s both;
}

.form-group {
  margin-bottom: 25px;
  animation: slideInUp 0.7s ease-out;
  animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.2s; }
.form-group:nth-child(2) { animation-delay: 0.3s; }
.form-group:nth-child(3) { animation-delay: 0.4s; }
.form-group:nth-child(4) { animation-delay: 0.5s; }

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: #1e293b;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  background: #ffffff;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: slideInUp 0.8s ease-out 0.6s both;
  position: relative;
  overflow: hidden;
}

.form-submit::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;
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* ============================================
   ANIMATIONS
============================================ */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  }
  100% {
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
  }
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 768px) {
  .contact {
    padding: 60px 0;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info h2 {
    font-size: 1.6rem;
  }

  .contact-form {
    padding: 30px;
  }

  .contact-methods {
    gap: 15px;
  }

  .contact-method {
    padding: 20px;
  }

  .method-icon {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .contact {
    padding: 40px 0;
  }

  .contact-info h2 {
    font-size: 1.4rem;
  }

  .contact-info > p {
    font-size: 0.9rem;
  }

  .contact-form {
    padding: 25px;
  }

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

  .contact-methods {
    gap: 12px;
  }

  .contact-method {
    padding: 18px;
    gap: 15px;
  }

  .method-icon {
    font-size: 1.8rem;
  }
}

@media (max-width: 420px) {
  .contact {
    padding: 30px 0;
  }

  .contact-info h2 {
    font-size: 1.2rem;
  }

  .contact-info > p {
    font-size: 0.85rem;
  }

  .contact-form {
    padding: 20px;
  }

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

  .contact-method {
    padding: 15px;
    gap: 12px;
  }

  .method-icon {
    font-size: 1.6rem;
  }

  .social-links {
    gap: 10px;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }
}
