/* Contact Form */
.contact-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 4rem;
  border: 1px solid rgba(108, 99, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-container::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.1), transparent);
  animation: rotateGradient 10s linear infinite;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
}

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

.form-group label {
  margin-bottom: 0.8rem;
  color: rgba(232, 233, 243, 0.9);
  font-weight: 600;
  font-size: 1.05rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(108, 99, 255, 0.2);
  border-radius: 15px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

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

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--dark);
  color: white;
}

/* Responsive Design for Contact Section */
@media (max-width: 1024px) {
  .contact-container {
    padding: 3rem;
    border-radius: 25px;
  }

  .form-grid {
    gap: 1.5rem;
  }

  .form-group label {
    font-size: 1rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .contact-container {
    padding: 2.5rem;
    margin: 0 1.5rem;
  }

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

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

  .form-group label {
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.9rem;
  }

  #contact h2.section-title {
    font-size: 1.8rem;
    text-align: center;
  }

  #contact p.section-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  button.btn.btn-primary {
    font-size: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  #contact h2.section-title {
    font-size: 1.6rem;
  }

  #contact p.section-subtitle {
    font-size: 0.95rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  button.btn.btn-primary {
    font-size: 0.95rem;
    padding: 0.9rem;
  }

  p[style*="text-align: center"] {
    font-size: 0.9rem !important;
    margin-top: 2rem !important;
  }
}
