/*
 * Resonant LMS Portal v2.3.3
 * Compatibility layer for the official-site Contact Form 7 markup.
 */

.contact-form-card:has(.resonant-contact-form) .contact-form-card__notice {
  display: none;
}

.resonant-contact-form {
  margin-top: 22px;
  color: var(--navy);
}

.resonant-form-intro {
  margin-bottom: 10px;
  padding: 16px 0 22px;
  color: #5e697b;
  font-size: 12px;
  line-height: 1.9;
}

.resonant-form-intro p {
  margin: 0 0 8px;
}

.resonant-form-note {
  font-size: 11px;
}

.required-mark,
.optional-mark {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  padding: 1px 6px;
  color: #fff;
  background: var(--red);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.4;
  vertical-align: middle;
}

.optional-mark {
  color: #59667b;
  background: #edf0f3;
}

.resonant-form-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid #edf0f3;
}

.resonant-form-label {
  padding-top: 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.resonant-form-field,
.resonant-form-field .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
  width: 100%;
}

.resonant-contact-form input[type="text"],
.resonant-contact-form input[type="email"],
.resonant-contact-form input[type="tel"],
.resonant-contact-form select,
.resonant-contact-form textarea {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 48px;
  margin: 0;
  padding: 13px 15px;
  color: #25324a;
  background: #fff;
  border: 1px solid #cfd7e1;
  border-radius: 5px;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  appearance: auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resonant-contact-form select {
  cursor: pointer;
}

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

.resonant-contact-form input:focus,
.resonant-contact-form select:focus,
.resonant-contact-form textarea:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 37, 42, 0.1);
}

.resonant-contact-form ::placeholder {
  color: #98a2b3;
  opacity: 1;
}

.resonant-field-note {
  margin: 9px 0 0;
  color: #798395;
  font-size: 10px;
  line-height: 1.7;
}

.resonant-contact-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 11px;
}

.resonant-privacy-box {
  margin-top: 30px;
  padding: 28px;
  color: #5e697b;
  background: #f8fafb;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
}

.resonant-privacy-box h3 {
  margin: 0 0 15px;
  color: var(--navy);
  font-size: 15px;
}

.resonant-privacy-box p {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.9;
}

.resonant-privacy-box a {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resonant-privacy-box .wpcf7-form-control-wrap,
.resonant-privacy-box .wpcf7-acceptance,
.resonant-privacy-box .wpcf7-list-item {
  display: block;
  margin: 0;
}

.resonant-privacy-box .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.resonant-privacy-box input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--red);
}

.resonant-form-submit {
  margin-top: 28px;
  text-align: center;
}

.resonant-form-submit .wpcf7-submit,
.resonant-form-submit input[type="submit"] {
  display: inline-flex;
  width: auto;
  min-width: 240px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 14px 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red2));
  border: 0;
  border-radius: 5px;
  box-shadow: var(--shadow-red);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resonant-form-submit .wpcf7-submit:hover,
.resonant-form-submit input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(230, 37, 42, 0.27);
}

.resonant-submit-note {
  margin: 13px 0 0;
  color: #748094;
  font-size: 10px;
  text-align: center;
}

.resonant-contact-form .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

.resonant-contact-form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 17px;
  border-radius: 6px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .resonant-form-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .resonant-form-label {
    padding-top: 0;
  }

  .resonant-contact-form textarea {
    min-height: 220px;
  }

  .resonant-privacy-box {
    padding: 22px 18px;
  }

  .resonant-form-submit .wpcf7-submit,
  .resonant-form-submit input[type="submit"] {
    width: 100%;
  }
}
