/* ================================================================
   Yaki Ya! — Apply Form Modal CSS v2.3
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap');

@font-face { font-family:'Yakiya DIN';src:url('../fonts/D-DINCondensed.woff2') format('woff2');font-style:normal;font-weight:400 700;font-display:swap; }
@font-face { font-family:'Yakiya DIN';src:url('../fonts/D-DINCondensed-Bold.woff2') format('woff2');font-style:normal;font-weight:800 900;font-display:swap; }

:root {
  --yc-red:    #FF0000;
  --yc-red-dk: #cc0000;
  --yc-dark:   #111111;
  --yc-white:  #ffffff;
  --yc-gray:   #aaaaaa;
  --yc-din:    'Yakiya DIN',"DIN Condensed","DINAlternate-Bold","Arial Narrow",sans-serif;
  --yc-body:   "Open Sans",-apple-system,sans-serif;
}

.yc-form-wrap, .yc-form-wrap * { box-sizing: border-box; }

/* ── Trigger button — pixel-perfect match to Elementor hero button
   Elementor typography panel: Family=DIN, Size=20px, Weight=Default,
   Transform=Default, Letter Spacing=Default (0), Line Height=Default
   Astra global button: padding 15px 35px, border-radius 2px, line-height 1em
── */
.yc-trigger-btn {
  font-family: var(--yc-din) !important;
  font-weight: 800 !important;
  font-size: 20px !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  padding: 15px 35px !important;
  border-radius: 2px !important;
  border: none !important;
  background: #FF0000 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  display: inline-block !important;
  transition: background .2s, color .2s !important;
  line-height: 1em !important;
  text-decoration: none !important;
}
.yc-trigger-btn:hover,
.yc-trigger-btn:focus {
  background: #ffffff !important;
  color: #FF0000 !important;
  outline: none !important;
}

/* ── Overlay ── */
.yc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  /* NO overflow here — scroll lives in .yc-modal-body only */
  overflow: hidden;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.yc-overlay.open { display: flex; }

