/* Main form container */
.custom-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
}

/* Logo styling */
.custom-form-logo {
  text-align: center;
  margin-bottom: 20px;
}

.custom-form-logo-img {
  max-width: 200px;
  max-height: 100px;
}

/* Form title */
.custom-form-title {
  text-align: center;
  color: #004a99;
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 600;
}

/* Form fields */
.custom-form-field {
  margin-bottom: 20px;
}

.custom-form-field label {
  display: block;
  margin-bottom: 8px;
  color: #004a99;
  font-weight: 500;
}

.custom-form-field .required {
  color: #f7941d;
}

.custom-form-field input[type="text"],
.custom-form-field input[type="email"],
.custom-form-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.custom-form-field input[type="text"]:focus,
.custom-form-field input[type="email"]:focus,
.custom-form-field textarea:focus {
  border-color: #004a99;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 74, 153, 0.2);
}

/* Submit button */
.custom-form-submit {
  background-color: #004a99;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-form-submit:hover {
  background-color: #003a7a;
}

.custom-form-submit:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 74, 153, 0.4);
}

/* Turnstile container */
.cf-turnstile {
  margin: 10px 0;
}

/* Form messages */
.custom-form-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-weight: 500;
}

.custom-form-message.success {
  background-color: #e6f7e6;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.custom-form-message.error {
  background-color: #fdecea;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
}

/* Loading indicator */
.custom-form-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .custom-form-container {
    padding: 20px;
  }

  .custom-form-title {
    font-size: 20px;
  }

  .custom-form-field input[type="text"],
  .custom-form-field input[type="email"],
  .custom-form-field textarea {
    padding: 10px;
  }

  .custom-form-submit {
    padding: 10px 20px;
    font-size: 14px;
  }
}
