/* =================================================
   kmbf-mktoform-2560.css
   Surcharges Marketo dédiées au formulaire #mktoForm_2560
   embarqué dans la section "demo" de la landing page
   « Konica - LP GED 2026 ».
   Scope : la feuille est strictement scopée au formulaire 2560
   contenu dans le wrapper `.axk-demo__embed` (classe générée par le
   plugin tiers ax-konica). Aucun risque de bleeding sur les autres
   pages du site.
   Tokens : on déclare nos propres variables `--kmbf-*` pour ne pas
   dépendre d'éventuelles variables du thème ou du plugin hôte.
   Les valeurs reprennent la charte couleur Konica Minolta.
   ================================================= */

.ax-konica .axk-demo__embed #mktoForm_2560 {
  --kmbf-blue: #238bbb;
  --kmbf-blue-hover: #1d75a0;
  --kmbf-yellow: #e2b723;
  --kmbf-text: #238bbb;
  --kmbf-text-soft: rgba(35, 139, 187, 0.8);
  --kmbf-text-muted: rgba(35, 139, 187, 0.5);
  --kmbf-stroke: rgba(35, 139, 187, 0.2);
  --kmbf-white: #ffffff;
  --kmbf-error: #b3261e;
  --kmbf-error-bg: #fff0ec;
  --kmbf-error-border: #f4c7c0;
  --kmbf-radius: 8px;
  --kmbf-font-body: "Inter", system-ui, -apple-system, sans-serif;
  --kmbf-font-heading: "Slate Pro Condensed", "Inter", sans-serif;

  width: 100% !important;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: var(--kmbf-font-body);
  font-size: 16px;
  color: var(--kmbf-text);
}

/* ─── Grille / lignes ─────────────────────────────── */
/* ─── Grille / lignes ─────────────────────────────── */
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoFormRow {
  margin: 0 0 14px;
  width: 100% !important;
  float: none !important;
  display: block;
}

/* Rows with 2 visible Marketo fields become a 2-column grid */
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoFormRow[data-mkto-nbfields="2"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 14px;
  align-items: start;
}

/* Marketo columns reset */
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoFormCol {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  min-width: 0;
}

/* Field wrapper reset */
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoFieldWrap {
  width: 100% !important;
  float: none !important;
  min-width: 0;
}

/* Textarea row must stay full width */
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoFormRow[data-mkto-type="text-area"] {
  display: block !important;
  width: 100% !important;
}

/* Marketo layout helpers */
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoGutter,
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoOffset,
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoClear,
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoInstruction {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.ax-konica .axk-demo__embed #mktoForm_2560 [data-mkto-type="hidden-field"] {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: 0;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Honeypot : masquage accessible des lignes ne portant qu'un input
   hidden (Surname). Renforce la règle :has() définie dans le thème. */
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoFormRow.visually-hidden,
.ax-konica .axk-demo__embed #mktoForm_2560 #LblSurname,
.ax-konica .axk-demo__embed #mktoForm_2560 #surname {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ─── Labels ──────────────────────────────────────── */
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoLabel {
  width: auto !important;
  float: none !important;
  display: inline-flex !important;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 6px;
  padding: 0;
  font-family: var(--kmbf-font-body);
  font-size: 14px;
  font-weight: 600 !important;
  line-height: 1.3;
  color: var(--kmbf-blue);
  text-shadow: none;
}
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoRequiredField .mktoAsterix {
  order: 2;
  float: none !important;
  display: inline-block !important;
  padding: 0;
  color: var(--kmbf-yellow);
}

/* ─── Champs texte / email / tel / select / textarea ── */
.ax-konica .axk-demo__embed #mktoForm_2560 input[type="text"],
.ax-konica .axk-demo__embed #mktoForm_2560 input[type="email"],
.ax-konica .axk-demo__embed #mktoForm_2560 input[type="tel"],
.ax-konica .axk-demo__embed #mktoForm_2560 input[type="url"],
.ax-konica .axk-demo__embed #mktoForm_2560 input[type="number"],
.ax-konica .axk-demo__embed #mktoForm_2560 input[type="date"],
.ax-konica .axk-demo__embed #mktoForm_2560 select.mktoField,
.ax-konica .axk-demo__embed #mktoForm_2560 textarea.mktoField {
  width: 100% !important;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--kmbf-font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--kmbf-text);
  background: var(--kmbf-white);
  border: 1px solid var(--kmbf-stroke);
  border-radius: var(--kmbf-radius);
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.ax-konica .axk-demo__embed #mktoForm_2560 textarea.mktoField {
  min-height: 110px;
  resize: vertical;
}
.ax-konica .axk-demo__embed #mktoForm_2560 input[type="text"]:focus,
.ax-konica .axk-demo__embed #mktoForm_2560 input[type="email"]:focus,
.ax-konica .axk-demo__embed #mktoForm_2560 input[type="tel"]:focus,
.ax-konica .axk-demo__embed #mktoForm_2560 input[type="url"]:focus,
.ax-konica .axk-demo__embed #mktoForm_2560 input[type="number"]:focus,
.ax-konica .axk-demo__embed #mktoForm_2560 input[type="date"]:focus,
.ax-konica .axk-demo__embed #mktoForm_2560 select.mktoField:focus,
.ax-konica .axk-demo__embed #mktoForm_2560 textarea.mktoField:focus {
  outline: none;
  border-color: var(--kmbf-blue);
  box-shadow: 0 0 0 3px rgba(35, 139, 187, 0.15);
}
.ax-konica .axk-demo__embed #mktoForm_2560 input::placeholder,
.ax-konica .axk-demo__embed #mktoForm_2560 textarea::placeholder {
  color: var(--kmbf-text-muted);
  opacity: 1;
}

