/* ===== CONTRACT REQUEST FORM — Module 05A ===== */

.wdf-cr-page { padding-block: var(--wdf-space-9) var(--wdf-space-8); max-width: 820px; }
.wdf-cr-page__head { margin-bottom: var(--wdf-space-6); }
.wdf-cr-page__head p { font-size: 16px; }

.wdf-cr-form { display: flex; flex-direction: column; gap: var(--wdf-space-6); }

.wdf-cr-section {
  border: 1px solid var(--wdf-border);
  border-radius: var(--wdf-radius-md);
  padding: var(--wdf-space-5);
  margin: 0;
}
.wdf-cr-section legend {
  display: flex;
  align-items: center;
  gap: var(--wdf-space-3);
  font-size: 16px;
  font-weight: 700;
  color: var(--wdf-navy);
  padding: 0 var(--wdf-space-2);
}
.wdf-cr-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--wdf-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.wdf-cr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--wdf-space-4);
}

.wdf-cr-field { display: flex; flex-direction: column; gap: 6px; margin-top: var(--wdf-space-4); }
.wdf-cr-grid .wdf-cr-field { margin-top: 0; }
.wdf-cr-field label { font-size: 13.5px; font-weight: 600; color: var(--wdf-navy); }
.wdf-cr-field .req { color: #D64545; }

.wdf-cr-field input[type="text"],
.wdf-cr-field input[type="email"],
.wdf-cr-field input[type="tel"],
.wdf-cr-field select,
.wdf-cr-field textarea,
#package_id {
  font-family: var(--wdf-font);
  font-size: 14px;
  color: var(--wdf-ink);
  padding: 11px 14px;
  border: 1px solid var(--wdf-border);
  border-radius: var(--wdf-radius-sm);
  background: #fff;
  width: 100%;
}
.wdf-cr-field input:focus,
.wdf-cr-field select:focus,
.wdf-cr-field textarea:focus,
#package_id:focus {
  outline: 2px solid var(--wdf-blue);
  outline-offset: 1px;
  border-color: var(--wdf-blue);
}

.wdf-cr-error { color: #D64545; font-size: 12.5px; }
.wdf-cr-alert {
  background: #FDEDED;
  border: 1px solid #F3B9B9;
  color: #B3261E;
  border-radius: var(--wdf-radius-sm);
  padding: 12px 16px;
  font-size: 14px;
}

/* honeypot — off-screen, not display:none (more effective against bots) */
.wdf-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* package panels */
.wdf-cr-pkg-panel {
  margin-top: var(--wdf-space-4);
  padding: var(--wdf-space-4);
  background: var(--wdf-sky);
  border-radius: var(--wdf-radius-sm);
}
.wdf-cr-pkg-panel__title { font-weight: 700; color: var(--wdf-navy); margin: 0 0 6px; font-size: 14px; }
.wdf-cr-pkg-panel__note { font-size: 13px; color: var(--wdf-slate); margin: 0 0 8px; }
.wdf-cr-pkg-panel__note--sub { font-size: 12px; color: var(--wdf-slate-light); margin: 8px 0 0; }
.wdf-cr-pkg-panel__link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--wdf-blue);
  text-decoration: underline;
}
.wdf-cr-pkg-panel__guarantee {
  margin-top: var(--wdf-space-3);
  background: var(--wdf-sky-mid);
  border: 1.5px solid var(--wdf-blue);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--wdf-navy);
}
.wdf-cr-pkg-panel__guarantee p { font-size: 12px; color: var(--wdf-slate); margin: 4px 0 0; }

/* consent */
.wdf-cr-section--consent { display: flex; flex-direction: column; gap: var(--wdf-space-3); }
.wdf-cr-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--wdf-slate);
  cursor: pointer;
}
.wdf-cr-checkbox input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.wdf-cr-checkbox a { color: var(--wdf-blue); text-decoration: underline; }

/* success block */
.wdf-cr-success { text-align: center; padding: var(--wdf-space-8) var(--wdf-space-5); }
.wdf-cr-success__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--wdf-wa-green);
  color: #fff;
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--wdf-space-5);
}
.wdf-cr-success h1 { font-size: 26px; }
.wdf-cr-success__ref {
  display: inline-block;
  background: var(--wdf-sky);
  border-radius: var(--wdf-radius-sm);
  padding: 10px 20px;
  font-size: 15px;
  margin: var(--wdf-space-4) 0 var(--wdf-space-5);
}

@media (max-width: 700px) {
  .wdf-cr-grid { grid-template-columns: 1fr; }
  .wdf-cr-page { padding-block: var(--wdf-section-pad-mobile); }
}

