/* ============================================
   NIVEAU 16 — LES FORMULAIRES
   Styles specifiques au chapitre des formulaires
   ============================================ */

/* ---------- INPUT TYPES GRID (SCHEMA) ---------- */
.input-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input-type-item {
  text-align: left;
}

.schema-label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--police-code);
  color: var(--couleur-texte-clair);
  background: #f1f5f9;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.schema-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.schema-input:focus {
  border-color: #2563eb;
}

.schema-input-color {
  width: 100%;
  height: 38px;
  padding: 2px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
}

.schema-input-range {
  width: 100%;
  margin: 8px 0;
}

.schema-input-file {
  font-size: 0.85rem;
}

/* ---------- CUSTOM COMPONENTS (SCHEMA) ---------- */
.custom-components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.custom-comp-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Schema checkboxes */
.custom-checkbox-demo input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-checkbox-demo label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.custom-checkbox-demo label::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #94a3b8;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-checkbox-demo input:checked + label::before {
  background: #2563eb;
  border-color: #2563eb;
}

.custom-checkbox-demo input:checked + label::after {
  content: "✓";
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: -17px;
  z-index: 1;
}

.custom-checkbox-demo input:focus-visible + label::before {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Schema radios */
.custom-radio-demo input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-radio-demo label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.custom-radio-demo label::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-radio-demo label::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  margin-left: -16px;
  transform: scale(0);
  transition: transform 0.2s ease;
}

.custom-radio-demo input:checked + label::before {
  border-color: #2563eb;
}

.custom-radio-demo input:checked + label::after {
  transform: scale(1);
}

