/* ── EduStern Form Modal ── */
.es-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,70,103,0.72);
  backdrop-filter: blur(6px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.es-modal-overlay.open { display: flex; }

.es-modal {
  background: #fff;
  width: 100%;
  max-width: 38rem;
  padding: 2.5rem 3rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 2px;
}

.es-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #6b7a8d;
  font-size: 1.25rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}
.es-modal-close:hover { color: #0f2230; }

.es-modal-label {
  font-family: sans-serif;
  font-size: 0.6rem;
  color: #C49A2C;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.es-modal-title {
  font-family: 'Georgia', serif;
  font-size: 1.75rem;
  color: #0f2230;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.es-modal-sub {
  font-family: sans-serif;
  font-size: 0.78rem;
  color: #6b7a8d;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Steps bar */
.es-steps-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  align-items: center;
}
.es-step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-family: sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  border: 1.5px solid #ede9e0;
  color: #6b7a8d;
  background: #fff;
  transition: all 0.2s;
  flex-shrink: 0;
}
.es-step-dot.active { background: #044667; border-color: #044667; color: #fff; }
.es-step-dot.done   { background: #C49A2C; border-color: #C49A2C; color: #fff; }
.es-step-line {
  flex: 1;
  height: 1px;
  background: #ede9e0;
}

/* Form */
.es-form-step { display: none; }
.es-form-step.active { display: block; }

.es-form-group { margin-bottom: 1.25rem; }
.es-form-label {
  display: block;
  font-family: sans-serif;
  font-size: 0.7rem;
  color: #6b7a8d;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.es-form-input {
  width: 100%;
  border: 1px solid #ede9e0;
  padding: 0.75rem 1rem;
  font-family: 'Georgia', serif;
  font-size: 0.85rem;
  color: #0f2230;
  background: #f8f6f1;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}
.es-form-input:focus { border-color: #044667; background: #fff; }
.es-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236B8899' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: #f8f6f1;
}

.es-btn-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.es-btn-opt {
  padding: 0.6rem 0.75rem;
  border: 1px solid #ede9e0;
  background: #f8f6f1;
  font-family: sans-serif;
  font-size: 0.72rem;
  color: #6b7a8d;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0;
}
.es-btn-opt:hover, .es-btn-opt.selected {
  border-color: #044667;
  background: #044667;
  color: #fff;
}

/* Action buttons */
.es-btn-primary {
  display: block;
  width: 100%;
  background: #C49A2C;
  color: #fff;
  font-family: sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
  margin-top: 0.5rem;
}
.es-btn-primary:hover { background: #a8841f; }

.es-step-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.es-btn-back {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ede9e0;
  background: #f8f6f1;
  font-family: sans-serif;
  font-size: 0.72rem;
  color: #6b7a8d;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0;
}
.es-btn-back:hover { border-color: #044667; color: #044667; }
.es-btn-next {
  flex: 2;
  background: #C49A2C;
  color: #fff;
  font-family: sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
}
.es-btn-next:hover { background: #a8841f; }

/* Success state */
.es-success-state {
  text-align: center;
  padding: 2rem 0;
  display: none;
}
.es-success-state.show { display: block; }
.es-success-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(196,154,44,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #C49A2C;
  font-size: 1.5rem;
}
.es-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  font-family: sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  margin-top: 1rem;
}
.es-wa-btn:hover { background: #1ebe5d; }
