/* Styles du formulaire de contact (modale) */

/* Modale contact - même layout que modal-legal */
.modal-contact {
  z-index: 99999;
  opacity: 0;
  justify-content: center;
  align-items: center;
  display: none;
  position: fixed;
  inset: 0%;
  transition: opacity 300ms ease-out !important;
}

.modal-contact .modal-container {
  height: auto;
  max-height: 90svh;
}

.modal-contact .modal-text-container {
  height: auto;
  padding-bottom: 0;
}

.modal-contact.fade-out {
  opacity: 0 !important;
  pointer-events: none;
}

.modal-contact.fade-out .modal-bg {
  opacity: 0;
  transition: opacity 300ms ease-out;
}

/* Formulaire */
.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form-group {
  width: 100%;
}

.contact-form-input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid rgba(8, 74, 60, 0.2);
  border-radius: var(--radius--lg, 12px);
  background-color: #fff;
  color: var(--text--default, #084a3c);
  font-family: Quicksand, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 24px;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form-input::placeholder {
  color: rgba(8, 74, 60, 0.4);
}

.contact-form-input:focus {
  border-color: var(--vert-medium, #084a3c);
}

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

.contact-form-submit {
  cursor: pointer;
  width: auto;
  align-self: flex-start;
  margin-top: 4px;
}

.contact-form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-form-status {
  font-family: Quicksand, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 24px;
}

.contact-form-status.success {
  color: #084a3c;
}

.contact-form-status.error {
  color: #e74c3c;
}

@media screen and (max-width: 767px) {
  .contact-form-submit {
    width: 100%;
  }

  .modal-contact .modal-container {
    margin-left: 0;
    margin-right: 0;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    inset: 0;
  }
}
