:root {
  --rec-primary: #5a009d;
  --rec-primary-dark: #35005d;
  --rec-accent: #f2b705;
  --rec-ink: #171229;
  --rec-muted: #696477;
  --rec-bg: #f7f5fa;
  --rec-card: #fff;
  --rec-line: #e8e2ee;
  --rec-success: #16794b;
  --rec-danger: #b42318;
  --rec-radius: 22px;
  --rec-shadow: 0 18px 50px rgba(35, 15, 51, 0.1);
}
* {
  box-sizing: border-box;
}
.rec-body {
  margin: 0;
  background: var(--rec-bg);
  color: var(--rec-ink);
  font-family: "Euclid Circular A", Arial, sans-serif;
  line-height: 1.55;
}
.rec-body button,
.rec-body input,
.rec-body select,
.rec-body textarea {
  font: inherit;
}
.rec-body a {
  text-decoration: none;
}
.rec-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
}
.rec-skip:focus {
  left: 12px;
  z-index: 1000;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}
.rec-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(90, 0, 157, 0.1);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
}
.rec-header-inner {
  max-width: 1180px;
  margin: auto;
  min-height: 76px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.rec-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rec-ink);
  font-weight: 800;
}
.rec-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.rec-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rec-nav a {
  color: var(--rec-muted);
  font-weight: 600;
  padding: 10px 13px;
  border-radius: 12px;
}
.rec-nav a:hover,
.rec-nav a:focus-visible,
.rec-nav a[aria-current="page"] {
  color: var(--rec-primary);
  background: #f1e8f7;
}
.rec-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}
.rec-hero {
  padding: 78px 0 46px;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(242, 183, 5, 0.17),
      transparent 26%
    ),
    radial-gradient(circle at 5% 0, rgba(90, 0, 157, 0.15), transparent 32%);
}
.rec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f0e7f7;
  color: var(--rec-primary);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rec-hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  max-width: 830px;
  margin: 18px 0;
}
.rec-hero p {
  font-size: 1.1rem;
  color: var(--rec-muted);
  max-width: 700px;
}
.rec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.rec-btn {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 750;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.rec-btn:active {
  transform: scale(0.97);
}
.rec-btn-primary {
  background: var(--rec-primary);
  color: #fff;
  box-shadow: 0 10px 25px rgba(90, 0, 157, 0.24);
}
.rec-btn-primary:hover {
  background: var(--rec-primary-dark);
  color: #fff;
}
.rec-btn-secondary {
  background: #fff;
  color: var(--rec-primary);
  border: 1px solid var(--rec-line);
}
.rec-btn-danger {
  background: #fff1f0;
  color: var(--rec-danger);
}
.rec-section {
  padding: 64px 0;
}
.rec-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.rec-section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  margin: 0;
}
.rec-section-head p {
  margin: 7px 0 0;
  color: var(--rec-muted);
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.job-card,
.rec-card {
  background: var(--rec-card);
  border: 1px solid var(--rec-line);
  border-radius: var(--rec-radius);
  box-shadow: 0 8px 30px rgba(35, 15, 51, 0.05);
}
.job-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rec-shadow);
}
.job-card.is-locked {
  background: #f0edf3;
  color: #7b7582;
}
.job-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  background: #edf8f3;
  color: var(--rec-success);
}
.rec-pill.locked {
  background: #e5e1e8;
  color: #645e69;
}
.job-card h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 22px 0 10px;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--rec-muted);
  font-size: 0.9rem;
}
.job-summary {
  color: var(--rec-muted);
  margin: 16px 0 22px;
}
.job-card .rec-btn {
  margin-top: auto;
}
.rec-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 44px 0 76px;
}
.rec-sidebar {
  align-self: start;
  position: sticky;
  top: 102px;
}
.rec-sidebar h2 {
  font-size: 1.35rem;
  margin: 14px 0 6px;
}
.rec-sidebar p {
  font-size: 0.92rem;
  color: var(--rec-muted);
}
.rec-progress {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.rec-progress-item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--rec-muted);
  padding: 10px;
  border-radius: 12px;
  font-weight: 650;
}
.rec-progress-item span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ebe7ee;
}
.rec-progress-item.active {
  background: #f0e7f7;
  color: var(--rec-primary);
}
.rec-progress-item.active span,
.rec-progress-item.done span {
  background: var(--rec-primary);
  color: #fff;
}
.rec-form-card {
  padding: clamp(20px, 4vw, 42px);
}
.rec-form-card h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.035em;
  margin: 8px 0;
}
.rec-intro {
  color: var(--rec-muted);
  margin-bottom: 28px;
}
.rec-form-step {
  display: none;
}
.rec-form-step.active {
  display: block;
  animation: recIn 0.3s ease both;
}
@keyframes recIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rec-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
}
.rec-fieldset legend {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.rec-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.rec-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rec-field.full {
  grid-column: 1/-1;
}
.rec-field label,
.rec-label {
  font-weight: 700;
  font-size: 0.92rem;
}
.rec-required {
  color: var(--rec-danger);
}
.rec-input,
.rec-select,
.rec-textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cec6d5;
  border-radius: 12px;
  background: #fff;
  padding: 11px 13px;
  color: var(--rec-ink);
  outline: none;
}
.rec-select,
.status-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 48px;
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rec-primary) 50%),
    linear-gradient(135deg, var(--rec-primary) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}
