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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1b1b 50%, #000000 100%);
  min-height: 100vh;
  line-height: 1.6;
  color: #ffffff;
}

.header {
  background: linear-gradient(135deg, #2d1b1b 0%, #1a1a1a 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(220, 38, 38, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #dc2626;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dc2626;
}

.logo h1 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-buttons {
  display: flex;
  gap: 0.5rem;
}

.whatsapp-btn, .call-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #dc2626;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  background: #1a1a1a;
}

.whatsapp-btn {
  color: #25d366;
}

.whatsapp-btn:hover {
  background: #25d366;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.call-btn {
  color: #dc2626;
}

.call-btn:hover {
  background: #dc2626;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: 1px solid #dc2626;
}

.back-btn:hover {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.main-content {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.section h2 {
  color: #ffffff;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.8);
  background: linear-gradient(135deg, #ffffff 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-container {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1b1b 100%);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border: 2px solid #dc2626;
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #dc2626, transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.form-container h3 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #404040;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.9);
}

.form-group input[type="file"] {
  padding: 0.5rem;
  border: 2px dashed #404040;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  color: #ffffff;
}

.form-group input[type="file"]:hover {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.file-preview {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(220, 38, 38, 0.2);
  border-radius: 5px;
  color: #ffffff;
  font-size: 0.85rem;
  border: 1px solid #dc2626;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

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

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

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn:disabled::before {
  display: none;
}

#result {
  margin-top: 1.5rem;
  display: none;
}

.message {
  padding: 1rem;
  border-radius: 10px;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

.message.success {
  background: linear-gradient(135deg, #1f2937 0%, #065f46 100%);
  color: #10b981;
  border: 1px solid #10b981;
}

.message.error {
  background: linear-gradient(135deg, #1f2937 0%, #7f1d1d 100%);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.message.info {
  background: linear-gradient(135deg, #1f2937 0%, #1e40af 100%);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

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

@media (max-width: 768px) {
  .navbar {
      padding: 0.6rem 1rem;
      height: auto;
      min-height: 60px;
  }

  .logo {
      gap: 0.5rem;
  }

  .logo img {
      width: 35px;
      height: 35px;
  }

  .logo h1 {
      font-size: 1rem;
  }

  .nav-actions {
      gap: 0.5rem;
  }

  .contact-buttons {
      gap: 0.3rem;
  }

  .whatsapp-btn, .call-btn {
      width: 35px;
      height: 35px;
      font-size: 1rem;
  }

  .back-btn {
      padding: 0.4rem 0.8rem;
      font-size: 0.8rem;
  }

  .back-text {
      display: none;
  }

  .main-content {
      padding: 0 1rem;
      margin-top: 1rem;
  }

  .form-container {
      padding: 1.5rem;
  }

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

  .section h2 {
      font-size: 1.8rem;
      margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .navbar {
      padding: 0.5rem 0.8rem;
      height: auto;
      min-height: 55px;
  }

  .logo img {
      width: 30px;
      height: 30px;
  }

  .logo h1 {
      font-size: 0.9rem;
  }

  .whatsapp-btn, .call-btn {
      width: 32px;
      height: 32px;
      font-size: 0.9rem;
  }

  .back-btn {
      padding: 0.3rem 0.6rem;
      font-size: 0.75rem;
  }

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

  .form-container {
      padding: 1rem;
  }
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #dc2626;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #991b1b;
}