/* v1.9.3 — Contract request visual form */
.wdf-cr-page { max-width: 1180px; }
.wdf-cr-page__head { text-align: right; margin-bottom: 34px; }
.wdf-cr-page__head h1 { font-size: clamp(30px,4vw,48px); margin-bottom: 10px; color: var(--wdf-navy); }
.wdf-cr-form { gap: 22px; }
.wdf-cr-section {
  background: #fff;
  border: 1px solid #d8e5f0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 42, 70, .06);
  padding: 26px;
}
.wdf-cr-section legend { font-size: 18px; padding-inline: 10px; }
.wdf-cr-section__num { width: 34px; height: 34px; font-size: 12px; background: linear-gradient(135deg,var(--wdf-blue),var(--wdf-navy)); }
.wdf-cr-choice-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:18px; }
.wdf-cr-choice, .wdf-cr-service {
  display:flex; align-items:center; gap:10px; min-height:52px; padding:12px 14px;
  border:1px solid #d8e5f0; border-radius:12px; background:#f8fbfe; cursor:pointer;
}
.wdf-cr-choice:has(input:checked), .wdf-cr-service:has(input:checked) {
  border-color:var(--wdf-blue); background:var(--wdf-sky); box-shadow:0 5px 16px rgba(25,125,200,.10);
}
.wdf-cr-choice input, .wdf-cr-service input { width:18px; height:18px; accent-color:var(--wdf-blue); }
.wdf-cr-services { margin-top:22px; }
.wdf-cr-services__title { font-weight:800; color:var(--wdf-navy); margin:0 0 12px; }
.wdf-cr-services__grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.wdf-cr-service { font-size:14px; }
.wdf-cr-submit { min-height:54px; font-size:16px; }
.wdf-cr-success { max-width:760px; margin:30px auto; background:#fff; border:1px solid #d8e5f0; border-radius:22px; box-shadow:0 15px 40px rgba(15,42,70,.08); }
.wdf-cr-success__note { margin-top:14px; font-size:13px; color:var(--wdf-slate); }
@media (max-width:700px) {
  .wdf-cr-choice-grid,.wdf-cr-services__grid { grid-template-columns:1fr; }
  .wdf-cr-section { padding:20px 16px; }
}

/* v1.9.4 — dynamic employee positions + PDF action */
.wdf-cr-field input[type="number"] { font-family: var(--wdf-font); font-size: 14px; color: var(--wdf-ink); padding: 11px 14px; border: 1px solid var(--wdf-border); border-radius: var(--wdf-radius-sm); background: #fff; width: 100%; box-sizing: border-box; }
.wdf-cr-job-requirements { margin-top: 20px; padding: 18px; border: 1px dashed #a9c6dc; border-radius: 14px; background: #f7fbfe; }
.wdf-cr-job-requirements__head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:14px; }
.wdf-cr-job-requirements__head strong { display:block; color:var(--wdf-navy); }
.wdf-cr-job-requirements__head small { display:block; margin-top:4px; color:var(--wdf-slate); }
.wdf-cr-add-job { border:0; background:var(--wdf-blue); color:#fff; border-radius:9px; padding:10px 14px; font-weight:700; cursor:pointer; }
.wdf-cr-job-rows { display:flex; flex-direction:column; gap:10px; }
.wdf-cr-job-row { display:grid; grid-template-columns:minmax(0,1.2fr) 150px minmax(0,2fr) 42px; gap:10px; align-items:start; padding:12px; background:#fff; border:1px solid #d8e5f0; border-radius:12px; }
.wdf-cr-job-row__field { min-width:0; }
.wdf-cr-job-row__field label { display:block; margin:0 0 6px; font-size:12px; font-weight:800; color:var(--wdf-navy); }
.wdf-cr-job-row input, .wdf-cr-job-row textarea { width:100%; box-sizing:border-box; padding:11px 12px; border:1px solid var(--wdf-border); border-radius:9px; font-family:var(--wdf-font); background:#fff; }
.wdf-cr-job-row textarea { min-height:88px; resize:vertical; line-height:1.7; }
.wdf-cr-remove-job { margin-top:24px; }
.wdf-cr-remove-job { width:42px; height:42px; border:1px solid #e3b6b6; background:#fff; color:#b3261e; border-radius:9px; font-size:20px; cursor:pointer; }
.wdf-cr-pdf-btn { display:inline-flex; align-items:center; justify-content:center; margin:12px 8px 0; min-height:52px; padding:0 22px; border-radius:10px; background:#eef6fc; color:var(--wdf-navy); border:1px solid #c9deec; font-weight:800; text-decoration:none; }
.wdf-cr-pdf-btn:hover { background:var(--wdf-sky); }
.wdf-cr-success .wdf-btn { margin-inline:8px; }
@media (max-width:700px) {
  .wdf-cr-job-requirements__head { align-items:flex-start; flex-direction:column; }
  .wdf-cr-job-row { grid-template-columns:1fr 100px; }
  .wdf-cr-job-row__description { grid-column:1 / -1; }
  .wdf-cr-remove-job { grid-column:2; grid-row:1; justify-self:end; margin-top:24px; }
  .wdf-cr-pdf-btn { width:100%; margin:12px 0 0; box-sizing:border-box; }
  .wdf-cr-success .wdf-btn { width:100%; margin:0; }
}

/* v1.9.7 — branded contract confirmation */
.wdf-cr-success__brand { position:relative; overflow:hidden; padding:16px 14px 12px; margin:-18px -18px 22px; border-bottom:3px solid #1878c4; background:#fff; }
.wdf-cr-success__brand:before { content:''; position:absolute; left:-35px; top:-70px; width:260px; height:140px; background:linear-gradient(145deg,#0b43a5 0%,#123e8f 58%,#f3a20b 59%,#f3a20b 66%,transparent 67%); transform:rotate(-7deg); }
.wdf-cr-success__brand img { position:relative; z-index:1; display:block; width:min(300px,78%); height:auto; margin:0 auto; }
.wdf-cr-success__brand span { position:relative; z-index:1; display:block; color:#1878c4; font-size:12px; font-weight:800; margin-top:2px; }
.wdf-cr-success__meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; max-width:680px; margin:0 auto 22px; }
.wdf-cr-success__meta > div { background:#eef6fc; border:1px solid #d6e7f3; border-radius:12px; padding:12px 16px; }
.wdf-cr-success__meta span { display:block; font-size:12px; color:var(--wdf-slate); margin-bottom:4px; }
.wdf-cr-success__meta strong { display:block; color:var(--wdf-blue); font-size:16px; }
@media(max-width:700px){ .wdf-cr-success__meta{grid-template-columns:1fr;} .wdf-cr-success__brand{margin:-14px -10px 18px;} }


/* v1.9.8 — contract header + optional company identity */
.wdf-cr-company-logo-field {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 16px 18px;
  border: 1px dashed #b9d2e4;
  border-radius: 14px;
  background: linear-gradient(180deg,#fbfdff,#f5faff);
}
.wdf-cr-company-logo-field label { display:block; font-size:14px; font-weight:800; color:var(--wdf-navy); margin-bottom:8px; }
.wdf-cr-company-logo-field input[type=file] { width:100%; box-sizing:border-box; padding:11px; border:1px solid #d8e5f0; border-radius:10px; background:#fff; font-family:var(--wdf-font); }
.wdf-cr-company-logo-field small { display:block; margin-top:7px; color:var(--wdf-slate); font-size:12px; }
.wdf-cr-success__brand { display:grid; grid-template-columns:1fr 1.25fr; align-items:center; gap:22px; text-align:center; }
.wdf-cr-success__brand-main { position:relative; z-index:1; }
.wdf-cr-success__brand-main img { display:block; width:min(330px,100%); height:auto; margin:0 auto; }
.wdf-cr-success__brand-main span { display:block; color:#1878c4; font-size:12px; font-weight:800; margin-top:2px; }
.wdf-cr-success__company { min-height:118px; border:2px dashed #c9deec; border-radius:14px; display:flex; align-items:center; justify-content:center; padding:12px; background:rgba(255,255,255,.82); }
.wdf-cr-success__company img { max-width:100%; max-height:105px; width:auto; height:auto; object-fit:contain; }
.wdf-cr-success__company-placeholder { color:#7b8c9c; font-size:13px; font-weight:700; }
@media(max-width:700px){
  .wdf-cr-success__brand { grid-template-columns:1fr; }
  .wdf-cr-success__company { min-height:90px; }
}

/* v1.9.8 — premium contract request header */
.wdf-cr-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 34px;
  min-height: 360px;
  padding: 34px 42px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg,#fff 0%,#fff 63%,#f4f8fc 100%);
  border: 1px solid #dce8f2;
  box-shadow: 0 18px 45px rgba(10,37,64,.10);
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: center;
  gap: 24px;
}
.wdf-cr-hero__curve {
  position:absolute; left:-110px; top:-130px; width:430px; height:360px;
  background:linear-gradient(135deg,#0b43a5 0%,#123e8f 66%,#f3a20b 67%,#f3a20b 72%,transparent 73%);
  transform:rotate(-8deg); opacity:.98;
}
.wdf-cr-hero__curve:after {
  content:""; position:absolute; left:35px; top:35px; width:250px; height:220px;
  border:3px solid #f3a20b; border-right:0; border-top:0; border-radius:0 0 0 130px;
  opacity:.9;
}
.wdf-cr-hero__brand,.wdf-cr-hero__title,.wdf-cr-hero__company { position:relative; z-index:2; text-align:center; }
.wdf-cr-hero__brand img { display:block; width:min(300px,100%); max-height:145px; object-fit:contain; margin:0 auto; }
.wdf-cr-hero__brand span { display:block; margin-top:4px; color:var(--wdf-blue); font-size:15px; font-weight:800; }
.wdf-cr-hero__title { display:flex; flex-direction:column; align-items:center; gap:5px; }
.wdf-cr-hero__title strong { color:var(--wdf-navy); font-size:clamp(38px,5vw,60px); line-height:1.05; }
.wdf-cr-hero__title b { color:#df8a08; font-size:clamp(22px,2.6vw,34px); line-height:1.25; }
.wdf-cr-hero__title small { color:var(--wdf-navy); font-size:15px; font-weight:700; margin-top:8px; }
.wdf-cr-hero__company { min-height:150px; border:2px solid #1645a1; border-radius:20px; background:rgba(255,255,255,.9); display:flex; align-items:center; justify-content:center; padding:20px; box-sizing:border-box; }
.wdf-cr-hero__company:before { content:""; position:absolute; inset:9px; border:1px dashed #c5d7e5; border-radius:13px; }
.wdf-cr-hero__company span { position:relative; z-index:1; color:#7b8c9c; font-weight:800; font-size:14px; }
@media(max-width:900px){
  .wdf-cr-hero { grid-template-columns:1fr 1fr; min-height:0; padding:28px 24px; }
  .wdf-cr-hero__title { grid-column:1 / -1; grid-row:1; }
  .wdf-cr-hero__brand { grid-column:1; grid-row:2; }
  .wdf-cr-hero__company { grid-column:2; grid-row:2; }
}
@media(max-width:600px){
  .wdf-cr-hero { grid-template-columns:1fr; padding:28px 18px 24px; gap:18px; }
  .wdf-cr-hero__title,.wdf-cr-hero__brand,.wdf-cr-hero__company { grid-column:1; grid-row:auto; }
  .wdf-cr-hero__title strong { font-size:42px; }
  .wdf-cr-hero__title b { font-size:24px; }
  .wdf-cr-hero__company { min-height:120px; }
}

/* v1.9.11 — official Wadaif-only contract header */

/* v1.9.11 — official Wadaif-only contract header */
.wdf-cr-hero {
  grid-template-columns: 1fr;
  min-height: 0;
  padding: 42px 44px 34px;
  gap: 10px;
  text-align: center;
  background: linear-gradient(135deg,#ffffff 0%,#ffffff 68%,#f5f9fd 100%);
}
.wdf-cr-hero__brand,
.wdf-cr-hero__title { grid-column: 1; }
.wdf-cr-hero__brand { order: 1; }
.wdf-cr-hero__title { order: 2; }
.wdf-cr-hero__brand img {
  width: min(390px, 78%);
  max-height: 150px;
  margin: 0 auto;
}
.wdf-cr-hero__brand span {
  margin-top: 5px;
  font-size: 15px;
  color: var(--wdf-blue);
}
.wdf-cr-hero__title { gap: 4px; }
.wdf-cr-hero__title strong {
  font-size: clamp(42px,5vw,58px);
  line-height: 1.05;
}
.wdf-cr-hero__title b {
  font-size: clamp(24px,3vw,34px);
  line-height: 1.2;
}
.wdf-cr-hero__title small {
  margin-top: 8px;
  font-size: 15px;
}
@media(max-width:600px){
  .wdf-cr-hero { padding: 28px 18px 24px; }
  .wdf-cr-hero__brand img { width:min(330px,90%); }
  .wdf-cr-hero__title strong { font-size:42px; }
  .wdf-cr-hero__title b { font-size:24px; }
}

/* v1.9.11 — success page uses Wadaif branding only */
.wdf-cr-success__brand {
  display:block;
  position:relative;
  overflow:hidden;
  padding:16px 14px 14px;
  margin:-18px -18px 22px;
  border-bottom:3px solid #1878c4;
  background:#fff;
  text-align:center;
}
.wdf-cr-success__brand:before {
  content:'';
  position:absolute;
  left:-35px; top:-70px;
  width:260px; height:140px;
  background:linear-gradient(145deg,#0b43a5 0%,#123e8f 58%,#f3a20b 59%,#f3a20b 66%,transparent 67%);
  transform:rotate(-7deg);
}
.wdf-cr-success__brand-main { position:relative; z-index:1; }
.wdf-cr-success__brand-main img {
  display:block;
  width:min(330px,78%);
  max-height:145px;
  height:auto;
  object-fit:contain;
  margin:0 auto;
}
.wdf-cr-success__brand-main span {
  display:block;
  color:#1878c4;
  font-size:12px;
  font-weight:800;
  margin-top:3px;
}


/* v1.9.14 — recruitment details total count only */
.wdf-cr-hero {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:0;
  min-height:0;
  margin-bottom:30px;
  padding:34px 24px 26px;
  border:0;
  border-radius:0;
  background:#fff;
  box-shadow:none;
  text-align:center;
  overflow:visible;
}
.wdf-cr-hero__curve,.wdf-cr-hero__company { display:none !important; }
.wdf-cr-hero__brand { order:1; width:100%; text-align:center; }
.wdf-cr-hero__brand img { display:block; width:min(360px,62vw); max-height:150px; height:auto; object-fit:contain; margin:0 auto; }
.wdf-cr-hero__brand span { display:block; margin-top:7px; color:#1878c4; font-size:22px; font-weight:800; line-height:1.35; }
.wdf-cr-hero__line { order:2; width:100%; height:3px; margin:18px 0 20px; background:#1878c4; }
.wdf-cr-hero__contract-title { order:3; color:#0a2540; font-size:clamp(30px,4vw,48px); font-weight:900; line-height:1.2; }
.wdf-cr-hero__meta { order:4; display:flex; justify-content:center; align-items:center; gap:38px; margin-top:16px; color:#0a2540; }
.wdf-cr-hero__meta > div { display:flex; align-items:baseline; gap:7px; }
.wdf-cr-hero__meta span { font-size:18px; font-weight:700; }
.wdf-cr-hero__meta strong { color:#1878c4; font-size:21px; font-weight:900; }
.wdf-cr-contract-footer { margin:34px 0 20px; padding:18px 20px; border-top:3px solid #1878c4; background:#0a2540; color:#fff; text-align:center; border-radius:12px; line-height:1.9; }
.wdf-cr-contract-footer__phones { font-size:16px; font-weight:800; direction:ltr; }
.wdf-cr-contract-footer__contact { font-size:14px; font-weight:700; direction:ltr; }
.wdf-cr-contract-footer__address { font-size:14px; color:#b9d7ec; }
.page-template-template-contract-request .wdf-footer { display:none !important; }
.wdf-cr-field[hidden], .wdf-cr-job-requirements[hidden] { display:none !important; }
@media(max-width:700px){
  .wdf-cr-hero { padding:24px 16px 22px; }
  .wdf-cr-hero__brand img { width:min(300px,82vw); }
  .wdf-cr-hero__brand span { font-size:18px; }
  .wdf-cr-hero__contract-title { font-size:30px; }
  .wdf-cr-hero__meta { flex-direction:column; gap:8px; }
  .wdf-cr-hero__meta span { font-size:15px; }
  .wdf-cr-hero__meta strong { font-size:17px; }
}

/* v1.9.16 — confirmation page: no duplicate contract branding */
.wdf-cr-success__brand { display:none !important; }


/* v1.9.24 — mobile navigation opens BELOW the site header */
@media (max-width: 900px) {
  .wdf-mobile-nav { top: var(--wdf-mobile-nav-top, 72px); bottom: 0; }
}

/* v1.9.24 — contract footer phone numbers stay in one LTR row when possible */
.wdf-cr-contract-footer__phones,
.wdf-cr-contract-footer__contact { direction: ltr; unicode-bidi: isolate; }


/* v1.9.25 — show saved recruitment requirements on confirmation */
.wdf-cr-success__jobs { max-width:760px; margin:0 auto 22px; padding:16px; text-align:right; background:#f7fbfe; border:1px solid #d6e7f3; border-radius:14px; }
.wdf-cr-success__jobs h2 { margin:0 0 10px; color:#0a2540; font-size:19px; }
.wdf-cr-success__employees { margin-bottom:10px; color:#53677a; font-size:14px; }
.wdf-cr-success__employees strong { color:#1878c4; }
.wdf-cr-success__jobs-list { display:grid; gap:8px; }
.wdf-cr-success__job { padding:10px 12px; background:#fff; border:1px solid #dbe7ef; border-radius:10px; color:#304b63; line-height:1.8; }
.wdf-cr-success__job b { color:#0a2540; }
