/* VP Forms — scoped look & feel (works for inline + modal forms)
   Uses CSS variables:
   --vp-accent, --vp-radius, --vp-btn-style
*/

.vp-form-wrap{
  --vp-accent: #1F6FEB;
  --vp-accent-rgb: 31,111,235;
  --vp-radius: 18px;
  --vp-btn-style: solid;

  --vp-bg: #ffffff;
  --vp-text: #0F172A;
  --vp-muted: #64748b;
  --vp-border: #E2E8F0;
  --vp-shadow: 0 12px 30px rgba(2,6,23,.08);

  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--vp-text);
}


/* Defend against theme typography overrides */
.vp-form-wrap .vp-form-title{
  color: var(--vp-text) !important;
  text-decoration: none !important;
}
.vp-form-wrap .vp-form-subtitle{
  color: var(--vp-muted) !important;
  text-decoration: none !important;
}

/* Some themes/plugins hide labels globally (e.g. label{display:none}).
   Our fields use labels for accessibility, so we force them visible ONLY inside the form wrapper. */
.vp-form-wrap label{ display:block !important; }

/* FORCE VISIBILITY
   Some themes hide form controls (inputs/fields) via broad selectors.
   Ensure VP fields always show inside our wrapper. */
.vp-form-wrap .vp-field{ display:block !important; visibility:visible !important; opacity:1 !important; height:auto !important; }
.vp-form-wrap input,
.vp-form-wrap textarea,
.vp-form-wrap select{ display:block !important; visibility:visible !important; opacity:1 !important; }


