/* ============================================================
   OutsourceZen AI — forms, wizards, landing & confirmation
   Builds on styles.css + site.css
   ============================================================ */

/* ---------- Generic form fields ---------- */
.field { margin-bottom: 22px; }
.field > label { display: block; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.field .req { color: var(--orange); }
.field .hint { font-size: 13px; color: #66708a; margin-top: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.input, .select, .textarea {
  width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--gray); border-radius: 9px; padding: 13px 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input::placeholder, .textarea::placeholder { color: #aeb6c4; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,.15); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231B2A4A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }

.field.has-error .input, .field.has-error .select, .field.has-error .textarea,
.field.has-error .tag-input, .field.has-error .dropzone, .field.has-error .country-trigger { border-color: #E53935; }
.field.has-error .err-msg { display: flex; }
.err-msg { display: none; align-items: center; gap: 6px; color: #E53935; font-size: 13px; margin-top: 7px; }
.err-msg svg { width: 15px; height: 15px; flex: none; }

.input-wrap { position: relative; }
.input-wrap .state-ico { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; display: none; }
.field.is-valid .input-wrap .state-ico.ok { display: block; color: var(--success); }
.field.is-valid .input { border-color: var(--success); }

/* radio / checkbox pills */
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill label { display: block; cursor: pointer; font-size: 14px; font-weight: 500; padding: 10px 18px; border: 1px solid var(--gray); border-radius: 9px; transition: var(--ease); color: var(--ink); background: #fff; }
.radio-pill input:checked + label { border-color: var(--orange); background: rgba(244,123,32,.08); color: var(--orange-d); font-weight: 600; }
.radio-pill input:focus-visible + label { box-shadow: 0 0 0 3px rgba(244,123,32,.15); }

.checkbox-row { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; cursor: pointer; }
.checkbox-row label { font-size: 15px; color: var(--ink); cursor: pointer; }
.checkbox-row a { color: var(--blue); }

/* ---------- Tag input ---------- */
.tag-input { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid var(--gray); border-radius: 9px; padding: 9px 11px; background: #fff; min-height: 50px; transition: border-color 150ms ease, box-shadow 150ms ease; align-items: center; }
.tag-input.focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,.15); }
.tag-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 7px; }
.tag-chip button { background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }
.tag-chip button:hover { color: #fff; }
.tag-input input { border: none; outline: none; flex: 1; min-width: 120px; font-family: var(--body); font-size: 15px; padding: 6px 2px; }
.tag-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-suggest button { font-size: 13px; background: var(--bg); border: 1px solid var(--gray); color: var(--ink); border-radius: 20px; padding: 6px 13px; cursor: pointer; transition: var(--ease); font-family: var(--body); }
.tag-suggest button:hover { border-color: var(--orange); color: var(--orange); background: #fff; }

/* ---------- File dropzone ---------- */
.dropzone { border: 2px dashed var(--navy); border-radius: 14px; padding: 36px 24px; text-align: center; background: #fbfcfe; cursor: pointer; transition: var(--ease); }
.dropzone:hover, .dropzone.drag { border-color: var(--orange); background: rgba(244,123,32,.05); }
.dropzone .dz-ico { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--navy); }
.dropzone .dz-ico svg { width: 100%; height: 100%; }
.dropzone .dz-title { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--navy); }
.dropzone .dz-sub { font-size: 13px; color: #66708a; margin-top: 6px; }
.dropzone .dz-browse { display: inline-block; margin-top: 14px; }
.dz-file { display: none; align-items: center; gap: 14px; border: 1px solid var(--gray); border-radius: 12px; padding: 16px 18px; background: #fff; }
.dz-file.show { display: flex; }
.dz-file .f-ico { width: 42px; height: 42px; border-radius: 10px; background: rgba(46,117,182,.1); color: var(--blue); display: grid; place-items: center; flex: none; }
.dz-file .f-ico svg { width: 22px; height: 22px; }
.dz-file .f-meta { flex: 1; min-width: 0; }
.dz-file .f-name { font-weight: 600; color: var(--navy); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-file .f-size { font-size: 13px; color: #66708a; }
.dz-file .f-check { color: var(--success); width: 22px; height: 22px; }
.dz-file .f-remove { background: none; border: none; cursor: pointer; color: #98A2B3; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.dz-file .f-remove:hover { background: var(--bg); color: #E53935; }
.dz-progress { height: 7px; background: var(--gray); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.dz-progress span { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 4px; transition: width 120ms linear; }

/* ---------- Range slider + number ---------- */
.range-row { display: flex; align-items: center; gap: 18px; }
.range-row input[type=range] { flex: 1; accent-color: var(--orange); height: 6px; }
.range-num { display: flex; align-items: center; gap: 6px; border: 1px solid var(--gray); border-radius: 9px; padding: 10px 13px; font-family: var(--display); font-weight: 600; color: var(--navy); }
.range-num span { color: #98A2B3; }
.range-num input { border: none; outline: none; width: 80px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--navy); }

/* salary two-part */
.salary-amount { display: flex; gap: 12px; margin-top: 14px; }
.salary-amount .input-wrap { flex: 1; }
.salary-cur { width: 120px; flex: none; }

/* ---------- Searchable country dropdown ---------- */
.country { position: relative; }
.country-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--gray); border-radius: 9px; padding: 13px 15px; cursor: pointer; font-size: 16px; color: var(--ink); }
.country-trigger.placeholder { color: #aeb6c4; }
.country-trigger svg { width: 16px; height: 16px; color: var(--navy); }
.country-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--gray); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 30; display: none; overflow: hidden; }
.country.open .country-panel { display: block; }
.country-search { padding: 10px; border-bottom: 1px solid var(--gray); }
.country-search input { width: 100%; border: 1px solid var(--gray); border-radius: 8px; padding: 10px 12px; font-size: 15px; outline: none; }
.country-search input:focus { border-color: var(--orange); }
.country-list { max-height: 240px; overflow-y: auto; }
.country-opt { display: flex; align-items: center; gap: 10px; padding: 11px 15px; cursor: pointer; font-size: 15px; }
.country-opt:hover, .country-opt.active { background: var(--bg); }
.country-opt .flag { font-size: 19px; }
.country-opt.primary { background: rgba(244,123,32,.07); }
.country-opt .pin { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--orange); background: rgba(244,123,32,.12); padding: 2px 8px; border-radius: 20px; }

/* ============================================================
   LANDING PAGES (Apply / Hire)
   ============================================================ */
.landing-hero { text-align: center; padding-bottom: 90px; }
.landing-hero h1 { max-width: 880px; margin-left: auto; margin-right: auto; }
.landing-hero p { margin-left: auto; margin-right: auto; }
.landing-hero .btns { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.trust-note { font-size: 14px; color: rgba(255,255,255,.65); margin-top: 18px; display: inline-flex; gap: 8px; align-items: center; }
.trust-note svg { width: 16px; height: 16px; color: #6fd08a; }

.benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s3); margin-top: -60px; position: relative; z-index: 5; }
.benefit-card { background: #fff; border: 1px solid var(--gray); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow); }
.benefit-card .b-ico { width: 60px; height: 60px; border-radius: 16px; background: rgba(244,123,32,.1); color: var(--orange); display: grid; place-items: center; margin: 0 auto 18px; }
.benefit-card .b-ico svg { width: 30px; height: 30px; }
.benefit-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.benefit-card p { color: #5b6577; font-size: 15px; }

.proof-strip { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; margin: var(--s6) 0 0; }
.proof-strip .p-item { padding: 0 40px; text-align: center; border-right: 1px solid var(--gray); }
.proof-strip .p-item:last-child { border-right: none; }
.proof-strip .p-num { font-family: var(--display); font-weight: 700; font-size: 38px; color: var(--navy); }
.proof-strip .p-num .u { color: var(--orange); }
.proof-strip .p-label { font-size: 14px; color: #66708a; margin-top: 4px; }

.privacy-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #5b6577; background: var(--bg); border-radius: 30px; padding: 10px 18px; margin-top: 22px; }
.privacy-note svg { width: 17px; height: 17px; color: var(--blue); }

/* ============================================================
   WIZARD (multi-step form)
   ============================================================ */
.wizard-wrap { max-width: 760px; margin: 0 auto; }
.wiz-card { background: #fff; border: 1px solid var(--gray); border-radius: 20px; box-shadow: var(--shadow); padding: 40px; }

.wiz-progress { display: flex; align-items: flex-start; margin-bottom: 36px; }
.wiz-pstep { flex: 1; text-align: center; position: relative; }
.wiz-pstep .circle { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 2px solid var(--gray); color: #98A2B3; font-family: var(--display); font-weight: 700; display: grid; place-items: center; margin: 0 auto 10px; position: relative; z-index: 2; transition: var(--ease); }
.wiz-pstep .plabel { font-size: 13px; font-weight: 600; color: #98A2B3; font-family: var(--display); transition: var(--ease); }
.wiz-pstep::before { content:""; position: absolute; top: 21px; left: -50%; width: 100%; height: 2px; background: var(--gray); z-index: 1; }
.wiz-pstep:first-child::before { display: none; }
.wiz-pstep.active .circle { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 4px rgba(244,123,32,.15); }
.wiz-pstep.active .plabel { color: var(--orange); }
.wiz-pstep.done .circle { background: var(--success); border-color: var(--success); color: #fff; }
.wiz-pstep.done .plabel { color: var(--navy); }
.wiz-pstep.done::before, .wiz-pstep.active::before { background: var(--success); }

.wiz-step { display: none; animation: stepfade 360ms ease; }
.wiz-step.active { display: block; }
.wiz-step h2 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.wiz-step .step-sub { color: #66708a; font-size: 15px; margin-bottom: 28px; }

.wiz-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray); }
.wiz-nav .spacer { flex: 1; }

/* review summary */
.review-card { border: 1px solid var(--gray); border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; }
.review-card .rc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.review-card .rc-head h3 { font-size: 17px; font-weight: 600; }
.review-card .rc-edit { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--orange); background: none; border: none; cursor: pointer; }
.review-card .rc-edit:hover { text-decoration: underline; }
.review-row { display: grid; grid-template-columns: 180px 1fr; gap: 14px; padding: 8px 0; font-size: 15px; border-top: 1px dashed var(--gray); }
.review-row:first-of-type { border-top: none; }
.review-row .rk { color: #66708a; }
.review-row .rv { color: var(--navy); font-weight: 500; word-break: break-word; }
.review-row .rv.empty { color: #aeb6c4; font-weight: 400; font-style: italic; }

/* ============================================================
   CONFIRMATION
   ============================================================ */
.confirm-wrap { max-width: 680px; margin: 0 auto; text-align: center; }
.confirm-check { width: 110px; height: 110px; margin: 0 auto 30px; position: relative; }
.confirm-check svg { width: 100%; height: 100%; }
.confirm-check .ring { stroke: var(--success); stroke-width: 4; fill: none; stroke-dasharray: 314; stroke-dashoffset: 314; animation: drawRing .7s ease forwards; }
.confirm-check .tick { stroke: var(--orange); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawTick .4s .6s ease forwards; }
@keyframes drawRing { to { stroke-dashoffset: 0; } }
@keyframes drawTick { to { stroke-dashoffset: 0; } }
.confirm-wrap h1 { font-size: clamp(28px,4vw,40px); margin-bottom: 16px; }
.confirm-wrap > p { font-size: 18px; color: #5b6577; max-width: 520px; margin: 0 auto 40px; }

.mini-timeline { display: flex; justify-content: center; gap: 0; margin: 0 auto 44px; max-width: 600px; }
.mini-step { flex: 1; text-align: center; position: relative; padding: 0 10px; }
.mini-step .ms-num { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 700; display: grid; place-items: center; margin: 0 auto 12px; position: relative; z-index: 2; }
.mini-step::before { content:""; position: absolute; top: 22px; left: -50%; width: 100%; height: 2px; background: var(--gray); z-index: 1; }
.mini-step:first-child::before { display: none; }
.mini-step p { font-size: 14px; color: var(--ink); font-weight: 500; }
.confirm-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.share-row { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--gray); }
.share-row .sr-label { font-size: 14px; color: #66708a; margin-bottom: 14px; }
.share-row .sr-btns { display: flex; gap: 12px; justify-content: center; }
.share-row .sr-btns a { width: 46px; height: 46px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--navy); transition: var(--ease); }
.share-row .sr-btns a:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.share-row .sr-btns svg { width: 20px; height: 20px; }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; opacity: .9; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .field-row, .salary-amount { grid-template-columns: 1fr; display: grid; }
  .wiz-card { padding: 26px 20px; }
  .wiz-pstep .plabel { display: none; }
  .benefits { grid-template-columns: 1fr; margin-top: var(--s4); }
  .proof-strip .p-item { padding: 14px 24px; border-right: none; }
  .review-row { grid-template-columns: 1fr; gap: 2px; }
  .review-row .rk { font-size: 13px; }
  .salary-amount { display: flex; }
  .salary-cur { width: 110px; }
}

/* ---------- Phone with country dial code ---------- */
.phone-widget { display: flex; gap: 8px; }
.phone-widget .dial-select {
  flex: none; width: 118px; font-family: var(--body); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--gray); border-radius: 9px; padding: 13px 10px;
  cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.phone-widget .dial-select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,.15); }
.phone-widget .input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .phone-widget .dial-select { width: 102px; padding: 13px 6px; font-size: 14px; } }
