/*
 * Eduval — Contact Form 7 styles
 */

.cf7-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.cf7-col {
  flex: 1;
}

.cf7-col-full {
  width: 100%;
}

.cf7-row input:not([type="submit"]),
.cf7-row textarea,
.cf7-row select {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--bg-blue);
  border-radius: 6px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  color: var(--color-heading);
  background: rgba(255, 255, 255, 0.15);
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.cf7-row input:not([type="submit"])::placeholder,
.cf7-row textarea::placeholder {
  color: var(--color-paragraph);
  opacity: 0.7;
}

.cf7-row input:not([type="submit"]):hover,
.cf7-row textarea:hover,
.cf7-row select:hover {
  border-color: color-mix(in srgb, var(--bg-blue) 60%, #fff);
}

.cf7-row input:not([type="submit"]):focus,
.cf7-row textarea:focus,
.cf7-row select:focus {
  border-color: color-mix(in srgb, var(--bg-blue) 75%, #fff);
  background: rgba(255, 255, 255, 0.35);
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 30, 80, 0.12);
}

.cf7-row .wpcf7-not-valid,
.cf7-row input[aria-invalid="true"],
.cf7-row textarea[aria-invalid="true"],
.cf7-row select[aria-invalid="true"] {
  border-color: var(--bg-blue) !important;
  box-shadow: 0 0 0 3px rgba(38, 30, 80, 0.12) !important;
}

.cf7-row textarea {
  min-height: 120px;
}

.cf7-row:has(.send-me) {
  display: block;
  text-align: center;
}

.cf7-row:has(.send-me) > p {
  position: relative;
  display: inline-block;
  margin: 0;
}

.cf7-row:has(.send-me) .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  margin: 0;
  transform: translateY(-50%);
}

.send-me {
  display: inline-block;
  margin: 0.25rem 0 0;
  padding: 14px 28px;
  border: 1.5px solid var(--bg-blue);
  border-radius: 6px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bg-blue);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.send-me:hover {
  border-color: var(--color-secondary);
  background: var(--color-secondary);
  color: #fff;
}

.send-me:active {
  background: var(--bg-blue);
  border-color: var(--bg-blue);
  color: #fff;
}

.wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: var(--color-secondary);
  margin-top: 4px;
}

.wpcf7-response-output {
  display: none !important;
}

.cf7-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: #1f7a3a;
  color: #fff;
  cursor: pointer;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  min-width: 280px;
  text-align: center;
}

.cf7-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 768px) {
  .cf7-row {
    flex-direction: column;
  }
}

/* reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden !important;
}