/* Presets */
.vp-form--openwork-blue{ --vp-accent: #1F6FEB; }
.vp-form--openwork-teal{ --vp-accent: #00A0A9; }
.vp-form--minimal-gray{ --vp-accent: #111827; }
.vp-form--openwork-compact-yellow{ --vp-accent: #1F6FEB; }

.vp-form-wrap{
  background: var(--vp-bg);
  border: 1px solid var(--vp-border) !important;
  border-radius: var(--vp-radius);
  padding: 18px;
  box-shadow: var(--vp-shadow);
}

/* Legacy-like modal look (matches the classic vacancy modal styling)
   Modal already has its own white card, so the inner form should be clean. */
.vp-form-context--modal{
  /* .vp-form-wrap has border:... !important (used for inline). In modal we must HARD override */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.vp-form-context--modal .vp-form-title{
  margin: 6px 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}
.vp-form-context--modal .vp-form-subtitle{
  margin: 0 0 12px;
  color: #555;
}

.vp-form-context--modal .vp-field{ display:block !important; visibility: visible !important; margin: 0 0 10px; }
.vp-form-context--modal .vp-field__label{
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  color:#333;
}

.vp-form-context--modal .vp-field input,
.vp-form-context--modal .vp-field textarea,
.vp-form-context--modal .vp-field select{
  border: 1px solid #e5e5e5;
  /* Some themes force square corners with !important */
  border-radius: 12px !important;
  padding: 10px 12px;
  font-size: 14px;
  box-shadow: none;
}

.vp-form-context--modal .vp-field input:focus,
.vp-form-context--modal .vp-field textarea:focus,
.vp-form-context--modal .vp-field select:focus{
  border-color: #cbd5e1 !important;
  box-shadow: 0 0 0 4px rgba(2,6,23,.06) !important;
  outline: none !important;
}

.vp-form-head{ margin: 0 0 12px; }
.vp-form-title{
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.vp-form-subtitle{
  margin: 0;
  color: var(--vp-muted);
  font-size: 14px;
  line-height: 1.45;
}

.vp-form{ margin: 0; }

/* Inline layout: 2 columns (responsive) */
.vp-form-layout--2col .vp-form{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px 18px;
}

@media (min-width: 768px){
  .vp-form-layout--2col .vp-form{
    grid-template-columns: 1fr 1fr !important;
  }

  /* Default: full width unless explicitly marked as half */
  .vp-form-layout--2col .vp-field{
    grid-column: 1 / -1;
    margin: 0;
  }

  .vp-form-layout--2col .vp-field--half{
    grid-column: span 1 !important;
  }

  .vp-form-layout--2col .vp-field--full{
    grid-column: 1 / -1 !important;
  }
}

.vp-form-layout--2col .vp-field{
  margin: 0;
}

.vp-form-layout--2col .vp-btn-submit,
.vp-form-layout--2col .vp-form__msg{
  grid-column: 1 / -1;
}

.vp-form-layout--2col .vp-btn-submit,
.vp-form-layout--2col .vp-form__msg{
  grid-column: 1 / -1;
}

.vp-field{ display:block !important; visibility: visible !important; margin: 0 0 12px; }
.vp-field__label{
  display:block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1F2937;
}

.vp-form-wrap .vp-field input,
.vp-form-wrap .vp-field textarea,
.vp-form-wrap .vp-field select{
  display: block !important;
  visibility: visible !important;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--vp-border) !important;
  /* Some themes force square corners with !important */
  border-radius: calc(var(--vp-radius) - 6px) !important;
  padding: 11px 12px;
  font-size: 15px;
  line-height: 1.2;
  background: #fff;
  color: var(--vp-text);
  outline: none;
}

.vp-form-wrap .vp-field textarea{ min-height: 92px; resize: vertical; }

.vp-form-wrap .vp-field input:focus,
.vp-form-wrap .vp-field textarea:focus,
.vp-form-wrap .vp-field select:focus{
  border: 1px solid var(--vp-accent) !important;
  box-shadow: 0 0 0 4px rgba(var(--vp-accent-rgb,31,111,235), .18) !important;
  outline: none !important;
  -webkit-box-shadow: 0 0 0 4px rgba(var(--vp-accent-rgb,31,111,235), .18) !important;
}

.vp-radio{ display: grid; gap: 8px; }

/* Each radio option row */
.vp-radio__row{
  display:flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--vp-border) !important;
  /* Defend against theme styles that set border-radius:0 !important */
  border-radius: calc(var(--vp-radius) - 6px) !important;
}
.vp-radio__row input{ margin: 0; }
.vp-radio__row label{
  display:inline-block !important;
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--vp-text);
}

/* Backward compatibility (older markup) */
.vp-radio__item{
  display:flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--vp-border) !important;
  border-radius: calc(var(--vp-radius) - 6px);
  cursor: pointer;
}
.vp-radio__item input{ margin-top: 3px; }
.vp-radio__item span{ font-size: 14px; color: var(--vp-text); }

/* Checkbox row */
.vp-checkbox{
  display:flex;
  gap: 10px;
  align-items: center;
}
.vp-checkbox input{ margin: 0; }
.vp-checkbox__label{
  display:inline-block !important;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.vp-btn-submit{
  width: 100%;
  border-radius: calc(var(--vp-radius) - 4px);
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
}

.vp-form-wrap[style*="--vp-btn-style:outline"] .vp-btn-submit,
.vp-form-wrap .vp-btn-submit.vp-btn--outline{
  background: transparent;
  border-color: var(--vp-accent);
  color: var(--vp-accent);
}

.vp-form-wrap[style*="--vp-btn-style:solid"] .vp-btn-submit{
  background: var(--vp-accent);
  color: #fff;
}

/* Modal submit button — use classic OpenWork gradient like old vacancy form */
.vp-form-context--modal .vp-btn-submit{
  width: auto;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  /* Force the classic green→blue gradient (some themes/plugins may override button backgrounds) */
  background: linear-gradient(90deg, #00C853 0%, #00B0FF 100%) !important;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

.vp-form-context--modal .vp-btn-submit:hover{ filter: brightness(1.02); }
.vp-form-context--modal .vp-btn-submit:active{ transform: translateY(1px); }

.vp-form-wrap .vp-btn-submit:hover{ filter: brightness(0.98); transform: translateY(-1px); }
.vp-form-wrap .vp-btn-submit:active{ transform: translateY(0); }

.vp-form__msg{
  margin-top: 10px;
  font-weight: 700;
  font-size: 14px;
}

.vp-form__msg.is-ok{ color: #16A34A; }
.vp-form__msg.is-err{ color: #B91C1C; }

/* Make modal slot spacing nicer */
#vp-modal-form-slot{ padding-top: 2px; }

/* Force visibility of fields in case theme CSS hides form elements */
.vp-form-wrap .vp-field,
.vp-form-wrap .vp-field *{
  opacity: 1 !important;
  max-height: none !important;
}


/* Width helpers */
.vp-form-width--360{ max-width: 360px; margin-left:auto; margin-right:auto; }
.vp-form-width--420{ max-width: 420px; margin-left:auto; margin-right:auto; }
.vp-form-width--520{ max-width: 520px; margin-left:auto; margin-right:auto; }
.vp-form-width--680{ max-width: 680px; margin-left:auto; margin-right:auto; }
.vp-form-width--760{ max-width: 760px; margin-left:auto; margin-right:auto; }
.vp-form-width--full{ max-width: none; width: 100%; }

/* Compact modifiers */
.vp-form-inputs--pill .vp-field input,
.vp-form-inputs--pill .vp-field select{
  border-radius: 999px !important;
}
.vp-form-inputs--pill .vp-field textarea{
  border-radius: calc(var(--vp-radius) - 6px) !important;
}

.vp-form-labels--off .vp-field__label{ display:none !important; }

/* Radio style: list (no card borders) */
.vp-form-radio--list .vp-radio{ gap: 6px; }
.vp-form-radio--list .vp-radio__row{
  padding: 0;
  border: 0 !important;
}
.vp-form-radio--list .vp-radio__row label{ font-size: 14px; }


/* Radio style: list (2 columns) */
.vp-form-radio--inline2 .vp-radio{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
}
@media (max-width: 640px){
  .vp-form-radio--inline2 .vp-radio{ grid-template-columns: 1fr; }
}
.vp-form-radio--inline2 .vp-radio__row{
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}
.vp-form-radio--inline2 .vp-radio__row label{ font-size: 14px; }

/* Button theme: yellow CTA */
.vp-form-btn--yellow .vp-btn-submit{
  width: fit-content;
  min-width: 240px;
  margin: 10px auto 0;
  display: flex;
  justify-content: center;

  background: #F2C20C !important;
  color: #111 !important;
  border-color: rgba(0,0,0,.08) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.18) !important;
}
.vp-form-btn--yellow .vp-btn-submit:hover{ filter: brightness(.98); }

/* Button theme: green CTA */
.vp-form-btn--green .vp-btn-submit{
  width: fit-content;
  min-width: 240px;
  margin: 10px auto 0;
  display: flex;
  justify-content: center;

  background: #16A34A !important;
  color: #fff !important;
  border-color: rgba(0,0,0,.08) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.18) !important;
}
.vp-form-btn--green .vp-btn-submit:hover{ filter: brightness(.98); }

/* Preset polish: Compact Yellow */
.vp-form--openwork-compact-yellow{
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
}
.vp-form--openwork-compact-yellow .vp-form-title{
  font-size: 20px;
}
.vp-form--openwork-compact-yellow .vp-form-subtitle{
  font-size: 13px;
}
.vp-form--openwork-compact-yellow .vp-field{ margin: 0 0 10px; }
.vp-form--openwork-compact-yellow .vp-field input,
.vp-form--openwork-compact-yellow .vp-field select,
.vp-form--openwork-compact-yellow .vp-field textarea{
  font-size: 14px;
  padding: 10px 12px;
}

/* Preset polish: Landing Green */
.vp-form--openwork-landing-green{
  padding: 0;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.vp-form--openwork-landing-green .vp-form-title{
  font-size: 44px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--vp-text) !important;
}
@media (max-width: 640px){
  .vp-form--openwork-landing-green .vp-form-title{ font-size: 34px; }
}
.vp-form--openwork-landing-green .vp-form-subtitle{
  font-size: 14px;
  color: rgba(0,0,0,.7) !important;
}
.vp-form--openwork-landing-green .vp-field{ margin: 0 0 14px; }
.vp-form--openwork-landing-green .vp-field input,
.vp-form--openwork-landing-green .vp-field select,
.vp-form--openwork-landing-green .vp-field textarea{
  border: 2px solid #0B0B0B !important;
  border-radius: 999px !important;
  background: #fff !important;
  padding: 14px 18px !important;
  font-size: 16px;
}
.vp-form--openwork-landing-green .vp-field textarea{
  border-radius: 22px !important;
  min-height: 56px;
  padding-top: 14px !important;
}

/* Section / heading field (builder) */
.vp-field--section{
  padding-top:10px;
  margin-top:6px;
  border-top:1px solid var(--vp-border);
}
.vp-form-grid > .vp-field--section{
  grid-column: 1 / -1 !important;
}
.vp-section__title{
  font-weight:800;
  font-size:14px;
  margin:0 0 2px;
}
.vp-section__desc{
  margin:0;
  font-size:13px;
  color:var(--vp-muted);
}

/* Wizard consultation modal — final step after Smart Match */
#vp-form-modal.vp-modal--wizard .vp-modal__overlay{
  background: rgba(5, 18, 38, .68) !important;
  backdrop-filter: blur(8px);
}

#vp-form-modal.vp-modal--wizard .vp-modal__dialog{
  width: min(640px, calc(100% - 28px)) !important;
  max-height: min(86vh, 780px);
  overflow: auto;
  border-radius: 28px !important;
  padding: 22px !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(47,111,235,.13), transparent 62%),
    radial-gradient(380px 180px at 100% 10%, rgba(255,201,40,.18), transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%) !important;
  box-shadow: 0 30px 100px rgba(2, 8, 23, .34) !important;
}

#vp-form-modal.vp-modal--wizard .vp-modal__close{
  top: 14px !important;
  right: 14px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.88) !important;
  border-color: rgba(15, 35, 70, .10) !important;
  box-shadow: 0 10px 24px rgba(2,8,23,.08);
}

