/* === MODALE === */
.form-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.form-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.form-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.form-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: var(--white);
  border-radius: 12px;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.form-modal.is-active .form-modal-content {
  transform: translateY(0);
}

.form-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--gray-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.form-modal-close:hover {
  background: var(--secondary);
  color: var(--white);
}

.form-modal-close svg {
  width: 20px;
  height: 20px;
  color: var(--black);
}

.form-modal-header {
  padding: 20px 40px 0 40px;
  margin-bottom: 30px;
  text-align: center;
}

.form-modal-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.form-modal-header p {
  color: var(--gray-dark);
}

.form-modal-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-light);
}

.form-modal-footer a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
}

.form-modal #contact {
  padding: 0;
}

.form-modal #contact .eyebrow {
  display: none;
}
.form-modal #contact > *:first-child {
}
.form-modal .contact-4 .container,
.form-modal .contact-5 .container {
  padding-inline: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 1280px) and (min-width: 1025px) {
  .form-modal .contact-3 .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .form-modal-header {
    padding: 20px 35px 0 35px;
  }

  .form-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }

  .form-modal #contact > *:last-child,
  .form-modal .contact-5 .container > *:last-child {
    order: -1;
  }

  .form-modal .contact-5 .cards {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .form-modal-content {
    width: 100%;
    max-width: none;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .form-modal .contact-3 .form-card {
    padding: 30px;
  }
}