/* ── Modal ── */
.yc-modal {
  background: var(--yc-dark);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 3px solid #FF0000;
  width: 100%;
  max-width: 560px;
  /* Modal sits centred, constrained to viewport height */
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  animation: ycSlide .28s cubic-bezier(.16,1,.3,1);
  font-family: var(--yc-body);
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  /* Ensure clicks inside modal don't bubble to overlay */
  pointer-events: auto;
}
@keyframes ycSlide {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ── Modal header ── */
.yc-modal-head {
  background: #000;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  flex-shrink: 0; /* never squish — always full height */
  border-bottom: 1px solid rgba(255,255,255,.08);
}
/* Official logo PNG - white text on black background
   The PNG has black bg so it blends seamlessly into the black modal header */
.yc-modal-logo {
  width: min(136px, 32vw);
  max-width: 136px;
  max-height: 30px;
  height: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: left center;
}
/* Title + subtitle stack — takes remaining space, never wraps */
.yc-modal-head-info {
  flex: 1;
  min-width: 0;
}
.yc-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.yc-modal-title {
  font-family: var(--yc-din);
  font-size: 16px;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.yc-modal-sub {
  font-size: 12px;
  color: var(--yc-gray);
  margin-top: 3px;
  white-space: nowrap;
}

/* ── Close button — flex-centred, BOTH desktop & mobile ── */
.yc-modal-close {
  margin-left: auto !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: #fff !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: background .2s, color .2s !important;
  /* override any Astra/WP global button styles */
  min-height: unset !important;
  min-width: unset !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.yc-modal-close:hover,
.yc-modal-close:focus {
  background: #ffffff !important;
  color: #FF0000 !important;
  outline: none !important;
}

/* ── Progress ── */
.yc-progress-bar  { height: 3px; background: rgba(255,255,255,.07); }
.yc-progress-fill { height: 100%; background: #FF0000; transition: width .4s ease; }

/* ── Modal body ── */
.yc-modal-body {
  padding: 24px 24px 18px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* Modal body scrolls, not the overlay */
  scrollbar-width: thin;
  scrollbar-color: #FF0000 #1a1a1a;
}
.yc-modal-body::-webkit-scrollbar { width: 4px; }
.yc-modal-body::-webkit-scrollbar-track { background: #1a1a1a; }
.yc-modal-body::-webkit-scrollbar-thumb { background: #FF0000; border-radius: 2px; }

/* ── Steps ── */
.yc-step        { display: none; }
.yc-step.active { display: block; }
.yc-step-tag {
  font-family: var(--yc-din);
  font-size: 11px;
  letter-spacing: 2px;
  color: #FF0000;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}

/* ── Error (above step content) ── */
.yc-error {
  display: none;
  border-left: 3px solid #FF0000;
  background: rgba(255,0,0,.09);
  padding: 10px 14px;
  font-size: 13px;
  color: #ff8080;
  margin-bottom: 14px;
  line-height: 1.4;
  font-family: var(--yc-body);
}

/* ── Fields ── */
.yc-field { margin-bottom: 14px; }
.yc-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #C7C7C7;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
}
.yc-field input[type=text],
.yc-field input[type=email],
.yc-field input[type=tel],
.yc-field input[type=date],
.yc-field select,
.yc-field textarea {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  padding: 12px 13px;
  font-family: var(--yc-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  border-radius: 8px;
  -webkit-appearance: none;
}
.yc-field select {
  background-color: #1c1c1c;
  cursor: pointer;
}
.yc-field select option { background: #1c1c1c; color: #fff; }
.yc-field input:focus,
.yc-field select:focus,
.yc-field textarea:focus { border-color: #FF0000; box-shadow: 0 0 0 2px rgba(255,0,0,.15); }

/* ── Invalid field highlight + shake ── */
.yc-field input.yc-invalid,
.yc-field select.yc-invalid,
.yc-field textarea.yc-invalid {
  border-color: #FF0000 !important;
  box-shadow: 0 0 0 2px rgba(255,0,0,.2) !important;
  animation: ycShake .3s ease;
}
.yc-choice-btn.yc-invalid,
.yc-avail-grid.yc-invalid .yc-avail,
.yc-radio-row.yc-invalid .yc-radio,
.yc-check-grid.yc-invalid .yc-check,
.yc-consent-wrap.yc-invalid {
  border-color: rgba(255,0,0,.6) !important;
  animation: ycShake .3s ease;
}
.yc-field-error label { color: #ff8080; }
@keyframes ycShake {
  0%,100% { transform: translateX(0); }
  25%     { transform: translateX(-5px); }
  75%     { transform: translateX(5px); }
}

.yc-field textarea { resize: vertical; min-height: 70px; }
.yc-field input[type=file] { font-size: 13px; color: var(--yc-gray); padding: 8px 12px; }
.yc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.req { color: #FF0000; }
.yc-opt { color: rgba(255,255,255,.3); font-weight: 400; text-transform: none; letter-spacing: 0; }
.yc-hint { font-size: 13px; color: var(--yc-gray); line-height: 1.5; margin-bottom: 14px; font-family: var(--yc-body); }
.yc-inline-note { font-size: 12px; color: #b9b9b9; line-height: 1.55; margin: 8px 0 0; font-family: var(--yc-body); }

/* ── Creator / Connector ── */
.yc-role-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 6px; }
.yc-choice-btn {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  padding: 16px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: all .2s;
  font-family: var(--yc-body);
  border-radius: 10px;
  text-align: center;
}
.yc-choice-btn:hover  { border-color: rgba(255,0,0,.5); background: rgba(255,0,0,.04); }
.yc-choice-btn.selected { border-color: #FF0000; background: rgba(255,0,0,.1); box-shadow: 0 10px 20px rgba(255,0,0,.08); }
.yc-choice-icon { font-size: 24px; }
.yc-choice-btn strong { font-family: var(--yc-din); letter-spacing: 1px; font-size: 14px; text-transform: uppercase; }
.yc-choice-btn span   { font-size: 11px; color: var(--yc-gray); }

/* ── Work status ── */
.yc-radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.yc-radio {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  color: #fff;
  font-family: var(--yc-body);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.yc-radio input { accent-color: #FF0000; }
.yc-radio:hover { border-color: rgba(255,0,0,.45); }
.yc-radio:has(input:checked) { border-color: #FF0000; background: rgba(255,0,0,.08); box-shadow: 0 8px 18px rgba(255,0,0,.08); }
.yc-work-extra {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.015) 100%);
}
.yc-iqama-stop {
  border: 1px solid rgba(255, 180, 0, .5);
  background: rgba(255, 180, 0, .08);
  color: #ffc247;
  padding: 16px;
  margin: 12px 0;
  border-radius: 10px;
}
.yc-iqama-stop-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #ffc247;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--yc-din);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}
.yc-iqama-stop p {
  margin: 0;
  color: #ffc247;
  line-height: 1.55;
}

/* ── Availability ── */
.yc-avail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.yc-avail {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.1);
  padding: 10px 11px;
  cursor: pointer;
  font-size: 13px; color: #fff;
  transition: all .2s;
  font-family: var(--yc-body);
  border-radius: 10px;
}
.yc-avail input { accent-color: #FF0000; }
.yc-avail:has(input:checked) { border-color: #FF0000; background: rgba(255,0,0,.07); }

.yc-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}
.yc-check-grid.yc-invalid {
  border-color: rgba(255,0,0,.6) !important;
  animation: ycShake .3s ease;
}
.yc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 10px 11px;
  color: #fff;
  cursor: pointer;
}
.yc-check input { accent-color: #FF0000; }

/* ── File ── */
.yc-file-wrap {
  border: 1px dashed rgba(255,255,255,.18);
  padding: 14px;
  transition: border-color .2s, background .2s;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.yc-file-wrap:hover { border-color: #FF0000; }
.yc-file-wrap.yc-invalid { border-color: #FF0000 !important; border-style: solid !important; box-shadow: 0 0 0 2px rgba(255,0,0,.2) !important; animation: ycShake .3s ease; }
.yc-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.yc-file-trigger {
  margin: 0 !important;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: #FF0000;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--yc-din) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  white-space: nowrap;
}
.yc-file-trigger:hover {
  background: #fff;
  color: #FF0000 !important;
}
.yc-file-name {
  min-width: 0;
  color: #D7D7D7;
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yc-file-error {
  display: none;
  margin: 8px 0 0;
  color: #ff8080;
  font-size: 14px;
  line-height: 1.45;
}

/* ── Consent ── */
.yc-consent-wrap { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.07); padding: 14px; margin-top: 12px; border-radius: 10px; }
.yc-consent-wrap.yc-invalid { border-color: rgba(255,0,0,.5); animation: ycShake .3s ease; }
/* Row 1: simple label wrapping checkbox + span */
.yc-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--yc-gray); line-height: 1.55; cursor: pointer; margin-bottom: 10px; font-family: var(--yc-body); }
.yc-consent:last-child { margin-bottom: 0; }
.yc-consent input[type=checkbox] { accent-color: #FF0000; margin-top: 2px; flex-shrink: 0; width: 15px; height: 15px; cursor: pointer; }
.yc-consent span { display: block; }
/* Row 2: GDPR — div wrapper, checkbox + label side by side */
.yc-consent-gdpr { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 0; }
.yc-consent-gdpr input[type=checkbox] { accent-color: #FF0000; margin-top: 3px; flex-shrink: 0; width: 15px; height: 15px; cursor: pointer; }
.yc-consent-text { font-size: 13px; color: var(--yc-gray); line-height: 1.55; font-family: var(--yc-body); cursor: pointer; display: block; }
.yc-consent-text a { color: #FF0000 !important; text-decoration: underline !important; }
.yc-consent-text a:hover { color: #ff4444 !important; }

/* ── Footer ── */
.yc-modal-foot {
  padding: 14px 22px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #080808;
}
.yc-back-btn {
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,.35) !important;
  font-family: var(--yc-din) !important;
  font-size: 13px !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  visibility: hidden;
  transition: color .2s !important;
  text-transform: uppercase !important;
  padding: 0 !important;
  line-height: 1 !important;
  min-height: unset !important;
}
.yc-back-btn:hover { color: #fff !important; }
.yc-back-btn.visible { visibility: visible; }

.yc-next-btn {
  font-family: var(--yc-din) !important;
  font-weight: 400 !important;
  font-size: 15px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 13px 28px !important;
  border: none !important;
  border-radius: 8px !important;
  background: #FF0000 !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: background .2s, color .2s !important;
  line-height: 1em !important;
  min-height: unset !important;
  box-shadow: 0 10px 24px rgba(255,0,0,.18);
}
.yc-next-btn:hover,
.yc-next-btn:focus { background: #ffffff !important; color: #FF0000 !important; outline: none !important; }
.yc-next-btn:disabled { background: #333 !important; color: #666 !important; cursor: not-allowed !important; }

/* ── Loading spinner on submit ── */
.yc-next-btn.yc-loading {
  background: #222 !important;
  color: #FF0000 !important;
  cursor: wait !important;
  position: relative !important;
}
.yc-next-btn.yc-loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,0,0,.2);
  border-top-color: #FF0000;
  border-radius: 50%;
  animation: ycSpin .7s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}
@keyframes ycSpin { to { transform: rotate(360deg); } }

/* ── Success ── */
.yc-success { text-align: center; padding: 48px 24px; }
.yc-success-icon  { font-size: 44px; margin-bottom: 14px; }
.yc-success-title { font-family: var(--yc-din); font-size: 2rem; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 12px; }
.yc-success p     { color: var(--yc-gray); font-size: 15px; line-height: 1.65; font-family: var(--yc-body); }

/* Command controls use the bundled DIN face; field content remains in the body font. */
.yc-trigger-btn,
.yc-form-wrap button,
.yc-form-wrap [role="button"] {
  font-family: var(--yc-din) !important;
}
.yc-success strong { color: #fff; }

/* Final readability pass: lift body/helper text without changing the modal layout. */
.yc-form-wrap .yc-hint,
.yc-form-wrap .yc-inline-note,
.yc-form-wrap .yc-consent,
.yc-form-wrap .yc-consent-text,
.yc-form-wrap .yc-iqama-stop p,
.yc-form-wrap .yc-error {
  font-size: 14px !important;
  line-height: 1.55 !important;
}
.yc-form-wrap .yc-field label,
.yc-form-wrap .yc-step-tag {
  font-size: 13px !important;
}
.yc-form-wrap .yc-field input,
.yc-form-wrap .yc-field select,
.yc-form-wrap .yc-field textarea,
.yc-form-wrap .yc-radio {
  font-size: 15px !important;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .yc-overlay      { padding: 12px 10px; align-items: center; }
  .yc-modal        { max-height: calc(100vh - 24px); border-radius: 12px 12px 0 0; }
  .yc-modal-head   { gap: 10px; padding: 12px 14px; }
  .yc-modal-logo   { width: min(122px, 42vw); max-width: 122px; max-height: 28px; }
  .yc-modal-body   { padding: 16px 14px 12px; }
  .yc-field-row    { grid-template-columns: 1fr; }
  .yc-radio-row    { grid-template-columns: 1fr; }
  .yc-avail-grid   { grid-template-columns: 1fr 1fr; }
  .yc-modal-foot   { padding: 10px 14px; }
  .yc-next-btn     { padding: 11px 18px !important; font-size: 13px !important; }
  .yc-modal-title  { white-space: normal; }
  .yc-modal-sub    { white-space: normal; }
  .yc-file-wrap    { align-items: stretch; flex-direction: column; }
  .yc-file-trigger { width: 100%; }
  .yc-file-name    { white-space: normal; }
}

/* Final DIN lock for the apply modal. */
.yc-form-wrap,
.yc-form-wrap * {
  font-family: var(--yc-din) !important;
}

.yc-form-wrap .yc-hint,
.yc-form-wrap .yc-inline-note,
.yc-form-wrap .yc-consent,
.yc-form-wrap .yc-consent-text,
.yc-form-wrap .yc-iqama-stop p,
.yc-form-wrap .yc-error {
  font-size: 17px !important;
}

.yc-form-wrap .yc-field input,
.yc-form-wrap .yc-field select,
.yc-form-wrap .yc-field textarea,
.yc-form-wrap .yc-radio {
  font-size: 18px !important;
}

.yc-trigger-btn,
.yc-next-btn,
.yc-back-btn,
.yc-form-wrap button {
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}