.vp-form-variant--wizard .vp-form-head{
  padding-right: 42px;
}

.vp-form-variant--wizard .vp-form-title{
  font-size: clamp(24px, 4vw, 32px) !important;
  line-height: 1.06 !important;
  letter-spacing: -.04em !important;
  margin-bottom: 8px !important;
}

.vp-form-variant--wizard .vp-form-subtitle{
  max-width: 560px;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #52667F !important;
  margin-bottom: 14px !important;
}

.vp-form-wizard-summary{
  margin: 14px 0 16px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(47, 111, 235, .14);
  background:
    radial-gradient(240px 110px at 100% 0%, rgba(255,201,40,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,248,255,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 12px 26px rgba(15,43,85,.06);
}

.vp-form-wizard-summary__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.vp-form-wizard-summary__top span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding: 6px 10px;
  border-radius:999px;
  background:#071A3A;
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
}

.vp-form-wizard-summary__top strong{
  font-size:13px;
  font-weight:900;
  color:#1F6FEB;
}

.vp-form-wizard-summary__text{
  color:#5B6F8A;
  font-size:13px;
  line-height:1.55;
  font-weight:700;
  margin-bottom:10px;
}

.vp-form-wizard-summary__list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.vp-form-wizard-summary__pill{
  display:grid;
  gap:2px;
  min-width: calc(50% - 4px);
  flex: 1 1 calc(50% - 4px);
  padding:10px 11px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(8,25,55,.08);
}

.vp-form-wizard-summary__pill small{
  color:#7C8EA8;
  font-size:11px;
  line-height:1.25;
  font-weight:800;
}

.vp-form-wizard-summary__pill strong{
  color:#071A3A;
  font-size:13px;
  line-height:1.28;
  font-weight:900;
}

.vp-form-wizard-summary__estimate{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.vp-form-wizard-summary__estimate span{
  display:inline-flex;
  gap:5px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  background:#EEF5FF;
  color:#52667F;
  font-size:12px;
  font-weight:800;
}

.vp-form-wizard-summary__estimate strong{
  color:#071A3A;
}

.vp-form-variant--wizard .vp-field input,
.vp-form-variant--wizard .vp-field select,
.vp-form-variant--wizard .vp-field textarea{
  border-radius:16px !important;
  border-color:#D7E3F4 !important;
  background:#FFFFFF !important;
  min-height:48px;
}

.vp-form-variant--wizard .vp-btn-submit{
  min-height:54px !important;
  border-radius:18px !important;
  background: linear-gradient(180deg, #FFD84F 0%, #FFB800 100%) !important;
  color:#071A3A !important;
  border-color: rgba(136,95,0,.14) !important;
  box-shadow: 0 18px 36px rgba(255,201,40,.25) !important;
  font-weight: 950 !important;
}

@media (max-width: 640px){
  #vp-form-modal.vp-modal--wizard .vp-modal__dialog{
    top:auto !important;
    bottom:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-height:88vh;
    transform:none !important;
    border-radius:26px 26px 0 0 !important;
    padding:20px 16px calc(18px + env(safe-area-inset-bottom)) !important;
  }
  .vp-form-wizard-summary__pill{
    min-width:100%;
    flex-basis:100%;
  }
  .vp-form-wizard-summary__top{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* Patch v1.8.15: premium selected state for built-in wizard radio choices */
.vp-form-variant--wizard.vp-form-radio--inline2 .vp-radio{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 12px !important;
}

.vp-form-variant--wizard.vp-form-radio--inline2 .vp-radio__row{
  position:relative;
  display:block !important;
  min-width:0;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  cursor:pointer;
}

.vp-form-variant--wizard.vp-form-radio--inline2 .vp-radio__row input[type="radio"]{
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  z-index:-1 !important;
  width:1px !important;
  height:1px !important;
  min-width:1px !important;
  min-height:1px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  opacity:0 !important;
  overflow:hidden !important;
  pointer-events:none !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  clip:rect(0 0 0 0) !important;
  clip-path:inset(50%) !important;
}

.vp-form-variant--wizard.vp-form-radio--inline2 .vp-radio__row .vp-radio__item{
  position:relative;
  display:flex !important;
  align-items:center;
  width:100%;
  min-height:48px;
  margin:0 !important;
  padding:11px 14px 11px 44px !important;
  border:1px solid #D7E3F4 !important;
  border-radius:16px !important;
  background:#FFFFFF !important;
  color:#102033 !important;
  box-shadow:0 8px 20px rgba(8,25,55,.035);
  font-size:14px !important;
  font-weight:800 !important;
  line-height:1.25;
  cursor:pointer;
  user-select:none;
  transition:border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease, color .16s ease;
}

.vp-form-variant--wizard.vp-form-radio--inline2 .vp-radio__row .vp-radio__item::before{
  content:"";
  position:absolute;
  left:14px;
  top:50%;
  width:18px;
  height:18px;
  border:2px solid #CFE0F6;
  border-radius:999px;
  background:#FFFFFF;
  transform:translateY(-50%);
  box-shadow:inset 0 0 0 4px #FFFFFF;
  transition:border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.vp-form-variant--wizard.vp-form-radio--inline2 .vp-radio__row .vp-radio__item::after{
  content:"";
  position:absolute;
  left:20px;
  top:50%;
  width:10px;
  height:10px;
  border-radius:999px;
  background:#FFB800;
  opacity:0;
  transform:translateY(-50%) scale(.55);
  transition:opacity .16s ease, transform .16s ease;
}

.vp-form-variant--wizard.vp-form-radio--inline2 .vp-radio__row:hover .vp-radio__item{
  border-color:#BBD0EE !important;
  background:#FBFDFF !important;
  box-shadow:0 12px 26px rgba(8,25,55,.055);
  transform:translateY(-1px);
}

.vp-form-variant--wizard.vp-form-radio--inline2 .vp-radio__row input[type="radio"]:checked + .vp-radio__item{
  border-color:#F2C20C !important;
  background:linear-gradient(180deg, #FFF6D3 0%, #FFFFFF 100%) !important;
  color:#071A3A !important;
  box-shadow:0 14px 30px rgba(242,194,12,.16), 0 0 0 3px rgba(242,194,12,.12);
}

.vp-form-variant--wizard.vp-form-radio--inline2 .vp-radio__row input[type="radio"]:checked + .vp-radio__item::before{
  border-color:#F2C20C;
  box-shadow:inset 0 0 0 4px #FFFFFF, 0 0 0 4px rgba(242,194,12,.14);
}

.vp-form-variant--wizard.vp-form-radio--inline2 .vp-radio__row input[type="radio"]:checked + .vp-radio__item::after{
  opacity:1;
  transform:translateY(-50%) scale(1);
}

.vp-form-variant--wizard.vp-form-radio--inline2 .vp-radio__row input[type="radio"]:focus-visible + .vp-radio__item{
  outline:3px solid rgba(31,111,235,.20) !important;
  outline-offset:2px;
}

@media (max-width: 520px){
  .vp-form-variant--wizard.vp-form-radio--inline2 .vp-radio{
    grid-template-columns:1fr !important;
  }
}