.custom-radio-demo input:focus-visible + label::before {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Schema switches */
.custom-switch-demo input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-switch-demo label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.custom-switch-demo label::before {
  content: "";
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 9999px;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.custom-switch-demo label::after {
  content: "";
  position: absolute;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  margin-top: 3px;
}

.custom-switch-demo input:checked + label::before {
  background: #2563eb;
}

.custom-switch-demo input:checked + label::after {
  transform: translateX(20px);
}

.custom-switch-demo input:focus-visible + label::before {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* ---------- VALIDATION GRID (SCHEMA) ---------- */
.validation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.validation-item {
  text-align: center;
}

.validation-input {
  padding: 0.6rem 0.85rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.validation-input.valid {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #16a34a;
}

.validation-input.invalid {
  border-color: #dc2626;
  background: #fef2f2;
  color: #dc2626;
}

.validation-input.disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.validation-label {
  font-size: 0.78rem;
  font-family: var(--police-code);
  color: var(--couleur-texte-clair);
}

/* ---------- FLOATING DEMO (SCHEMA) ---------- */
.floating-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.floating-demo-item {
  text-align: center;
}

.floating-demo-field {
  position: relative;
  margin-bottom: 0.5rem;
}

.floating-demo-field input {
  width: 100%;
  padding: 1.2rem 0.85rem 0.4rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  outline: none;
  font-family: inherit;
}

.floating-demo-field label {
  position: absolute;
  left: 0.85rem;
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s ease;
}

.floating-demo-field input:focus + label,
.floating-demo-field input:not(:placeholder-shown) + label {
  top: 0.5rem;
  font-size: 0.7rem;
  color: #2563eb;
  font-weight: 600;
}

.floating-demo-field input:not(:placeholder-shown) + label {
  color: #64748b;
}

.floating-demo-field input:focus + label {
  color: #2563eb;
}

.floating-demo-label {
  font-size: 0.8rem;
  color: var(--couleur-texte-clair);
}

/* ---------- STEPS DEMO (SCHEMA) ---------- */
.steps-demo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.steps-demo .steps-demo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
}

.steps-demo-item {
  display: flex;
  align-items: center;
}

.step-demo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #94a3b8;
  background: white;
  transition: all 0.3s ease;
}

.step-demo-item.active .step-demo-circle {
  border-color: #2563eb;
  background: #2563eb;
  color: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step-demo-item.completed .step-demo-circle {
  border-color: #16a34a;
  background: #16a34a;
  color: white;
}

.step-demo-line {
  width: 60px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 0.5rem;
}

.step-demo-item.completed .step-demo-line {
  background: #16a34a;
}

/* ---------- EXAMPLE FORMS ---------- */
.example-form {
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
}

.form-field .required {
  color: #dc2626;
}

.input-base {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1e293b;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.input-base:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-base::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.input-base:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.error-msg {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: none;
}

.hint-text {
  color: #64748b;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* ---------- EXAMPLE FIELDSET ---------- */
.example-fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.example-fieldset legend {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 0.5rem;
  color: #1e293b;
}

/* Custom CB in fieldset */
.custom-cb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.custom-cb input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-cb label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.custom-cb .check-box {
  width: 22px;
  height: 22px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: transparent;
}

.custom-cb input:checked + label .check-box {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

.custom-cb input:focus-visible + label .check-box {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Custom Radio in fieldset */
.custom-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.custom-radio input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-radio label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.custom-radio .radio-circle {
  width: 22px;
  height: 22px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.custom-radio .radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  transform: scale(0);
  transition: transform 0.2s ease;
}

.custom-radio input:checked + label .radio-circle {
  border-color: #2563eb;
}

.custom-radio input:checked + label .radio-dot {
  transform: scale(1);
}

.custom-radio input:focus-visible + label .radio-circle {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* ---------- SWITCH EXAMPLE ---------- */
.switch-example {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.switch-example input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-example label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.switch-example .switch-track {
  width: 48px;
  height: 26px;
  background: #cbd5e1;
  border-radius: 9999px;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.switch-example .switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.switch-example input:checked + label .switch-track {
  background: #2563eb;
}

.switch-example input:checked + label .switch-thumb {
  transform: translateX(22px);
}

.switch-example input:disabled + label {
  opacity: 0.5;
  cursor: not-allowed;
}

.switch-example input:focus-visible + label .switch-track {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* ---------- RANGE SLIDER ---------- */
.range-slider {
  width: 100%;
  height: 6px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  margin: 0.5rem 0;
}

.range-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  margin-top: -7px;
  transition: transform 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.range-slider::-moz-range-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
}

.range-slider::-moz-range-progress {
  background: #2563eb;
  border-radius: 3px;
}

.range-slider:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  border-radius: 3px;
}

/* ---------- FILE UPLOAD ---------- */
.file-upload-example {
  margin-bottom: 1rem;
}

.file-upload-example input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: #f1f5f9;
  color: #475569;
  border: 2px dashed #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.file-upload-label:hover {
  background: #e2e8f0;
  border-color: #2563eb;
}

.file-upload-example input:focus-visible + .file-upload-label {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
  border-color: #2563eb;
}

/* ---------- SELECT STYLED ---------- */
.select-styled {
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1e293b;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.select-styled:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.select-styled:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

/* ---------- TEXTAREA STYLED ---------- */
.textarea-styled {
  width: 100%;
  min-height: 120px;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1e293b;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.textarea-styled:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.textarea-styled::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* ---------- INPUT GROUPS ---------- */
.input-group-example {
  position: relative;
  margin-bottom: 1rem;
}

.input-group-example .input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}

.input-group-example .input-with-icon {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group-example .input-with-icon:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-group-btn-example {
  display: flex;
  margin-bottom: 1rem;
}

.input-group-btn-example .input-stretch {
  flex: 1;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #e2e8f0;
  border-radius: 8px 0 0 8px;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.input-group-btn-example .input-stretch:focus {
  border-color: #2563eb;
  border-right-color: #2563eb;
}

.input-group-btn-example .btn-subscribe {
  padding: 0.65rem 1.25rem;
  background: #2563eb;
  color: white;
  border: 2px solid #2563eb;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.input-group-btn-example .btn-subscribe:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* ---------- SEARCH BAR ---------- */
.search-bar-example {
  position: relative;
  max-width: 500px;
  margin-bottom: 1rem;
}

.search-bar-example .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}

.search-bar-example .search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #e2e8f0;
  border-radius: 9999px;
  background: white;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar-example .search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-bar-example .search-input::placeholder {
  color: #94a3b8;
}

/* ---------- LOGIN FORM EXAMPLE ---------- */
.login-form-example {
  max-width: 400px;
  margin: 0 auto 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.login-form-example h3 {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.custom-cb-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.custom-cb-inline input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.forgot-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.85rem;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-primary-full {
  width: 100%;
  padding: 0.75rem;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.btn-primary-full:hover {
  background: #1d4ed8;
}

.btn-primary-full:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.form-footer-text {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.form-footer-text a {
  color: #2563eb;
  text-decoration: none;
}

.form-footer-text a:hover {
  text-decoration: underline;
}

/* ---------- CONTACT FORM EXAMPLE ---------- */
.contact-form-example {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.contact-form-example h3 {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- REGISTER FORM EXAMPLE ---------- */
.register-form-example {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.register-form-example h3 {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
}

.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 0.35rem;
  background: #e2e8f0;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

.password-strength-fill.weak {
  width: 33%;
  background: #dc2626;
}

.password-strength-fill.medium {
  width: 66%;
  background: #f59e0b;
}

.password-strength-fill.strong {
  width: 100%;
  background: #16a34a;
}

/* ---------- STEPS EXAMPLE ---------- */
.steps-example {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.steps-indicator-example {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.step-item-example {
  display: flex;
  align-items: center;
}

.step-circle-example {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #94a3b8;
  background: white;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-item-example.active .step-circle-example {
  border-color: #2563eb;
  background: #2563eb;
  color: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step-item-example.completed .step-circle-example {
  border-color: #16a34a;
  background: #16a34a;
  color: white;
}

.step-line-example {
  width: 60px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 0.5rem;
  flex-shrink: 0;
}

.step-item-example.completed .step-line-example {
  background: #16a34a;
}

.steps-labels {
  display: flex;
  justify-content: center;
  gap: 0;
}

.step-label {
  width: 40px;
  margin: 0 0.5rem;
  text-align: center;
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
}

.step-label.active {
  color: #2563eb;
  font-weight: 700;
}

.step-label.completed {
  color: #16a34a;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .input-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-components-grid {
    grid-template-columns: 1fr;
  }

  .validation-grid {
    grid-template-columns: 1fr;
  }

  .floating-demo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .input-types-grid {
    grid-template-columns: 1fr;
  }

  .login-form-example,
  .contact-form-example,
  .register-form-example {
    padding: 1.5rem;
  }
}