/* ── EOI Form Plugin — Frontend Styles ──────────────────────────────────── */

/* Apply button */
.eoi-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.5rem;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.eoi-apply-btn::before {
  content: '👉';
  font-style: normal;
}
.eoi-apply-btn:hover,
.eoi-apply-btn:focus {
  background: #005177;
  outline: 2px solid #005177;
  outline-offset: 2px;
}

/* Form wrap */
.eoi-form-wrap {
  max-width: 720px;
  margin: 1.5rem 0;
  font-family: inherit;
}

/* ── Progress indicator ──────────────────────────────────────────────────── */
.eoi-progress {
  margin-bottom: 2rem;
}

.eoi-steps-list {
  display: flex;
  list-style: none;
  margin: 0 0 .5rem;
  padding: 0;
  gap: 0;
}

.eoi-step-indicator {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  position: relative;
  color: #999;
  font-size: .8rem;
}

.eoi-step-indicator + .eoi-step-indicator::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #ddd;
  z-index: 0;
}

.eoi-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ddd;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  position: relative;
  z-index: 1;
  transition: background .3s, color .3s;
}

.eoi-step-indicator--active .eoi-step-number {
  background: #0073aa;
  color: #fff;
}
.eoi-step-indicator--active .eoi-step-label {
  color: #0073aa;
  font-weight: 600;
}

.eoi-progress-track {
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  overflow: hidden;
}
.eoi-progress-fill {
  height: 100%;
  background: #0073aa;
  border-radius: 2px;
  transition: width .35s ease;
}

/* ── Fieldset / step ─────────────────────────────────────────────────────── */
.eoi-step {
  border: none;
  padding: 0;
  margin: 0;
}

.eoi-step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1d2327;
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #0073aa;
}

/* ── Field rows ──────────────────────────────────────────────────────────── */
.eoi-field {
  margin-bottom: 1.25rem;
}

.eoi-label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  color: #1d2327;
}

.eoi-label--required::after {
  content: ' *';
  color: #cc0000;
}

.eoi-hint {
  font-size: .875rem;
  color: #646970;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Inputs */
.eoi-input,
.eoi-select,
.eoi-textarea {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 1rem;
  color: #1d2327;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}

.eoi-input:focus,
.eoi-select:focus,
.eoi-textarea:focus {
  border-color: #0073aa;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, .25);
}

.eoi-input--error,
.eoi-input--error:focus,
.eoi-select.eoi-input--error,
.eoi-select.eoi-input--error:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, .2);
}

.eoi-textarea {
  resize: vertical;
  min-height: 120px;
}

.eoi-field-error {
  display: block;
  color: #cc0000;
  font-size: .85rem;
  margin-top: .25rem;
  min-height: 1.2em;
}

/* Inline select (prior education modifier) */
.eoi-select--inline {
  width: auto;
  margin-top: .4rem;
  font-size: .875rem;
}

/* ── Checkbox group ──────────────────────────────────────────────────────── */
.eoi-checkbox-group {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.eoi-checkbox-row {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.eoi-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  cursor: pointer;
  font-weight: 400;
  color: #1d2327;
}

.eoi-checkbox {
  margin-top: .2em;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ── Payment method ──────────────────────────────────────────────────────── */
.eoi-radio-group {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.eoi-bank-details-box {
  background: #f6f7f7;
  border-left: 4px solid #0073aa;
  border-radius: 4px;
  padding: .9rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
  color: #1d2327;
  line-height: 1.6;
}

/* ── Navigation buttons ──────────────────────────────────────────────────── */
.eoi-nav {
  display: flex;
  gap: .75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.eoi-btn {
  padding: .65rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.eoi-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.eoi-btn--primary {
  background: #0073aa;
  color: #fff;
}
.eoi-btn--primary:hover:not(:disabled) {
  background: #005177;
}

.eoi-btn--secondary {
  background: #f0f0f1;
  color: #1d2327;
  border: 1px solid #8c8f94;
}
.eoi-btn--secondary:hover:not(:disabled) {
  background: #dcdcde;
}

/* ── Notices ─────────────────────────────────────────────────────────────── */
.eoi-notice {
  padding: .75rem 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-size: .9rem;
}
.eoi-notice--error {
  background: #fef0f0;
  border-left: 4px solid #cc0000;
  color: #900;
}
.eoi-notice--warning {
  background: #fff8e5;
  border-left: 4px solid #dba617;
  color: #5d4800;
}

/* ── Success screen ──────────────────────────────────────────────────────── */
.eoi-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.eoi-success-icon {
  width: 64px;
  height: 64px;
  stroke: #00a32a;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1rem;
}

.eoi-success h3 {
  font-size: 1.4rem;
  color: #1d2327;
  margin-bottom: .5rem;
}

.eoi-success p {
  color: #646970;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .eoi-step-label { display: none; }
  .eoi-btn { width: 100%; justify-content: center; }
}
