/* Form Message Styles */
.form-message {
  margin: 20px 0;
  padding: 15px 20px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

.form-message--success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message--error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-message--warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Form loading state */
button[type=submit]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Cloudflare Turnstile Styling */
.cf-turnstile {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hide invisible Turnstile widget */
.cf-turnstile[data-size=invisible] {
  display: none !important;
}

/* International Tel Input Customization */
.iti {
  width: 100%;
  margin-bottom: 1rem;
  background-color: #fff;
  display: flex !important;
}
.iti .iti__flag-container {
  position: static !important;
}
.iti input[type=tel] {
  position: static !important;
  padding-left: 6px !important;
  flex-basis: 100%;
}

.iti__tel-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.iti__tel-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.iti__country-list {
  background-color: #fff;
  color: #060404;
}

.iti__country {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.iti__country:hover {
  background-color: #f8f9fa;
}
.iti__country.iti__highlight {
  background-color: #007bff !important;
  color: white;
}

.iti__flag-box {
  margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .iti__tel-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
