/* Enhanced Form Styles */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 400;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a7d44;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(26, 125, 68, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Error states */
.form-group input.error,
.form-group textarea.error {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
  display: none;
  color: #fca5a5;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding-left: 0.75rem;
}

.error-message:not(:empty) {
  display: block;
}

/* Checkbox styling */
.checkbox-group {
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  position: relative;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark {
  background: #1a7d44;
  border-color: #1a7d44;
}

.checkbox-label input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-label:hover .checkmark {
  border-color: #1a7d44;
}

/* Button loading state */
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-loader {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.btn-loader i {
  animation: spin 1s linear infinite;
}

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

/* Success/Error Messages */
.form-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 90vw;
  width: 400px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-message.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.9);
}

.form-message.success-message {
  background: rgba(26, 125, 68, 0.95);
}

.form-message.error-message {
  background: rgba(220, 38, 38, 0.95);
}

.message-content i {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.message-content h3 {
  font-size: 1.625rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.message-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .form-message {
    width: 90vw;
    padding: 2rem;
  }

  .message-content h3 {
    font-size: 1.375rem;
  }

  .message-content i {
    font-size: 2.5rem;
  }
}

/* Honeypot field (completely hidden) */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
