.form-hero {
  background: #1A1A1A;
  padding: 3rem 2rem 2rem;
}
.form-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}
.form-hero__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.form-hero__text { flex: 1; }
.form-hero__label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
}
.form-hero__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.form-hero__sub {
  font-size: 0.85rem;
  color: var(--brand);
  margin-top: 0.25rem;
  font-weight: 500;
}

.form-progress {
  background: #2a2a2a;
  padding: 10px 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.form-progress__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 6px;
}
.prog-step {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  padding: 0.45rem 0.5rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 500;
  min-width: 80px;
  line-height: 1.3;
}
.prog-step:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.prog-step.active {
  background: #fff;
  border-color: #fff;
  color: #1A1A1A;
  font-weight: 700;
}
.prog-step.done {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.form-container {
  max-width: 860px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.form-info-banner {
  background: #fff;
  border-left: 5px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.form-info-banner strong { color: #1A1A1A; }

.form-section {
  display: none;
}
.form-section.active {
  display: block;
}

.form-section.slide-in-right {
  animation: slideInRight 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.form-section.slide-in-left {
  animation: slideInLeft 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.form-section.slide-out-left {
  animation: slideOutLeft 0.3s cubic-bezier(0.55, 0.09, 0.68, 0.53) forwards;
}

.form-section.slide-out-right {
  animation: slideOutRight 0.3s cubic-bezier(0.55, 0.09, 0.68, 0.53) forwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

.form-body-wrap { overflow: hidden; }

.section-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow:
    0 1px 3px rgba(0,0,0,.06),
    0 6px 16px rgba(0,0,0,.08),
    0 16px 40px rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.04);
  transition: box-shadow 0.2s;
}
.section-card:hover {
  box-shadow:
    0 1px 3px rgba(0,0,0,.06),
    0 8px 24px rgba(0,0,0,.11),
    0 20px 48px rgba(0,0,0,.07);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}
.section-num {
  width: 38px; height: 38px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  font-family: 'Arial Black', Arial, sans-serif;
}
.section-num--green { background: #2D7D4E; }
.section-title-wrap h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
}
.section-title-wrap p {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}

.niveau-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}
.niveau-badge--base { background: #FDECEA; color: var(--brand); }
.niveau-badge--excel { background: #EAF4ED; color: #2D7D4E; }
.niveau-badge--doc { background: #f0f0f0; color: #555; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}
.field-grid--one { grid-template-columns: 1fr; }
.field-grid--three { grid-template-columns: 1fr 1fr 1fr; }
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group--full { grid-column: 1 / -1; }

.field-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  gap: 4px;
}
.field-req { color: var(--brand); font-size: 0.85rem; }
.field-opt { color: #aaa; font-size: 0.7rem; font-weight: 400; }

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group input[type="url"],
.field-group input[type="number"],
.field-group select,
.field-group textarea {
  border: 1.5px solid #E0E0E0;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #1A1A1A;
  transition: border 0.2s, box-shadow 0.2s;
  background: #FAFAFA;
  width: 100%;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(233,78,50,.12);
  background: #fff;
}
.field-group input.error,
.field-group select.error,
.field-group textarea.error {
  border-color: var(--brand);
  background: #FFF5F4;
  animation: shake 0.35s ease;
}
.field-group textarea { resize: vertical; min-height: 90px; }
.field-group select {
  appearance: none;
  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 fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.25rem;
  background-color: #FAFAFA;
}

.field-hint { font-size: 0.68rem; color: #aaa; margin-top: 1px; }
.char-counter { font-size: 0.68rem; color: #aaa; text-align: right; margin-top: 2px; }
.char-counter.warn { color: var(--brand); }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid #E0E0E0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.8rem;
  background: #FAFAFA;
  font-family: inherit;
  font-weight: 400;
}
.check-item:hover { border-color: var(--brand); background: #FDECEA; }
.check-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--brand);
  flex-shrink: 0;
  margin: 0;
}

.file-drop {
  border: 2px dashed #E0E0E0;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #FAFAFA;
  position: relative;
}
.file-drop:hover { border-color: var(--brand); background: #FDECEA; }
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-drop__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: #bbb;
}
.file-drop p { font-size: 0.8rem; color: #888; margin-top: 2px; }
.file-drop strong { color: var(--brand); }
.file-list { margin-top: 0.625rem; }
.file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  background: #f0f0f0;
  border-radius: 6px;
  margin-top: 5px;
  font-size: 0.75rem;
}
.file-item__check { color: #2D7D4E; flex-shrink: 0; }
.file-item__size { color: #aaa; margin-left: auto; }

.consent-box {
  background: #F5F5F5;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
}
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #E0E0E0;
}
.consent-item:last-child { border-bottom: none; }
.consent-item input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--brand);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.consent-item p { font-size: 0.8rem; color: #444; line-height: 1.55; }
.consent-item p strong { color: #2D7D4E; }

.form-notice {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #FDECEA;
  border-radius: 8px;
  border-left: 4px solid var(--brand);
  font-size: 0.8rem;
  color: #444;
  line-height: 1.6;
}
.form-notice strong { color: var(--brand); }

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
}
.form-nav__info { font-size: 0.8rem; color: #888; text-align: center; }
.form-btn {
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.form-btn--prev { background: #F0F0F0; color: #1A1A1A; }
.form-btn--prev:hover { background: #E0E0E0; }
.form-btn--next { background: var(--brand); color: #fff; }
.form-btn--next:hover { background: #c73e26; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(233,78,50,.3); }
.form-btn--submit { background: #2D7D4E; color: #fff; padding: 0.875rem 2.25rem; font-size: 0.95rem; }
.form-btn--submit:hover { background: #236040; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(45,125,78,.35); }
.form-btn--hidden { visibility: hidden; }

.form-success {
  text-align: center;
  padding: 3.75rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.form-success__icon {
  width: 72px; height: 72px;
  background: #EAF4ED;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success h2 { font-size: 1.75rem; color: #2D7D4E; margin-bottom: 0.75rem; }
.form-success p { font-size: 0.925rem; color: #555; max-width: 480px; margin: 0 auto; line-height: 1.6; }
.form-success__ref {
  margin-top: 1.25rem;
  padding: 0.875rem 1.5rem;
  background: #F5F5F5;
  border-radius: 8px;
  display: inline-block;
  font-size: 0.8rem;
  color: #666;
}
.form-success__ref strong { color: var(--brand); font-size: 1.125rem; display: block; margin-top: 2px; }
.form-success__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .form-hero__inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .form-hero__logo { font-size: 2.25rem; }
  .section-card { padding: 1.25rem 1rem; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid--three { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .form-nav { flex-wrap: wrap; gap: 0.75rem; }
  .form-nav__info { order: 3; flex: 1 0 100%; text-align: center; }
}
