/* Screening 40+ Modal Styles */

.screening-modal-btn {
  position: fixed;
  bottom: 150px;
  right: 90px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 50px;
  background: #fff;
  border: 1px solid #3badfc;
  border-radius: 4px;
  font-family: "Magistralc";
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
  color: #3badfc;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.screening-modal-btn:hover {
  background: #3badfc;
  color: #fff;
}

.screening-modal-btn:active {
  transform: translateY(0);
}

/* Modal Container */
.screening-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.screening-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Content */
.screening-modal-content {
  background-color: #fff;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 550px;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screening-modal-content-inner {
  padding: 40px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

/* Close Button */
.screening-modal-close {
  position: absolute;
  right: 0;
  top: 0;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(44, 62, 80, 0.8);
  border: none;
  padding: 8px 12px;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 0 8px 0 0;
  z-index: 10;
}

.screening-modal-close:hover,
.screening-modal-close:focus {
  background-color: #2c3e50;
  color: #fff;
}

/* Modal Title */
.screening-modal-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
  color: #2c3e50;
  font-weight: 600;
}

/* Modal Image */
.screening-modal-image {
  text-align: center;
  margin: -40px -40px 25px -40px;
  max-height: 250px;
  overflow: hidden;
}

.screening-modal-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Modal Text */
.screening-modal-text {
  margin-bottom: 25px;
  line-height: 1.6;
  color: #333;
}

.screening-modal-text p {
  margin: 0 0 15px 0;
  font-size: 14px;
}

.screening-modal-text p:last-child {
  margin-bottom: 0;
}

.screening-modal-text strong {
  color: #2c3e50;
  font-weight: 600;
}
.screening-modal-content .wpcf7-form {
  margin: 0;
}

.screening-modal-content .wpcf7-form-control-wrap {
  margin-bottom: 15px;
}

.screening-modal-content .wpcf7-form-control {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.screening-modal-content .wpcf7-form-control:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.screening-modal-content .wpcf7-submit {
  background-color: #2c3e50;
  color: #fff;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.screening-modal-content .wpcf7-submit:hover {
  background-color: #1a252f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Form Structure Styles */
.screening-modal-content .screening-form-content {
  margin: 0;
}

.screening-modal-content .screening-form-block {
  margin-bottom: 18px;
}

.screening-modal-content .screening-form-block label {
  display: block;
  width: 100%;
}

.screening-modal-content .screening-form-block label br {
  display: none;
}

.screening-modal-content .screening-form-block__title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.screening-modal-content .screening-form-block input[type="text"],
.screening-modal-content .screening-form-block input[type="tel"],
.screening-modal-content .screening-form-block input[type="email"],
.screening-modal-content .screening-form-block textarea,
.screening-modal-content .screening-form-block select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  box-sizing: border-box;
}

.screening-modal-content .screening-form-block input[type="text"]:focus,
.screening-modal-content .screening-form-block input[type="tel"]:focus,
.screening-modal-content .screening-form-block input[type="email"]:focus,
.screening-modal-content .screening-form-block textarea:focus,
.screening-modal-content .screening-form-block select:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.screening-modal-content .screening-submit-btn {
  font-family: "Magistralc";
  background-color: #2c3e50;
  color: #fff;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.screening-modal-content .screening-submit-btn:hover {
  background-color: #1a252f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Acceptance Checkbox Styles */
.screening-modal-content .wpcf7-form-control.wpcf7-acceptance {
  border: none;
  padding: 0;
  background: none;
}

.screening-modal-content .screening-form-block input[type="checkbox"] {
  border: none;
  margin-right: 8px;
}

.wpcf7-list-item.wpcf7-list-item > label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.wpcf7-date {
  display: block;
  width: 100%;
  height: 42px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .screening-modal-btn {
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    max-width: 160px;
  }

  .screening-modal-content {
    padding: 30px 20px;
    width: 95%;
    max-width: 90%;
  }

  .screening-modal-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .screening-modal-btn {
    bottom: 20px;
    padding: 8px 12px;
    max-width: 150px;
  }

  .screening-modal-content-inner {
    padding: 0;
  }

  .screening-modal-image {
    margin: 0;
  }

  .screening-modal-content {
    padding: 0 0 15px;
    margin: 10px;
    max-width: 100%;
  }

  .screening-modal-title {
    font-size: 18px;
  }

  .screening-modal-content-text {
    padding: 20px;
  }

  .screening-modal-content .screening-form-block input[type="text"],
  .screening-modal-content .screening-form-block input[type="tel"],
  .screening-modal-content .screening-form-block input[type="email"],
  .screening-modal-content .screening-form-block textarea,
  .screening-modal-content .screening-form-block select {
    font-size: 16px;
  }

  .wpcf7-date {
    height: 44px;
  }
}
