/* Standalone contact page styles */
body.contact-page {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Scoped styles for both standalone page and integrated section */
.contact-page .container,
.contact-section .container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.contact-page .contact-wrapper,
.contact-section .contact-wrapper {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-page h1,
.contact-section h1 {
  font-size: 32px;
  color: #4c1d95;
  margin-bottom: 8px;
  text-align: center;
}

.contact-page .subtitle,
.contact-section .subtitle {
  color: #64748b;
  text-align: center;
  margin-bottom: 32px;
  font-size: 16px;
}

.contact-page .contact-form,
.contact-section .contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-page .form-group,
.contact-section .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-page label,
.contact-section label {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
}

.contact-page input,
.contact-page textarea,
.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-page input:focus,
.contact-page textarea:focus,
.contact-section input:focus,
.contact-section textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.contact-page textarea,
.contact-section textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-page .submit-btn,
.contact-section .submit-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}

.contact-page .submit-btn:hover,
.contact-section .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.contact-page .submit-btn:active,
.contact-section .submit-btn:active {
  transform: translateY(0);
}

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

.contact-page .form-message,
.contact-section .form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.contact-page .form-message.success,
.contact-section .form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  display: block;
}

.contact-page .form-message.error,
.contact-section .form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

.contact-page .cf-turnstile,
.contact-section .cf-turnstile {
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .contact-page .contact-wrapper,
  .contact-section .contact-wrapper {
    padding: 24px;
  }
  .contact-page h1,
  .contact-section h1 {
    font-size: 24px;
  }
  .contact-page .subtitle,
  .contact-section .subtitle {
    font-size: 14px;
  }
}
