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

:root {
  --yc-red:    #FF0000;
  --yc-red-dk: #cc0000;
  --yc-dark:   #111111;
  --yc-white:  #ffffff;
  --yc-gray:   #aaaaaa;
  --yc-din:    "DIN Condensed","DINAlternate-Bold","Impact","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: "din", "DIN Condensed", "DINAlternate-Bold", "Impact", sans-serif !important;
  font-weight: 400 !important;
  font-size: 20px !important;
  letter-spacing: 0 !important;
  text-transform: none !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;
  /* 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: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0; /* never squish — always full height */
  border-bottom: none; /* border-top:3px red on .yc-modal is sufficient */
}
/* 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 {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
/* Title + subtitle stack — takes remaining space, never wraps */
.yc-modal-head-info {
  flex: 1;
  min-width: 0;
}
.yc-modal-title {
  font-family: var(--yc-din);
  font-size: 14px;
  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: 22px 22px 16px;
  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: 10px;
  letter-spacing: 2px;
  color: #FF0000;
  text-transform: uppercase;
  margin-bottom: 16px;
  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: 12px; }
.yc-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--yc-gray);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}
.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: 10px 12px;
  font-family: var(--yc-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  border-radius: 0;
  -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-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: 10px; }

.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); }

/* ── Creator / Connector ── */
.yc-role-choice { display: grid; grid-template-columns: 1fr 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: 0;
  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); }
.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); }

/* ── RTW ── */
.yc-radio-row { display: flex; gap: 24px; margin-top: 8px; }
.yc-radio { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 14px; color: #fff; font-family: var(--yc-body); }
.yc-radio input { accent-color: #FF0000; }
.yc-rtw-block { border: 1px solid #5c3d00; background: rgba(255,160,0,.06); padding: 16px; text-align: center; margin-top: 12px; }
.yc-rtw-emoji { font-size: 24px; margin-bottom: 8px; }
.yc-rtw-block p { font-size: 13px; color: #ffb347; line-height: 1.5; margin: 0; }

/* ── 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);
}
.yc-avail input { accent-color: #FF0000; }
.yc-avail:has(input:checked) { border-color: #FF0000; background: rgba(255,0,0,.07); }

/* ── File ── */
.yc-file-wrap { border: 1px dashed rgba(255,255,255,.15); padding: 12px; transition: border-color .2s; }
.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; }

/* ── 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: 2px; }
.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: 12px 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: 2px !important;
  background: #FF0000 !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: background .2s, color .2s !important;
  line-height: 1em !important;
  min-height: unset !important;
}
.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); }
.yc-success strong { color: #fff; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .yc-overlay      { padding: 12px 10px; align-items: flex-end; }
  .yc-modal        { max-height: calc(100vh - 24px); border-radius: 12px 12px 0 0; }
  .yc-modal-body   { padding: 16px 14px 12px; }
  .yc-field-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; }
}
