/* Enrollment Form Plugin Styles */

.ef-wrapper *, .ef-wrapper *::before, .ef-wrapper *::after { box-sizing: border-box; margin: 0; padding: 0; }

.ef-wrapper {
  --teal:       #10938E;
  --teal-light: #e6f4f4;
  --teal-dark:  #0b6f6b;
  --ef-text:    #111827;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --ef-bg:      #F9FAFB;
  --ef-white:   #ffffff;
  --radius:     12px;

  font-family: 'Inter', sans-serif;
  color: var(--ef-text);
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}

/* ── Header ── */
.ef-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.ef-title {
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--ef-text);
  line-height: 1.2;
}

.ef-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
  padding-top: 4px;
}

/* ── Progress bar ── */
.ef-progress-track {
  width: 100%;
  height: 6px;
  background: #D1FAF8;
  border-radius: 99px;
  margin-bottom: 28px;
  overflow: hidden;
}

.ef-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0b6f6b, #10938E, #3dfbb0);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Card ── */
.ef-card {
  background: var(--ef-white);
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  margin-bottom: 28px;
  animation: ef-fadein 0.35s ease both;
}

@keyframes ef-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ef-question {
  font-size: 18px;
  font-weight: 500;
  color: var(--teal);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* ── Field rows ── */
.ef-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ef-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ef-field.full { grid-column: 1 / -1; }

.ef-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ef-text);
}

.ef-input,
.ef-select,
.ef-textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ef-text);
  background: var(--ef-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.ef-select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.ef-select::-ms-expand { display: none; }

.ef-select-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.ef-select-wrap::after { display: none; }

.ef-input:focus,
.ef-select:focus,
.ef-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16,147,142,0.12);
}

.ef-textarea {
  resize: vertical;
  min-height: 140px;
}

/* ── Radio options ── */
.ef-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ef-radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 15px;
  color: var(--ef-text);
  user-select: none;
}

.ef-radio-option:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.ef-radio-option.selected {
  border-color: var(--teal);
  background: var(--teal-light);
}

.ef-radio-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.ef-radio-option.selected .ef-radio-dot {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: inset 0 0 0 3px var(--ef-white);
}

/* ── Navigation ── */
.ef-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ef-btn {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 13px 28px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.ef-btn:active { transform: scale(0.97); }

.ef-btn-prev {
  background: var(--ef-white);
  color: var(--ef-text);
  border: 1.5px solid var(--border);
}

.ef-btn-prev:hover { border-color: #9CA3AF; }
.ef-btn-prev:disabled { opacity: 0.35; cursor: not-allowed; }

.ef-btn-next {
  background: var(--teal);
  color: #fff;
  margin-left: auto;
}

.ef-btn-next:hover { background: var(--teal-dark); }
.ef-btn-next:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Confirmation ── */
.ef-confirm {
  text-align: center;
  padding: 20px 0 10px;
  animation: ef-fadein 0.4s ease both;
}

.ef-confirm-icon {
  width: 72px; height: 72px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}

.ef-confirm-icon svg {
  width: 36px; height: 36px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ef-confirm h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--ef-text);
  margin-bottom: 12px;
}

.ef-confirm p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* ── Error ── */
.ef-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}

.ef-field.has-error .ef-input,
.ef-field.has-error .ef-select,
.ef-field.has-error .ef-textarea {
  border-color: #dc2626;
}

.ef-field.has-error .ef-error { display: block; }

/* ── Sending spinner ── */
.ef-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ef-spin 0.7s linear infinite;
  display: none;
}

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

/* ── Responsive ── */
@media (max-width: 540px) {
  .ef-card { padding: 24px 20px; }
  .ef-row { grid-template-columns: 1fr; }
  .ef-title { font-size: 20px; }
  .ef-question { font-size: 16px; }
}
