/* Contact Form Specific Styles */


.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: #fdfdfd;
  border: 1px solid #ccc;
}

.form-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #666;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'IM Fell DW Pica SC', serif;
  font-size: 1.05rem;
}

.required {
  color: #dc3545;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #d9d6d6;
  border-radius: 4px;
  font-size: 1.1rem;
  font-family: 'Lora-Medium', serif;
  background-color: #f0eded;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #031346;
  box-shadow: 0 0 0 3px rgba(3,19,70,0.1);
  background-color: #fff;
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #dc3545;
}

.form-text {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

/* hCaptcha styling */
.h-captcha {
  margin: 0.5rem 0;
}

.submit-btn:disabled {
  background: #6c757d !important;
  cursor: not-allowed;
}

.form-message {
  padding: 1rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
}

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

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

@media (max-width: 768px) {
  .contact-form-container {
    padding: 1rem;
    margin: 1rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fdfdfd;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid #e1e5e9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: 'IM Fell DW Pica SC', serif;
  font-size: 1.25rem;
  margin: 0;
  padding: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background-color: #f0f0f0;
  color: #000;
}

.modal-body {
  padding: 1rem 2rem 2rem;
  text-align: center;
}

.modal-body p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-ok-btn {
  margin: 0 auto;
}

/* Modal animations */
.modal-overlay {
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}