/* ===============================
   VLK — VistaJet-like pill form
================================ */

.vlk-card, .vlk-card *{ box-sizing:border-box; }

/* wrapper */
.vlk-card{
  --vlk-border: rgba(0,0,0,.22);
  --vlk-divider: rgba(0,0,0,.14);
  --vlk-text: rgba(0,0,0,.86);
  --vlk-muted: rgba(0,0,0,.56);
  --vlk-h: 68px;
  --vlk-pad: 18px;
  --vlk-radius: 999px;

  color: var(--vlk-text);
}

/* main pill row */
.vlk-form{
  display:flex;
  align-items:stretch;
  width:100%;

  background:#fff;
  border:1px solid var(--vlk-border);
  border-radius:var(--vlk-radius);
  overflow:hidden;
  min-height:var(--vlk-h);
}

/* segments */
.vlk-field{
  position:relative;
  flex: 1 1 0;
  min-width:0;

  display:flex;
  align-items:center;

  padding: 0 var(--vlk-pad) 0 calc(var(--vlk-pad) + 34px);
  border-right:1px solid var(--vlk-divider);
}
.vlk-field:last-of-type{ border-right:0; }

.vlk-actions{
  flex:0 0 auto;
  min-width:76px;
  padding:0 12px;
  border-right:0;
  display:flex;
  align-items:center;
  justify-content:center;

  /* keep pill corners when background changes */
  border-top-right-radius: var(--vlk-radius);
  border-bottom-right-radius: var(--vlk-radius);

  transition: background 200ms ease;
}

