/* Formulaire commun aux boutons Rejoindre le réseau. */
.sr-artisan-join-btn[data-network-open] {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.mch-network-dialog {
  width: min(600px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #103f70;
  box-shadow: 0 30px 90px rgba(3, 29, 55, .32);
  overflow: auto;
  overscroll-behavior: contain;
}

.mch-network-dialog::backdrop {
  background: rgba(7, 29, 54, .56);
  backdrop-filter: blur(3px);
}

.mch-network-dialog [hidden] { display: none !important; }

.mch-network-head {
  position: relative;
  padding: 28px 28px 0;
}

.mch-network-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef5fa;
  color: #103f70;
  font-family: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.mch-network-kicker {
  display: block;
  margin: 0 32px 8px 0;
  color: #eb6416;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  line-height: 1.5;
}

.mch-network-head h2 {
  margin: 0 28px 8px 0;
  color: #103f70;
  font-size: 25px;
  line-height: 1.2;
}

.mch-network-head p {
  margin: 0;
  color: #60778c;
  font-size: 13px;
  line-height: 1.5;
}

.mch-network-body { padding: 18px 28px 24px; }
.mch-network-form { margin: 0; }
.mch-network-required {
  margin: 0 0 14px;
  color: #60778c;
  font-size: 11px;
}

.mch-network-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 14px;
}

.mch-network-wide { grid-column: 1 / -1; }
.mch-network-fields label,
.mch-network-diploma legend {
  display: block;
  min-width: 0;
  color: #294f70;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.mch-network-fields input:not([type="radio"]) {
  display: block;
  width: 100%;
  height: 46px;
  margin: 6px 0 0;
  padding: 0 12px;
  border: 1px solid #d8e5ee;
  border-radius: 10px;
  background: #fff;
  color: #203e60;
  /* Let the native single-line editor align its caret with the text. */
  font: 400 14px/normal Inter, system-ui, sans-serif;
  text-align: left;
  text-indent: 0;
  letter-spacing: normal;
  caret-color: #203e60;
}

.mch-network-fields input:focus {
  outline: 2px solid #0b5aa3;
  outline-offset: 1px;
}

.mch-network-dialog button:focus-visible,
.sr-artisan-join-btn[data-network-open]:focus-visible {
  outline: 3px solid #0b5aa3;
  outline-offset: 3px;
}

.mch-network-fields input::placeholder { color: #8292a0; opacity: 1; }
.mch-network-years { display: block; position: relative; }
.mch-network-years input { padding-right: 60px !important; }
.mch-network-years > span {
  position: absolute;
  right: 30px;
  top: 14px;
  color: #60778c;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
}
.mch-network-fields small {
  display: block;
  margin-top: 5px;
  color: #60778c;
  font-size: 11px;
  font-weight: 400;
}
.mch-network-diploma { min-width: 0; margin: 0; padding: 0; border: 0; }
.mch-network-diploma legend { padding: 0; margin: 0 0 6px; }
.mch-network-choices { display: flex; gap: 8px; }
.mch-network-choices label {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border: 1px solid #d8e5ee;
  border-radius: 10px;
  background: #f8fbfd;
  cursor: pointer;
}
.mch-network-choices label:has(input:checked) {
  border-color: #ff8243;
  background: #fff4ed;
  color: #b8460b;
}
.mch-network-choices input { margin: 0; width: 16px; height: 16px; accent-color: #ef621c; }
.mch-network-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff5a12, #ff7126);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 90, 18, .18);
  font: 800 13px/1.5 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.mch-network-submit:hover { filter: brightness(.96); }
.mch-network-privacy {
  margin: 12px 0 0;
  text-align: center;
  color: #60778c;
  font-size: 11px;
  line-height: 1.5;
}
.mch-network-preview {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f7fa;
  color: #60778c;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}
.mch-network-success { padding: 10px 0 0; text-align: center; }
.mch-network-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e9f7ef;
  color: #228356;
}
.mch-network-check svg { width: 32px; height: 32px; }
.mch-network-success h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.3; color: #103f70; text-wrap: balance; }
.mch-network-success p { margin: 0; font-size: 14px; line-height: 1.6; color: #60778c; }

@media (max-width: 540px) {
  .mch-network-head { padding: 24px 20px 0; }
  .mch-network-body { padding: 16px 20px 20px; }
  .mch-network-head h2 { font-size: 23px; }
  .mch-network-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mch-network-fields input:not([type="radio"]) { font-size: 16px; }
}
