/* Contact Form Styles */
.contact-section {
  padding: 80px 0;
  background-color: #f8f9fa;
  position: relative;
  z-index: 1;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-heading {
  text-align: center;
  margin-bottom: 50px;
}

.contact-heading h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 20px;
}

.contact-heading p {
  font-size: 16px;
  color: #6a6a6a;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-wrapper {
  background: #ffffff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.contact-form .form-row {
  display: flex;
  gap: 20px;
}

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

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: #2a2a2a;
}

.contact-form label .required {
  color: #dc3545;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  font-size: 15px;
  color: #2a2a2a;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4b8ef1;
  box-shadow: 0 0 0 3px rgba(75, 142, 241, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #adb5bd;
}

.contact-form .submit-btn {
  background: linear-gradient(to right, #4b8ef1, #3b7dd8);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.contact-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(75, 142, 241, 0.3);
}

.contact-form .submit-btn:active {
  transform: translateY(0);
}

.contact-form .submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Validation Styles */
.contact-form input.error,
.contact-form textarea.error {
  border-color: #dc3545;
}

.contact-form .error-message {
  font-size: 12px;
  color: #dc3545;
  display: none;
}

/* Message Styles */
.contact-form-wrapper .form-message {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

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

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

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  display: none;
}

.submit-btn.loading .spinner {
  display: block;
}

.submit-btn.loading .btn-text {
  display: none;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .contact-form .form-row {
    flex-direction: column;
    gap: 20px;
  }
}

/* RTL Support */
[dir="rtl"] .contact-heading {
  text-align: center; /* Headings often centered regardless of direction, but keep checks */
}

/* Specific overrides if needed for RTL layout */
/* For inputs, 'text-align' generally follows 'dir' automatically */