.rec-select:hover,
.status-select:hover {
  border-color: #a78bb9;
  background-color: #fdfbff;
}
.rec-select:focus-visible,
.status-select:focus-visible {
  border-color: var(--rec-primary);
  outline: 2px solid var(--rec-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(90, 0, 157, 0.1);
}
.rec-select:disabled {
  cursor: not-allowed;
  color: #655f6b;
  border-color: #ded8e3;
  background-color: #f1edf4;
  opacity: 1;
}
.rec-select option,
.status-select option {
  color: var(--rec-ink);
  background: #ffffff;
  padding: 10px;
}
.custom-select {
  position: relative;
  width: 100%;
}
.native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.custom-select-trigger {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 15px;
  border: 1px solid #cec6d5;
  border-radius: 12px;
  background: #ffffff;
  color: var(--rec-ink);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}
.custom-select-trigger:hover:not(:disabled) {
  border-color: #9e7bb4;
  background: #fdfbff;
}
.custom-select-trigger:focus-visible,
.custom-select.open .custom-select-trigger {
  border-color: var(--rec-primary);
  outline: 2px solid var(--rec-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(90, 0, 157, 0.1);
}
.custom-select-trigger.is-placeholder {
  color: #625c6b;
}
.custom-select-trigger:disabled {
  cursor: not-allowed;
  color: #655f6b;
  border-color: #ded8e3;
  background: #f1edf4;
}
.custom-select-chevron {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 3px;
  border-right: 2px solid var(--rec-primary);
  border-bottom: 2px solid var(--rec-primary);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}
.custom-select.open .custom-select-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}
.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 80;
  max-height: 260px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #ded4e5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(35, 15, 51, 0.18);
}
.custom-select-menu[hidden] {
  display: none;
}
.custom-select-option {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--rec-ink);
  text-align: left;
  cursor: pointer;
}
.custom-select-option:hover,
.custom-select-option:focus-visible {
  outline: none;
  background: #f3ebf8;
  color: var(--rec-primary);
}
.custom-select-option.selected {
  background: var(--rec-primary);
  color: #ffffff;
  font-weight: 700;
}
.rec-select.invalid + .custom-select-trigger {
  border-color: var(--rec-danger);
}
.rec-table .custom-select {
  min-width: 170px;
}
.rec-textarea {
  min-height: 110px;
  resize: vertical;
}
.rec-input:focus,
.rec-select:focus,
.rec-textarea:focus {
  border-color: var(--rec-primary);
  box-shadow: 0 0 0 4px rgba(90, 0, 157, 0.12);
}
.rec-input[readonly] {
  background: #f1edf4;
  color: #655f6b;
}
.rec-help {
  font-size: 0.8rem;
  color: var(--rec-muted);
}
.rec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rec-other-topic {
  max-width: 520px;
  margin-top: 14px;
}
.rec-other-topic[hidden] {
  display: none;
}
.rec-other-topic label {
  display: block;
  margin-bottom: 7px;
}
.rec-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--rec-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.rec-option:has(input:checked) {
  border-color: var(--rec-primary);
  background: #f3ebf8;
  color: var(--rec-primary);
}
.rec-option input {
  accent-color: var(--rec-primary);
}
.rec-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--rec-line);
  padding-top: 24px;
}
.rec-conditional {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.35s ease,
    opacity 0.25s ease;
  margin-top: 14px;
}
.rec-conditional > div {
  overflow: hidden;
}
.rec-conditional.open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.rec-conditional-inner {
  padding: 22px;
  border-radius: 16px;
  background: #faf7fc;
  border: 1px solid #e4d6ee;
}
.rec-upload {
  border: 2px dashed #cfc3d9;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  background: #fbfafc;
}
.rec-upload input {
  max-width: 100%;
}
.rec-error {
  color: var(--rec-danger);
  font-size: 0.82rem;
  min-height: 1.1em;
}
.rec-input.invalid,
.rec-select.invalid {
  border-color: var(--rec-danger);
}
.rec-success-panel {
  text-align: center;
  padding: 45px 20px;
}
.rec-success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f7ef;
  color: var(--rec-success);
  font-size: 2rem;
}
.rec-success-page {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(90, 0, 157, 0.09), transparent 28rem),
    radial-gradient(circle at 85% 85%, rgba(22, 121, 75, 0.08), transparent 24rem);
}
.rec-success-panel {
  max-width: 720px;
  margin: 0 auto;
}
.rec-success-panel[hidden] {
  display: none;
}
.rec-success-kicker {
  margin: 0 0 8px;
  color: var(--rec-success);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rec-success-reference {
  display: inline-block;
  margin: 8px 0 20px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #f4eef8;
  color: var(--rec-primary);
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}
.rec-success-next {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #dcebe3;
  border-radius: 14px;
  background: #f5fbf7;
  color: #355544;
  text-align: left;
}
.rec-success-next i {
  margin-top: 3px;
  color: var(--rec-success);
}
.rec-success-actions {
  justify-content: center;
}

/* SweetAlert de confirmation de candidature */
.mosolo-success-popup {
  width: min(92vw, 580px);
  padding: 28px 28px 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(90, 0, 157, 0.08), transparent 15rem),
    #fff;
  box-shadow: 0 24px 80px rgba(33, 17, 45, 0.2);
}
.mosolo-success-icon {
  width: 82px !important;
  height: 82px !important;
  border: 0 !important;
  background: linear-gradient(145deg, #e6f8ee, #d7f1e3) !important;
  color: var(--rec-success) !important;
  box-shadow: 0 10px 30px rgba(22, 121, 75, 0.18);
}
.mosolo-success-icon svg {
  width: 36px;
  filter: drop-shadow(0 3px 5px rgba(22, 121, 75, 0.2));
}
.mosolo-success-title {
  color: var(--rec-ink) !important;
  font-size: clamp(1.55rem, 5vw, 2rem) !important;
}
.mosolo-success-html {
  margin: 0 !important;
  color: var(--rec-muted) !important;
}
.mosolo-success-html p {
  margin: 0 0 16px;
}
.mosolo-success-ref {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4eef8;
  color: var(--rec-primary);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.mosolo-success-steps {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #dcebe3;
  border-radius: 14px;
  background: #f5fbf7;
  color: #355544;
  font-size: 0.9rem;
  line-height: 1.55;
}
.mosolo-success-confirm,
.mosolo-success-deny {
  min-height: 44px;
  padding: 11px 18px !important;
  border-radius: 11px !important;
  font-weight: 700 !important;
}
.rotate-y {
  animation: mosolo-double-check 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes mosolo-double-check {
  0% { transform: perspective(500px) rotateY(-100deg) scale(0.45); opacity: 0; }
  65% { transform: perspective(500px) rotateY(12deg) scale(1.08); opacity: 1; }
  100% { transform: perspective(500px) rotateY(0) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rotate-y { animation: none; }
}
.rec-admin {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 77px);
}
.admin-side {
  padding: 30px 18px;
  background: #21112d;
  color: #fff;
}
.admin-side h2 {
  font-size: 1rem;
  opacity: 0.7;
  margin: 0 12px 20px;
}
.admin-menu {
  display: grid;
  gap: 6px;
}
.admin-menu button {
  border: 0;
  background: transparent;
  color: #d7ccdd;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
}
.admin-menu button.active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}
.admin-main {
  padding: 34px;
  overflow: hidden;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.admin-top h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 20px;
}
.stat strong {
  display: block;
  font-size: 1.8rem;
}
.stat span {
  color: var(--rec-muted);
  font-size: 0.88rem;
}
.admin-panel {
  display: none;
}
.admin-panel.active {
  display: block;
}
.rec-table-wrap {
  overflow: auto;
}
.rec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.rec-table th,
.rec-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rec-line);
  font-size: 0.88rem;
}
.rec-table th {
  color: var(--rec-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-select {
  border: 1px solid var(--rec-line);
  border-radius: 10px;
  min-height: 42px;
  padding: 8px 42px 8px 12px;
}
.admin-toolbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.admin-toolbar .rec-input {
  max-width: 360px;
}
.link-box {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #f6f2f8;
  border-radius: 12px;
  word-break: break-all;
}
.link-box code {
  flex: 1;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  background: #21112d;
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  box-shadow: var(--rec-shadow);
  transform: translateY(100px);
  opacity: 0;
  transition: 0.25s;
}
.toast.show {
  transform: none;
  opacity: 1;
}
:where(a, button, input, textarea):focus-visible {
  outline: 3px solid rgba(242, 183, 5, 0.75);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rec-shell,
  .rec-admin {
    grid-template-columns: 1fr;
  }
  .rec-sidebar {
    position: static;
  }
  .rec-progress {
    grid-template-columns: repeat(3, 1fr);
  }
  .rec-progress-item {
    justify-content: center;
  }
  .rec-progress-item div {
    display: none;
  }
  .admin-side {
    padding: 14px;
  }
  .admin-side h2 {
    display: none;
  }
  .admin-menu {
    grid-template-columns: repeat(3, 1fr);
  }
  .admin-menu button {
    text-align: center;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-main {
    padding: 24px 16px;
  }
}
@media (max-width: 640px) {
  .rec-header-inner {
    padding-inline: 16px;
  }
  .rec-brand span {
    display: none;
  }
  .rec-nav a:not([aria-current]) {
    display: none;
  }
  .rec-hero {
    padding-top: 50px;
  }
  .rec-grid,
  .rec-form-grid {
    grid-template-columns: 1fr;
  }
  .rec-field.full {
    grid-column: auto;
  }
  .rec-section {
    padding: 46px 0;
  }
  .rec-section-head {
    align-items: start;
    flex-direction: column;
  }
  .rec-form-actions {
    flex-direction: column-reverse;
  }
  .rec-form-actions .rec-btn {
    width: 100%;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-top,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-toolbar .rec-input {
    max-width: none;
  }
  .rec-options {
    display: grid;
  }
  .rec-option {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .rec-header {
    background: #fff;
    backdrop-filter: none;
  }
}
.rec-shell > *,
.rec-form-card,
.rec-form-card form,
.rec-form-step {
  min-width: 0;
}
.rec-form-card h1,
.rec-intro {
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .rec-shell {
    width: 100%;
  }
  .rec-progress {
    width: 100%;
  }
  .rec-form-card {
    width: 100%;
    overflow: visible;
  }
}

/* --- Modale "Contacter un candidat" --- */
.rec-modal[hidden] {
  display: none;
}
.rec-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.rec-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.rec-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  background: var(--rec-surface, #fff);
  border: 1px solid var(--rec-line, #e2e8f0);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}
.rec-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.rec-modal-head h2 {
  margin: 0;
}
.rec-modal-close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--rec-muted, #64748b);
}
.rec-modal-close:hover {
  color: var(--rec-danger, #dc2626);
}
.rec-modal .rec-field {
  margin-bottom: 14px;
}
.rec-modal textarea.rec-textarea {
  width: 100%;
  font-family: inherit;
  resize: vertical;
}
@media (max-width: 640px) {
  .rec-modal {
    padding: 16px;
  }
  .rec-modal-card {
    padding: 18px;
  }
}

/* ======================================================================
   Corrections UX formulaire public (responsive, erreurs, tactile)
   ====================================================================== */

/* 1. Le menu déroulant Budget/Durée ne doit plus être coupé une fois le
   bloc "formation" ouvert (le clipping servait seulement à l'animation). */
.rec-conditional.open > div {
  overflow: visible;
}

/* 2. Retour tactile immédiat au toucher (principe : feedback on press). */
.rec-btn {
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
}
.rec-btn:active {
  transform: scale(0.97);
}
.rec-option,
.custom-select-trigger {
  -webkit-tap-highlight-color: transparent;
}

/* 3. Messages d'erreur lisibles + champ fautif mis en évidence. */
ul.errorlist {
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
  color: var(--rec-danger);
  font-size: 0.85rem;
  font-weight: 600;
}
ul.errorlist li {
  display: flex;
  gap: 6px;
  align-items: baseline;
}
ul.errorlist li::before {
  content: "\26A0";
  font-size: 0.8em;
}
.rec-field:has(ul.errorlist) .rec-input,
.rec-field:has(ul.errorlist) textarea,
.rec-field:has(ul.errorlist) .custom-select-trigger,
.rec-field:has(ul.errorlist) .rec-select {
  border-color: var(--rec-danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

/* Récapitulatif d'erreurs cliquable en haut du formulaire. */
.rec-error-summary {
  border: 1px solid var(--rec-danger);
  background: #fdf1f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
  color: #7f1d16;
}
.rec-error-summary > strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.98rem;
}
.rec-error-summary ul {
  margin: 10px 0 0;
  padding-left: 2px;
  list-style: none;
  display: grid;
  gap: 6px;
}
.rec-error-summary li {
  font-size: 0.9rem;
}
.rec-error-summary a {
  color: #7f1d16;
  font-weight: 700;
  text-decoration: underline;
}

/* 4. Confort mobile : inputs lisibles (>=16px évite le zoom iOS), cibles
   tactiles généreuses, navigation visible. */
@media (max-width: 640px) {
  .rec-input,
  .rec-select,
  .rec-textarea,
  .custom-select-trigger {
    font-size: 16px;
    min-height: 48px;
  }
  .rec-option {
    min-height: 46px;
    align-items: center;
  }
  .rec-shell {
    padding: 22px 0 56px;
    gap: 18px;
  }
  .rec-sidebar {
    position: static;
    top: auto;
  }
  /* La navigation d'en-tête reste accessible au lieu de disparaître. */
  .rec-nav a:not([aria-current]) {
    display: inline-block;
  }
  .rec-nav {
    gap: 12px;
    flex-wrap: wrap;
  }
  .rec-nav a {
    font-size: 0.86rem;
  }
  .rec-brand span {
    display: inline;
  }
  .rec-upload {
    padding: 18px 14px;
  }
}
@media (max-width: 400px) {
  .rec-brand span {
    display: none;
  }
}
