:root {
  --primary-color: #dc2626;
  --primary-gradient: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --secondary-color: #000000;
  --accent-color: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #374151;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-gradient: linear-gradient(
    135deg,
    #dc2626 0%,
    #991b1b 50%,
    #ffffff 100%
  );
  --shadow-primary: 0 20px 40px rgba(220, 38, 38, 0.3);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", "Open Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background: #000;
}

/* Hero Section */
.contact-hero {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    #0a0a0a 0%,
    #1a0a1a 25%,
    #2a1a2a 75%,
    #0a0a0a 100%
  );
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      2px 2px at 20% 30%,
      rgba(220, 38, 38, 0.4),
      transparent
    ),
    radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(220, 38, 38, 0.3), transparent);
  background-repeat: repeat;
  background-size: 150px 100px;
  animation: particleFloat 25s linear infinite;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(220, 38, 38, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.7s both;
  color: white;
}

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.9s both;
}

/* Contact Form Section */
.contact-form-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a2a 50%, #1a1a1a 100%);
  padding: 8rem 0;
  position: relative;
}

.contact-bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      1px 1px at 20% 30%,
      rgba(255, 255, 255, 0.1),
      transparent
    ),
    radial-gradient(1px 1px at 40% 70%, rgba(220, 38, 38, 0.15), transparent);
  background-repeat: repeat;
  background-size: 100px 80px;
  animation: particleFloat 30s linear infinite;
  opacity: 0.6;
}

.modern-contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modern-contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.form-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
  animation: formIconFloat 3s ease-in-out infinite;
}

.form-title h3 {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-title p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.form-group {
  position: relative;
}

.form-group-full {
  grid-column: span 2;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1.2rem 1rem 1.2rem 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.form-input:focus + .form-label {
  transform: translate(-3rem, -3rem);
  color: white;
}

.form-input:not(:placeholder-shown) + .form-label {
  color: white;
  background: transparent;
  transform: scale(0.85);
}

.form-label {
  position: absolute;
  top: 1.2rem;
  left: 3rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.5);
  padding: 0 0.5rem;
  border-radius: 4px;
}

.input-icon {
  position: absolute;
  top: 1.2rem;
  left: 1rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.form-input:focus ~ .input-icon {
  color: var(--primary-color);
}

.form-select-modern {
  width: 100%;
  padding: 1.2rem 3rem 1.2rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  appearance: none;
}

.form-select-modern:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.form-select-modern option {
  color: #000;
  background-color: #fff;
}

.select-icon {
  position: absolute;
  top: 1.2rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-textarea {
  width: 100%;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.textarea-label {
  position: absolute;
  top: -10px;
  left: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0 0.5rem;
  border-radius: 4px;
}

.btn-submit-modern {
  position: relative;
  width: 100%;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-submit-modern:hover .btn-bg {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.5);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 3;
}

.btn-submit-modern:hover .btn-shine {
  left: 100%;
}

.form-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

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

/* Contact Info Section */
.contact-info-section {
  background: linear-gradient(
    135deg,
    #0a0a0a 0%,
    #1a0a1a 25%,
    #2a1a2a 75%,
    #0a0a0a 100%
  );
  padding: 8rem 0;
  position: relative;
}

.contact-info-modern {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quick-contact-card,
.office-info-card,
.social-media-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  color: white;
}

.quick-contact-card:hover,
.office-info-card:hover,
.social-media-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
}

.card-header h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
  transform: translateX(10px);
  color: white;
}

.contact-method.whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
}

.method-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.method-info {
  flex-grow: 1;
}

.method-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.method-value {
  display: block;
  font-weight: 600;
  margin-top: 0.2rem;
}

.method-arrow {
  opacity: 0;
  transition: all 0.3s ease;
}

.contact-method:hover .method-arrow {
  opacity: 1;
  transform: translateX(5px);
}

.office-details {
  margin-top: 1.5rem;
}

.office-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.office-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  flex-shrink: 0;
}

.office-content h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.office-content p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #1a1a1a 100%);
  padding: 8rem 0;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
}

.faq-question {
  padding: 1.5rem;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  display: none;
}

.faq-answer.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Map Section */
.map-section {
  background: linear-gradient(135deg, #2a1a2a 0%, #1a0a1a 50%, #0a0a0a 100%);
  padding: 6rem 0;
}

.map-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  color: white;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

/* Success Message */
.success-message {
  position: fixed;
  top: 30px;
  right: 30px;
  background: rgba(34, 197, 94, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  color: white;
  z-index: 10000;
  transform: translateX(450px);
  transition: all 0.4s ease;
  max-width: 400px;
}

.success-message.show {
  transform: translateX(0);
}

.success-message .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  cursor: pointer;
}

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

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .modern-contact-form {
    padding: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .form-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .contact-info-modern {
    margin-top: 3rem;
  }
}

/* Loading State */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading .btn-content::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
