/* Plugin: InstructorPro Suite | File Version: 2016v2 */
.ez2d-fe-contact {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.ez2d-fe-contact-header {
  margin-bottom: 16px;
}

.ez2d-fe-contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 24px;
  align-items: start;
}

.ez2d-fe-contact-card {
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.ez2d-fe-contact-map {
  margin: 12px 0 8px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.ez2d-fe-contact-card h3 {
  margin-top: 0;
}

.ez2d-required-star {
  color: #ef4444;
  font-weight: 700;
}

.ez2d-fe-contact-form .ez2d-input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.ez2d-fe-contact-form .ez2d-input.is-valid {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.12);
}

.ez2d-fe-contact-form .ez2d-input,
.ez2d-fe-contact-form input,
.ez2d-fe-contact-form textarea,
.ez2d-fe-contact-form select {
  border: 2px solid var(--ez2d-border-subtle, #e2e8f0) !important;
  background: #fff !important;
  border-radius: 10px !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.03) !important;
  max-width: 520px;
}

/* Do not apply input framing to slider control */
.ez2d-fe-contact-form .ez2d-fe-slider-input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.ez2d-fe-contact-success {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 20px 22px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ez2d-fe-contact-form .ez2d-form-field {
  margin-bottom: 14px;
}

.ez2d-fe-contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ez2d-fe-contact-captcha {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ez2d-fe-contact-captcha input {
  width: 120px;
}

.ez2d-fe-contact-actions {
  margin-top: 8px;
}

.ez2d-fe-contact-actions .ez2d-btn[disabled],
.ez2d-fe-contact-actions .ez2d-btn[aria-disabled="true"] {
  background: #cbd5f5;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.75;
  box-shadow: none;
}

.ez2d-fe-contact-submit {
  position: relative;
  gap: 8px;
}

.ez2d-fe-contact-submit-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  display: none;
  animation: ez2d-spin 0.8s linear infinite;
}

.ez2d-fe-contact-submit.is-sending .ez2d-fe-contact-submit-spinner {
  display: inline-block;
}

.ez2d-fe-contact-submit.is-sending .ez2d-fe-contact-submit-text {
  opacity: 0.85;
}

@keyframes ez2d-spin {
  to {
    transform: rotate(360deg);
  }
}

.ez2d-fe-contact-slider {
  position: relative;
  display: grid;
  gap: 10px;
  align-items: center;
  max-width: 520px;
}

.ez2d-fe-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42px;
  border-radius: 999px;
  background: #e2e8f0;
  z-index: 1;
  border: none;
  box-shadow: none;
}

.ez2d-fe-slider-input {
  width: 100%;
  height: 52px;
  padding: 0;
  position: relative;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: auto;
  border: none;
  outline: none;
}

.ez2d-fe-slider-input::-webkit-slider-runnable-track {
  height: 42px;
  border-radius: 999px;
  background: transparent;
}

.ez2d-fe-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #16a34a;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
  margin-top: -4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M8 5l8 7-8 7'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.ez2d-fe-contact-slider.is-disabled .ez2d-fe-slider-input {
  pointer-events: none;
  opacity: 0.6;
}

.ez2d-fe-slider-input::-moz-range-track {
  height: 42px;
  border-radius: 999px;
  background: transparent;
}

.ez2d-fe-slider-input::-moz-range-thumb {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #16a34a;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M8 5l8 7-8 7'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.ez2d-fe-contact-slider.is-verified .ez2d-fe-slider-input::-webkit-slider-runnable-track,
.ez2d-fe-contact-slider.is-verified .ez2d-fe-slider-input::-moz-range-track {
  background: transparent;
}

.ez2d-fe-slider-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  text-transform: lowercase;
  pointer-events: none;
  z-index: 3;
}

.ez2d-fe-slider-input:disabled {
  cursor: not-allowed;
}

.ez2d-fe-contact-slider.is-disabled .ez2d-fe-slider-track {
  background: #e5e7eb;
}

.ez2d-fe-contact-slider.is-verified .ez2d-fe-slider-track {
  background: #bbf7d0;
}

.ez2d-fe-slider-state {
  font-size: 12px;
  color: #6b7280;
}

.ez2d-fe-contact-slider.is-verified .ez2d-fe-slider-state {
  color: #16a34a;
  font-weight: 600;
}

.ez2d-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .ez2d-fe-contact-grid {
    grid-template-columns: 1fr;
  }

  .ez2d-fe-contact-row {
    grid-template-columns: 1fr;
  }

  .ez2d-fe-contact-form .ez2d-input,
  .ez2d-fe-contact-form input,
  .ez2d-fe-contact-form textarea,
  .ez2d-fe-contact-form select {
    max-width: 100%;
  }

  .ez2d-fe-contact {
    padding: 16px;
  }

  .ez2d-fe-contact-form {
    overflow-x: hidden;
  }

  .ez2d-fe-contact-card,
  .ez2d-fe-contact-form {
    max-width: 100%;
  }

  .ez2d-fe-contact-slider {
    max-width: 100%;
  }

  .ez2d-fe-slider-input,
  .ez2d-fe-slider-track {
    width: 100%;
  }

  .ez2d-fe-contact-actions {
    max-width: 100%;
  }
}
.ez2d-fe-slider-state {
  display: none;
}