/* Caret select custom */
.ax-konica .axk-demo__embed #mktoForm_2560 select.mktoField {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--kmbf-blue) 50%),
    linear-gradient(135deg, var(--kmbf-blue) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

/* ─── Cases à cocher / radio ──────────────────────── */
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoCheckboxList,
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoRadioList {
  width: 100% !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoCheckboxList > label,
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoRadioList > label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-family: var(--kmbf-font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--kmbf-text);
  cursor: pointer;
}
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoCheckboxList > input[type="checkbox"],
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoRadioList > input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--kmbf-blue);
  flex-shrink: 0;
}

/* ─── Texte d'aide / mentions RGPD ────────────────── */
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoHtmlText {
  width: 100% !important;
  font-family: var(--kmbf-font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--kmbf-text-soft);
  margin: 0 0 4px;
}
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoHtmlText a {
  color: var(--kmbf-blue);
  text-decoration: underline;
}

/* ─── Bouton submit ───────────────────────────────── */
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoButtonRow {
  width: 100% !important;
  margin: 12px 0 0;
  display: flex;
}
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoButtonWrap,
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoButtonWrap.mktoSimple,
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoButtonWrap.mktoRound,
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoButtonWrap.mktoInset {
  margin-left: 0 !important;
  width: 100%;
}
.ax-konica .axk-demo__embed #mktoForm_2560 button.mktoButton,
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoButtonWrap button.mktoButton {
  width: 100%;
  min-height: 48px;
  padding: 15px 29px;
  font-family: var(--kmbf-font-body);
  font-size: 14px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--kmbf-white);
  background: var(--kmbf-blue);
  background-image: none;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ax-konica .axk-demo__embed #mktoForm_2560 .mktoButtonWrap button.mktoButton:after {
  content:'';
  background: var(--kmbf-yellow);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 12px;
  display: inline-block;
  vertical-align: middle;
}

.ax-konica .axk-demo__embed #mktoForm_2560 button.mktoButton:hover,
.ax-konica .axk-demo__embed #mktoForm_2560 button.mktoButton:focus {
  background: var(--kmbf-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(35, 139, 187, 0.7);
  outline: none;
}
.ax-konica .axk-demo__embed #mktoForm_2560 button.mktoButton:disabled,
.ax-konica .axk-demo__embed #mktoForm_2560 button.mktoButton[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Messages d'erreur ───────────────────────────── */
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoError {
  position: static;
  margin: 6px 0 0;
  font-size: 12px;
}
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoError .mktoErrorMsg {
  background: var(--kmbf-error-bg);
  color: var(--kmbf-error);
  border: 1px solid var(--kmbf-error-border);
  border-radius: var(--kmbf-radius);
  padding: 6px 10px;
  box-shadow: none;
  text-shadow: none;
  font-family: var(--kmbf-font-body);
  font-weight: 500;
}
.ax-konica .axk-demo__embed #mktoForm_2560 .mktoError .mktoErrorArrowWrap {
  display: none;
}
.ax-konica .axk-demo__embed #mktoForm_2560 input.mktoInvalid,
.ax-konica .axk-demo__embed #mktoForm_2560 select.mktoInvalid,
.ax-konica .axk-demo__embed #mktoForm_2560 textarea.mktoInvalid {
  border-color: var(--kmbf-error);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

/* ─── Widget Uploadcare (CV / RFP) ────────────────── */
.ax-konica .axk-demo__embed #mktoForm_2560 .uploadcare-widget,
.ax-konica .axk-demo__embed #mktoForm_2560 .uploadcare--widget {
  font-family: var(--kmbf-font-body);
}
.ax-konica .axk-demo__embed #mktoForm_2560 .uploadcare-widget-button,
.ax-konica .axk-demo__embed #mktoForm_2560 .uploadcare--widget__button {
  background: var(--kmbf-white);
  color: var(--kmbf-blue);
  border: 1px solid var(--kmbf-blue);
  border-radius: var(--kmbf-radius);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ax-konica .axk-demo__embed #mktoForm_2560 .uploadcare-widget-button:hover,
.ax-konica .axk-demo__embed #mktoForm_2560 .uploadcare--widget__button:hover {
  background: var(--kmbf-blue);
  color: var(--kmbf-white);
}

/* ─── Responsive : aligné sur le breakpoint LP (1129px) ── */
@media (max-width: 1129px) {
  .ax-konica .axk-demo__embed #mktoForm_2560 .mktoFormRow,
  .ax-konica .axk-demo__embed #mktoForm_2560 .mktoFormCol,
  .ax-konica .axk-demo__embed #mktoForm_2560 .mktoFieldWrap {
    width: 100% !important;
    float: none;
  }
}

@media (max-width: 600px) {
  .ax-konica .axk-demo__embed #mktoForm_2560 .mktoFormRow {
    margin-bottom: 12px;
  }
  
  .ax-konica .axk-demo__embed #mktoForm_2560 .mktoFormRow[data-mkto-nbfields="2"] {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  /* iOS : éviter le zoom à la mise au focus */
  .ax-konica .axk-demo__embed #mktoForm_2560 input[type="text"],
  .ax-konica .axk-demo__embed #mktoForm_2560 input[type="email"],
  .ax-konica .axk-demo__embed #mktoForm_2560 input[type="tel"],
  .ax-konica .axk-demo__embed #mktoForm_2560 select.mktoField,
  .ax-konica .axk-demo__embed #mktoForm_2560 textarea.mktoField {
    font-size: 16px;
  }
}