/* Apple-Style Contact Form */
.form-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(102, 126, 234, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(168, 85, 247, 0.2) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.form-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.form-header {
  text-align: center;
  margin-bottom: 80px;
}

.form-header h2 {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.form-header p {
  font-size: 20px;
  color: #6b7280;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.contact-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

.contact-form .form-group {
  margin-bottom: 32px;
  position: relative;
}

.contact-form label {
  display: block;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  color: #1f2937;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1),
    0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  line-height: 1.6;
}

.submit-button {
  width: 100%;
  background: #007aff;
  color: white;
  border: none;
  padding: 20px 32px;
  border-radius: 16px;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
  margin-top: 20px;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

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

.submit-button:active {
  transform: translateY(-1px);
}

/* Success/Error Messages */
.form-message {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  text-align: center;
  display: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  width: 100%;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-message.show {
  display: block;
  transform: translateY(0);
}

/* Loading State */
.submit-button.loading {
  pointer-events: none;
  opacity: 0.8;
}

.submit-button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.privacy-notice {
  font-size: 14px;
  text-align: center;
  color: #6b7280;
  margin-top: 20px;
}
.privacy-notice span {
  color: #ff4f4f;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-section {
    padding: 60px 0;
  }

  .form-header h2 {
    font-size: 48px;
    text-align: start;
  }

  .form-header p {
    font-size: 18px;
    text-align: start;
  }

  .contact-form-container {
    padding: 40px 30px;
    border-radius: 20px;
    margin: 0 2px;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    padding: 16px 18px;
    font-size: 16px;
  }

  .submit-button {
    padding: 18px 28px;
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .form-section {
    padding: 60px 0;
  }

  .form-header h2 {
    font-size: 48px;
  }

  .form-header p {
    font-size: 16px;
  }

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

  .contact-form .form-group {
    margin-bottom: 24px;
  }
}