/* labels: visually hidden */
.vlk-label{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* icon */
.vlk-ico{
  position:absolute;
  left: var(--vlk-pad);
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  color: rgba(0,0,0,.45);
}
.vlk-ico svg{
  display:block;
  width:20px;
  height:20px;
  fill: currentColor;
}

/* inputs (simple text look) */
.vlk-input{
  width:100%;
  height:100%;
  border:0 !important;
  outline:none !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;

  font: inherit;
  font-size: 15px;
  color: var(--vlk-text);

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.vlk-input::placeholder{
  color: var(--vlk-muted);
  opacity:1;
}

/* focus */
.vlk-field:focus-within{
  background: rgba(0,0,0,.02);
}

/* ===== Dates block (2 cols inside one segment) ===== */
.vlk-dates{
  flex: 1.2 1 0;
  padding-left: var(--vlk-pad);
  padding-right: 0;
}
.vlk-date-grid{
  width:100%;
  height:100%;
  display:flex;
  align-items:stretch;
}
.vlk-date-col{
  position:relative;
  flex:1 1 0;
  min-width:0;
  display:flex;
  align-items:center;

  padding: 0 var(--vlk-pad) 0 calc(var(--vlk-pad) + 34px);
}
.vlk-depart .vlk-ico{ left: var(--vlk-pad); }

/* divider between Date and Add return */
.vlk-return{
  padding-left: var(--vlk-pad);
  border-left: 1px solid var(--vlk-divider);
}

/* date buttons mimic text-button */
.vlk-date-btn{
  width:100%;
  height:100%;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  text-align:left;
  cursor:pointer;

  font: inherit;
  font-size: 15px;
  color: var(--vlk-muted);

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.vlk-date-btn:hover{ color: rgba(0,0,0,.70); }
.vlk-date-btn.is-filled{ color: var(--vlk-text); }

/* hidden native date inputs */
.vlk-date-input{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none; /* открываем через JS */
}

/* ===== Passengers ===== */
.vlk-pax{
  flex: 0.9 0.9 0;
  padding-left: var(--vlk-pad);
}
.vlk-pax .vlk-ico{ display:none; }

.vlk-stepper{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.vlk-step{
  width:34px;
  height:34px;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  color: rgba(0,0,0,.60);
  cursor:pointer;

  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.vlk-step svg{ display:block; }
.vlk-step:hover{ color: rgba(0,0,0,.80); }
.vlk-step:disabled{
  opacity:.35;
  cursor:not-allowed;
}

.vlk-pax-center{
  min-width:0;
  flex:1;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color: var(--vlk-text);
  font-size: 15px;
}

/* ===== Next button ===== */
.vlk-next{
  width:52px;
  height:52px;
  border:0;
  background:transparent !important;
  color: rgba(0,0,0,.65);
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;
}
.vlk-next:hover:not(:disabled){
  color: rgba(0,0,0,.85);
  background: transparent !important; /* prevent theme hover gray */
}
.vlk-next:disabled{ opacity:.35; cursor:not-allowed; }

/* ===== Ready state (Step 1 is valid) ===== */
.vlk-actions.is-ready{
  background: var(--vlk-accent);
}
.vlk-actions.is-ready .vlk-next{
  color: #fff;
}
.vlk-actions.is-ready .vlk-next:hover:not(:disabled){
  color: #fff;
  background: transparent !important;
}

.vlk-next-mobile{ display:none; }
.vlk-next-desktop{ display:inline-flex; }

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .vlk-form{
    flex-wrap:wrap;
    border-radius: 28px;
  }

  .vlk-field{
    flex: 1 1 50%;
    min-height: var(--vlk-h);
    border-right:1px solid var(--vlk-divider);
  }

  .vlk-from{ border-bottom:1px solid var(--vlk-divider); }
  .vlk-to{ border-bottom:1px solid var(--vlk-divider); border-right:0; }

  .vlk-dates{
    flex: 1 1 100%;
    border-right:0;
    border-bottom:1px solid var(--vlk-divider);
    padding-right:0;
  }

  .vlk-pax{
    flex: 1 1 100%;
    border-right:0;
  }

  .vlk-actions{
    flex: 1 1 100%;
    min-height: 62px;
    border-top:1px solid var(--vlk-divider);
    padding: 10px 12px;

    /* last row corners (match wrapper radius) */
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }

  .vlk-next{
    width:100%;
    height:46px;
    border-radius: 999px;
    border:1px solid var(--vlk-border);
    background: transparent !important;
  }

  .vlk-actions.is-ready .vlk-next{
    border-color: rgba(255,255,255,.35);
    color: #fff;
  }

  .vlk-next-desktop{ display:none; }
  .vlk-next-mobile{
    display:inline;
    font-size: 15px;
    color: rgba(0,0,0,.75);
  }
  .vlk-actions.is-ready .vlk-next-mobile{ color:#fff; }
}

@media (max-width: 640px){
  .vlk-field{
    flex: 1 1 100%;
    border-right:0;
    border-bottom:1px solid var(--vlk-divider);
  }
  .vlk-pax{ border-bottom:0; }
}

/* ===== BeTheme hard override (pill only) ===== */
.vlk-form .vlk-input,
.vlk-form .vlk-date-input{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
}

/* ===============================
   VLK Accent — Correct Implementation
   Accent: #B00016
================================ */

:root{
  --vlk-accent: #b00016;
  --vlk-accent-soft: rgba(176, 0, 22, 0.08);
}

/* ===============================
   Step 2 (expand panel)
   VistaJet-like: 2 columns (left fields, right textarea)
================================ */

.vlk-vjf-expand{
  margin-top: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.06);

  overflow: hidden;
  height: auto;
  opacity: 1;
  transform: translateY(0);
  transition: height 420ms cubic-bezier(.2,.9,.2,1), opacity 260ms ease, transform 260ms ease;
  will-change: height, opacity, transform;
}

.vlk-vjf-expand.is-collapsed{
  height: 0;
  opacity: 0;
  transform: translateY(-6px);
}

.vlk-vjf-expand__inner{
  padding: 22px;
}

/* 2 main columns: left + right */
.vlk-vjf-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

/* each column stacks fields */
.vlk-vjf-col{
  display: grid;
  gap: 14px;
}

.vlk-vjf-field{
  display: grid;
  gap: 8px;
}

.vlk-vjf-label{
  font-size: 13px;
  color: rgba(0,0,0,.72);
}

.vlk-vjf-input{
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  color: rgba(0,0,0,.86);
  background: #fff !important;
}

/* IMPORTANT: Step 2 inputs must keep borders/background (theme override safety) */
.vlk-vjf-expand .vlk-vjf-input{
  border: 1px solid rgba(0,0,0,.18) !important;
  background: #fff !important;
}

.vlk-vjf-input:focus{
  outline: none;
  border-color: rgba(176, 0, 22, 0.55);
  box-shadow: 0 0 0 4px rgba(176, 0, 22, 0.10);
}

textarea.vlk-vjf-input{
  min-height: 168px;
  resize: vertical;
}

/* rows under main columns (2 cols like VistaJet) */
.vlk-vjf-rows{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

.vlk-vjf-rows .vlk-vjf-field{
  grid-column: span 1;
}

.vlk-vjf-rows .vlk-vjf-field--span2{
  grid-column: 1 / -1;
}

/* marketing + submit full width */
.vlk-vjf-check{
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(0,0,0,.72);
}
.vlk-vjf-check input{
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.vlk-vjf-submit{
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.vlk-vjf-submit-btn{
  height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  background: var(--vlk-accent);
  color: #fff;
  font-size: 13px;
  letter-spacing: .06em;
}
.vlk-vjf-submit-btn:hover{ filter: brightness(1.02); }

.vlk-vjf-privacy{
  margin: 0;
  font-size: 12px;
  color: rgba(0,0,0,.55);
}

/* title row (label + small select) */
.vlk-vjf-field--title{
  grid-template-columns: 72px 1fr;
  align-items: center;
}
.vlk-vjf-field--title .vlk-vjf-label{ margin: 0; }
.vlk-vjf-field--title .vlk-vjf-input{ max-width: 160px; }

/* responsive */
@media (max-width: 960px){
  .vlk-vjf-grid{ grid-template-columns: 1fr; }
  .vlk-vjf-rows{ grid-template-columns: 1fr; }
  .vlk-vjf-field--title{
    grid-template-columns: 1fr;
    align-items: start;
  }
  .vlk-vjf-field--title .vlk-vjf-input{ max-width: 100%; }
  textarea.vlk-vjf-input{ min-height: 140px; }
}

/* ===============================
   Custom calendar (stylized)
================================ */

.vlk-cal{
  position: absolute;
  width: 320px;
  max-width: calc(100vw - 24px);

  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  z-index: 9999999;

  display: none;
  user-select: none;
}

/* calendar is appended to <body>, so it does NOT inherit .vlk-card box-sizing */
.vlk-cal,
.vlk-cal *{
  box-sizing: border-box;
}

.vlk-cal.is-open{ display: block; }

.vlk-cal__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.vlk-cal__title{
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(0,0,0,.68);
}

.vlk-cal__nav{
  display: flex;
  gap: 6px;
}

/* ---- Calendar hard reset to prevent theme button styles breaking the grid ---- */
.vlk-cal button{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  line-height: 1;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.vlk-cal__nav button{
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: rgba(0,0,0,.72);
}
.vlk-cal__nav button:hover{ background: rgba(0,0,0,.03); }

.vlk-cal__grid{
  padding: 10px 12px 12px;
}

.vlk-cal__dow{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding-bottom: 8px;
}

.vlk-cal__dow span{
  font-size: 11px;
  color: rgba(0,0,0,.45);
  text-align: center;
}

.vlk-cal__days{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

/* day button (explicit border/background so theme can't kill it) */
.vlk-cal__day{
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0;

  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 10px;

  background: #fff !important;
  box-shadow: none !important;

  cursor: pointer;
  color: rgba(0,0,0,.86);
  font-size: 13px;
}

.vlk-cal__day:hover{ background: rgba(0,0,0,.03) !important; }
.vlk-cal__day.is-out{ opacity: .35; }
.vlk-cal__day.is-disabled{
  opacity: .25;
  cursor: not-allowed;
  background: #fff !important;
}

.vlk-cal__day.is-selected{
  border-color: rgba(176, 0, 22, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(176, 0, 22, 0.10) !important;
}

.vlk-cal__foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.vlk-cal__foot button{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: rgba(0,0,0,.62);
  padding: 6px 8px;
  border-radius: 10px;
}

.vlk-cal__foot button:hover{ background: rgba(0,0,0,.03); }

.vlk-cal__foot button.vlk-cal__today{
  color: var(--vlk-accent);
  font-weight: 600;
}


/*hiii*/







/* =========================================================
   VLK Step 2 — EXTRA COMPACT override
   Replace previous Step 2 override. Put at VERY END of CSS.
   ========================================================= */

.vlk-vjf-expand{
  margin-top: 10px !important;
  border-radius: 12px !important;
}

.vlk-vjf-expand__inner{
  padding: 12px !important;
}

/* Two columns top grid */
.vlk-vjf-grid{
  gap: 8px 12px !important;   /* меньше вертикальный и горизонтальный */
}

.vlk-vjf-col{
  gap: 8px !important;
}

.vlk-vjf-field{
  gap: 4px !important;        /* label closer to input */
}

/* Labels */
.vlk-vjf-label{
  font-size: 11px !important;
  line-height: 1.25 !important;
  color: rgba(0,0,0,.62) !important;
  margin: 0 !important;
}

/* Inputs */
.vlk-vjf-input{
  min-height: 34px !important;  /* было 38 */
  padding: 6px 10px !important; /* меньше */
  border-radius: 8px !important;
  font-size: 13.5px !important;
}

/* Textarea tighter */
textarea.vlk-vjf-input{
  min-height: 96px !important;  /* было 120 */
  padding: 8px 10px !important;
}

/* Bottom rows grid */
.vlk-vjf-rows{
  margin-top: 10px !important;
  gap: 10px 12px !important;
}

/* Checkbox + submit */
.vlk-vjf-check{
  margin-top: 6px !important;
  gap: 10px !important;
  font-size: 13px !important;
}

.vlk-vjf-check input{
  width: 16px !important;
  height: 16px !important;
  margin-top: 2px !important;
}

.vlk-vjf-submit{
  margin-top: 6px !important;
  gap: 6px !important;
}

.vlk-vjf-submit-btn{
  height: 42px !important;
  font-size: 12.5px !important;
  letter-spacing: .08em !important;
}

.vlk-vjf-privacy{
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

/* Title row — make it tighter */
.vlk-vjf-field--title{
  grid-template-columns: 64px 160px !important;
  align-items: center !important;
  gap: 10px !important;
}

/* ===== Responsive ===== */
@media (max-width: 960px){
  .vlk-vjf-expand__inner{ padding: 10px !important; }
  .vlk-vjf-grid{ gap: 10px !important; } /* 1-column becomes neat */
  .vlk-vjf-input{ min-height: 40px !important; } /* удобнее тап */
  textarea.vlk-vjf-input{ min-height: 120px !important; }
  .vlk-vjf-rows{ gap: 10px !important; }
}

@media (max-width: 420px){
  .vlk-vjf-label{ font-size: 10.5px !important; }
  .vlk-vjf-submit-btn{ height: 44px !important; } /* палец */
}


/*huhu*/



/* =========================================================
   HARD RESET for Step 2 inputs
   Removes theme margins / widths / spacing
   ========================================================= */

.vlk-vjf-expand input,
.vlk-vjf-expand select,
.vlk-vjf-expand textarea{
  margin: 0 !important;          /* 🔥 убираем margin темы */
  width: 100% !important;        /* 🔥 убираем 230px */
  max-width: 100% !important;
  display: block;
  box-sizing: border-box;
}

/* Убираем возможные margin у label / p / wrappers */
.vlk-vjf-expand label,
.vlk-vjf-expand p{
  margin: 0 !important;
}

/* На всякий случай: если тема добавляет margin снизу через :not(:last-child) */
.vlk-vjf-expand .vlk-vjf-field{
  margin: 0 !important;
}

/* Checkbox wrapper тоже чистим */
.vlk-vjf-expand .vlk-vjf-check{
  margin: 6px 0 0 !important;
}






/* =========================================================
   Step 2 checkbox — align + size + VistaJet-like look
   ========================================================= */

.vlk-vjf-expand .vlk-vjf-check{
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;

  margin: 10px 0 0 !important;  /* компактно */
  padding: 0 !important;

  font-size: 13px !important;
  line-height: 1.35 !important;
  color: rgba(0,0,0,.72) !important;
}

/* input */
.vlk-vjf-expand .vlk-vjf-check input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;

  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;

  margin: 0 !important;         /* 🔥 убираем любые дефолтные отступы */
  padding: 0 !important;

  border: 1px solid rgba(0,0,0,.22) !important;
  border-radius: 4px !important;
  background: #fff !important;

  display: inline-grid;
  place-content: center;
  cursor: pointer;
}

/* checked state */
.vlk-vjf-expand .vlk-vjf-check input[type="checkbox"]:checked{
  background: var(--vlk-accent) !important;
  border-color: var(--vlk-accent) !important;
}

/* checkmark */
.vlk-vjf-expand .vlk-vjf-check input[type="checkbox"]::after{
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: -1px;
  opacity: 0;
}

.vlk-vjf-expand .vlk-vjf-check input[type="checkbox"]:checked::after{
  opacity: 1;
}

/* text */
.vlk-vjf-expand .vlk-vjf-check span{
  display: block;
  margin: 0 !important;
}

/* mobile: allow wrap nicely */
@media (max-width: 640px){
  .vlk-vjf-expand .vlk-vjf-check{
    align-items: flex-start !important;
  }
}
