/* ========================================
   CONTACT - Modern SaaS Card Design
   ======================================== */

.contact {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0) 100%);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact__wrapper {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Section Title */
.section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f5576c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  position: relative;
}

.section-title::after {
  content: '';
  display: none;
}

.contact__description {
  font-size: 0.9375rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Success Message */
.contact__success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.contact__success-icon {
  width: 40px;
  height: 40px;
  color: #10b981;
  margin-bottom: 0.75rem;
}

.contact__success-title {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.contact__success-text {
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Form Card */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.contact__field {
  text-align: left;
}

.contact__field--full {
  grid-column: 1 / -1;
}

.contact__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Input Fields */
.contact__input,
.contact__textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  color: #ffffff;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  font-family: inherit;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: #64748b;
}

.contact__input:focus,
.contact__textarea:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.contact__textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* Submit Button */
.contact__button {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 48px;
}

.contact__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.45);
  filter: brightness(1.08);
}

.contact__button:active {
  transform: translateY(0);
}

.contact__button .btn__icon {
  font-size: 1.125rem;
  transition: transform 0.25s ease;
}

.contact__button:hover .btn__icon {
  transform: translateX(4px);
}

.contact__button .btn__shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 0;
}

.contact__button:hover .btn__shine {
  left: 100%;
}

/* Email Section */
.contact__email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.contact__email-icon {
  width: 18px;
  height: 18px;
  color: #64748b;
  flex-shrink: 0;
}

.contact__email a {
  color: #cbd5e1;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 0.9375rem;
}

.contact__email a:hover {
  color: #667eea;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (min-width: 640px) {
  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.75rem;
    gap: 1.125rem;
  }
  
  .contact__field--full {
    grid-column: 1 / -1;
  }
  
  .contact__button {
    max-width: 280px;
    margin: 0 auto;
    display: flex;
  }
}

@media (min-width: 768px) {
  .contacto {
    padding: 5rem 1.5rem;
  }
  
  .contact__description {
    font-size: 1rem;
    margin-bottom: 3rem;
  }
  
  .contact__grid {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 3rem 1rem;
    overflow-x: hidden;
  }
  
  .contact__wrapper {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  
  .contact__grid {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .contact__field {
    margin-bottom: 0.5rem;
  }
  
  .contact__input,
  .contact__textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.875rem 0.875rem;
  }
  
  .contact__textarea {
    min-height: 120px;
  }
  
  .contact__button {
    width: 100%;
    max-width: 100%;
    margin-top: 0.75rem;
    padding: 1rem 1.5rem;
  }
  
  .contact__email {
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1.25rem;
  }
  
  .contact__description {
    margin-bottom: 2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
