/* Service enquiry popup.
   Keeps the site's own system — Inter, the blue CTA, the 30px pill button — and
   changes what read as dated: hairline boxes, sharp corners, a black button and
   an unstructured stack of fields. */

/* Elementor does not put custom classes on CONTAINERS, only on widgets, so the
   shared tokens hang off the widget classes and the form itself. */
.bx-enquiry-title, .bx-enquiry-sub, .bx-enquiry {
  --bx-ink: #101828;
  --bx-muted: #667085;
  --bx-line: #E3E8EF;
  --bx-fill: #F5F7FA;
  --bx-brand: #155DFC;
  --bx-accent: #F96915;
}

/* ---- heading ---- */
.elementor .bx-enquiry-title .elementor-heading-title {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bx-ink);
  margin: 0 0 6px;
}
/* the kit sets a light colour on text-editor widgets, so this needs to outrank it */
.elementor .bx-enquiry-sub,
.elementor .bx-enquiry-sub p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--bx-muted) !important;
  margin: 0 0 24px;
  max-width: 52ch;
}

/* ---- layout ---- */
.bx-enquiry .bx-enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.bx-enquiry .bx-field { margin: 0 0 16px; }
.bx-enquiry .bx-enquiry-grid .bx-field { margin: 0; }
/* the grid and the full-width message field were touching */
.bx-enquiry .bx-field-wide { margin-top: 18px; }

/* ---- labels ---- */
.bx-enquiry label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bx-ink);
  margin: 0 0 7px;
}
.bx-enquiry label span { color: var(--bx-accent); }

/* ---- fields ---- */
.bx-enquiry .wpcf7-form-control-wrap { display: block; }
.bx-enquiry input[type="text"],
.bx-enquiry input[type="email"],
.bx-enquiry input[type="tel"],
.bx-enquiry textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  font-size: 16px;  /* 16px: kad iOS nepritrauktu vaizdo fokusuojant */
  line-height: 1.4;
  color: var(--bx-ink);
  background: var(--bx-fill);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 15px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.bx-enquiry textarea { resize: vertical; min-height: 128px; }
.bx-enquiry ::placeholder { color: #9AA4B2; opacity: 1; }

.bx-enquiry input:hover,
.bx-enquiry textarea:hover { background: #EEF2F6; }

.bx-enquiry input:focus,
.bx-enquiry textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--bx-brand);
  box-shadow: 0 0 0 3px rgba(21, 93, 252, .14);
}

/* ---- footer: note on the left, action on the right ---- */
.bx-enquiry .bx-enquiry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--bx-line);
}
.bx-enquiry .bx-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--bx-muted);
}
.bx-enquiry .bx-note strong { color: var(--bx-ink); font-weight: 600; }

/* XStore styles submit buttons dark by default and does it from several selectors,
   so this is written explicitly rather than through a custom property. */
.bx-enquiry .bx-enquiry-foot input[type="submit"],
.bx-enquiry input.wpcf7-submit,
.bx-enquiry input.bx-submit {
  font-family: "Inter", sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: #155DFC !important;
  background-color: #155DFC !important;
  border: 0 !important;
  border-radius: 30px !important;
  padding: 15px 28px !important;
  min-width: 0;
  width: auto;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none;
}
.bx-enquiry .bx-enquiry-foot input[type="submit"]:hover,
.bx-enquiry input.wpcf7-submit:hover,
.bx-enquiry input.bx-submit:hover {
  background: #0F4BD8 !important;
  background-color: #0F4BD8 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 93, 252, .3);
}
.bx-enquiry .wpcf7-submit:focus-visible {
  outline: 3px solid rgba(21, 93, 252, .4);
  outline-offset: 2px;
}

/* ---- validation and status ---- */
.bx-enquiry input.wpcf7-not-valid,
.bx-enquiry textarea.wpcf7-not-valid {
  border-color: #F04438 !important;
  background: #FEF3F2 !important;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, .12);
}
.bx-enquiry .wpcf7-not-valid-tip {
  font-size: 12.5px;
  line-height: 1.35;
  color: #D92D20;
  margin-top: 6px;
}
/* CF7 ships a yellow 2px border on the status box — replace it outright */
.elementor-location-popup .wpcf7-response-output,
.elementor-location-popup form.sent .wpcf7-response-output,
.elementor-location-popup form.invalid .wpcf7-response-output,
.elementor-location-popup form.failed .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 13px 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-size: 14px;
  line-height: 1.45;
  background: #F5F7FA;
  color: var(--bx-ink);
}
.elementor-location-popup form.sent .wpcf7-response-output { background: #ECFDF3 !important; color: #05603A; }
.elementor-location-popup form.invalid .wpcf7-response-output,
.elementor-location-popup form.failed .wpcf7-response-output { background: #FEF3F2 !important; color: #B42318; }
.elementor-location-popup .wpcf7-spinner { margin: 0 0 0 10px; }

/* ---- the popup shell ---- */
.elementor-popup-modal .dialog-widget-content { border-radius: 18px; overflow: hidden; }
.elementor-popup-modal .dialog-close-button {
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #F2F4F7;
  color: #475467;
  opacity: 1;
  transition: background .15s ease, color .15s ease;
}
.elementor-popup-modal .dialog-close-button:hover { background: #E3E8EF; color: #101828; }
.elementor-popup-modal .dialog-close-button svg { width: 15px; height: 15px; }

@media (max-width: 640px) {
  .bx-enquiry .bx-enquiry-grid { grid-template-columns: 1fr; }
  .elementor .bx-enquiry-title .elementor-heading-title { font-size: 23px; }
  .bx-enquiry .bx-enquiry-foot { flex-direction: column; align-items: stretch; }
  .bx-enquiry input.bx-submit, .bx-enquiry .wpcf7-submit { width: 100%; }
  .bx-enquiry .bx-note { order: 2; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .bx-enquiry * { transition: none !important; }
  .bx-enquiry .wpcf7-submit:hover { transform: none; }
}

/* Wishlist "Teirautis pasiūlymo" theme popup */
.ask-wishlist-estimate-popup .et-popup-content{max-width:680px;border-radius:20px;padding:34px 36px}
.bx-est-title{font:700 24px/1.2 "Inter",sans-serif;color:#000;margin:0 0 8px}
.bx-est-sub{font:400 14.5px/1.5 "Inter",sans-serif;color:rgba(0,0,0,.6);margin:0 0 20px}
@media(max-width:640px){.ask-wishlist-estimate-popup .et-popup-content{padding:22px 18px;border-radius:14px}}
