/* Modal Overlay */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
  box-sizing: border-box;
}

/* Modal Box */
.contact-modal {
  background: #fff;
  padding: 20px;
  max-width: 460px;
  width: 100%;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.4s ease;
  overflow-y: auto;
  max-height: 92vh;
  box-sizing: border-box;
}

/* Ensure inner content fits */
.contact-form-wrapper {
  width: 100%;
  box-sizing: border-box;
}

.contact-form-wrapper p {
  margin: 0;
}

/* Close Button */
.close-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  cursor: pointer;
  color: #014AB9;
}

/* Contact Form */
.contact-form-wrapper form.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  width: 100%;
}

/* Input Fields & Textarea */
.contact-form-wrapper input,
.contact-form-wrapper textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fdfdfd;
  transition: all 0.3s ease;
  resize: vertical;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  border-color: #014AB9;
  background-color: #fff;
  outline: none;
}

/* Submit Button */
.contact-form-wrapper input[type="submit"] {
  background-color: #014AB9;
  color: #fff;
  border: none;
  padding: 10px 0;
  font-size: 14px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form-wrapper input[type="submit"]:hover {
  background-color: #012f7d;
}

/* Labels */
.contact-form-wrapper label {
  font-weight: 500;
  font-size: 13px;
  color: #444;
}

/* Mobile-Friendly Adjustments */
@media (max-width: 480px) {
  .contact-modal {
    padding: 16px;
  }

  .contact-form-wrapper input,
  .contact-form-wrapper textarea {
    font-size: 13px;
    padding: 6px 10px;
  }

  .contact-form-wrapper input[type="submit"] {
    padding: 10px 0;
    font-size: 13px;
  }

  .close-modal {
    font-size: 18px;
  }
}
