/* assets/css/frontend.css */

/* ---------------------------
   Global safety
---------------------------- */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* ---------------------------
   Backend test block
---------------------------- */
.lwf-test {
  width: 36.7%;
  margin-left: auto;
  margin-right: auto;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  background: transparent;
}

.lwf-test label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.lwf-test input,
.lwf-test textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  background: transparent;
}

.lwf-test .lwf-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.lwf-test .lwf-btn {
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  background: transparent;
  color: #111;
  cursor: pointer;
}

.lwf-test .lwf-out {
  margin-top: 12px;
  padding: 12px;
  background: transparent;
  color: #111;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  overflow: auto;
}

/* ---------------------------
   Elementor shortcode area
---------------------------- */
.elementor-element-8267e8d,
.elementor-element-8267e8d .elementor-widget-container,
.elementor-element-8267e8d .elementor-shortcode {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.elementor-element-8267e8d .elementor-shortcode {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* ---------------------------
   Front flow
---------------------------- */
.lwf-flow {
  width: 100% !important;
  max-width: 100% !important;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
  background: transparent;
  border: 0;
}

.lwf-flow * {
  box-sizing: border-box;
}

.lwf-inline-error {
  display: none;
  margin-top: 8px;
  color: #ff3b30;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.lwf-step-captcha-wrap {
  margin-top: 18px;
  padding-top: 8px;
}

.lwf-step-captcha-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.lwf-step-captcha {
  min-height: 78px;
}

/* Main column width */
.lwf-flow-title,
.lwf-flow-body,
.lwf-actions,
.lwf-flow-status {
  width: 36%;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
}

/* Title base */
.lwf-flow-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 24px;
  background: transparent;
}

/* Real title styling */
.lwf-flow[data-lwf-flow-root="1"] > .lwf-flow-title {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 24px !important;
  padding: 0 !important;
  display: block !important;
  text-align: center !important;
  color: #093766 !important;
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(20px, 3.2vw, 60px) !important;
  line-height: 1.1 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* Home page only */
body.home .lwf-flow[data-lwf-flow-root="1"] > .lwf-flow-title {
  color: #F4F7FC !important;
}

/* Form layout */
.lwf-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  background: transparent;
}

.lwf-field > label:not(.lwf-file-label) {
  display: none;
}

.lwf-field {
  margin: 0;
  background: transparent;
}

/* Inputs base */
.lwf-field input,
.lwf-field textarea,
.lwf-field select {
  width: 100%;
  border-radius: 16px;
  border: 2px solid #093766;
  background: transparent;
  color: #111;
  outline: none;
  box-shadow: none !important;
}

.lwf-field input:focus,
.lwf-field textarea:focus,
.lwf-field select:focus {
  border-color: #093766;
  box-shadow: none !important;
}

/* Compact input sizes */
.lwf-flow .lwf-field input[type="text"],
.lwf-flow .lwf-field input[type="email"],
.lwf-flow .lwf-field input[type="tel"],
.lwf-flow .lwf-field input[type="number"],
.lwf-flow .lwf-field input[type="url"],
.lwf-flow .lwf-field input[type="password"],
.lwf-flow .lwf-field select {
  height: 60px !important;
  padding: 2px 10px !important;
  line-height: 20px !important;
  box-sizing: border-box !important;
}

.lwf-flow .lwf-field textarea {
  min-height: 60px !important;
  padding: 6px 10px !important;
  box-sizing: border-box !important;
}

/* Root typography for fields */
.lwf-flow[data-lwf-flow-root="1"] .lwf-field input,
.lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea,
.lwf-flow[data-lwf-flow-root="1"] .lwf-field select {
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  padding-left: 2% !important;
  padding-right: 2% !important;
  background: transparent;
}

.lwf-flow[data-lwf-flow-root="1"] .lwf-field input::placeholder,
.lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea::placeholder {
  color: #5F6B7A66;
  opacity: 1;
  font-size: 20px;
}

/* Required mark */
.lwf-req {
  color: #b91c1c;
  margin-left: 4px;
}

/* Checkbox block */
.lwf-field.lwf-field-checkbox > label {
  display: flex !important;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  padding: 0;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 12px !important;
  line-height: 16px !important;
  color: #111;
}

.lwf-field.lwf-field-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  accent-color: #093766;
}

.lwf-flow .lwf-field .lwf-checkbox,
.lwf-flow .lwf-field .checkbox,
.lwf-flow .lwf-field .checkboxes {
  gap: 6px !important;
}

.lwf-flow .lwf-field .lwf-checkbox-item,
.lwf-flow .lwf-field .checkbox-item,
.lwf-flow .lwf-field .wpcf7-list-item {
  margin: 0 0 6px 0 !important;
}

/* Actions */
.lwf-actions {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  background: transparent;
}

/* Button */
.lwf-btn {
  width: 100%;
  height: 98px;
  padding: 24px;
  border-radius: 16px;
  border: 2px solid #093766;
  background: #093766;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lwf-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lwf-btn.secondary {
  background: transparent;
  color: #093766;
  border-color: #093766;
}

.lwf-flow[data-lwf-flow-root="1"] .lwf-btn {
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

/* Theme override for buttons */
.elementor-kit-6 .lwf-flow button,
.elementor-kit-6 .lwf-flow input[type="button"],
.elementor-kit-6 .lwf-flow input[type="submit"],
.elementor-kit-6 .lwf-flow .elementor-button {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  background-color: #F4F7FC !important;
  color: #093766 !important;
}

.elementor-kit-6 .lwf-flow button:hover,
.elementor-kit-6 .lwf-flow input[type="button"]:hover,
.elementor-kit-6 .lwf-flow input[type="submit"]:hover,
.elementor-kit-6 .lwf-flow .elementor-button:hover {
  background-color: #093766 !important;
  color: #F4F7FC !important;
}

/* Cards */
.lwf-options.lwf-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}

.lwf-card {
  width: 100%;
  text-align: center;
  padding: 24px;
  border: 2px solid #093766;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}

.lwf-card.is-active {
  border-color: #093766;
}

/* Radios */
.lwf-options.lwf-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}

.lwf-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.3;
  background: transparent;
}

.lwf-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #093766;
}

/* Status */
.lwf-flow-status {
  margin: 0;
  padding: 0;
  font-size: 0;
  background: transparent;
}

/* ---------------------------
   Responsive
---------------------------- */

/* 1366px–1599px */
@media (max-width: 1599px) and (min-width: 1366px) {
  .lwf-flow-title,
  .lwf-flow-body,
  .lwf-actions,
  .lwf-flow-status {
    width: 60%;
  }

  .lwf-flow[data-lwf-flow-root="1"] > .lwf-flow-title {
    width: 60% !important;
    font-size: 46px !important;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field select,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input::placeholder,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea::placeholder {
    font-size: 20px !important;
  }

  .lwf-btn {
    height: 90px;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-btn {
    font-size: 20px !important;
  }

  .lwf-field.lwf-field-checkbox > label {
    font-size: 16px !important;
  }
}

/* 1200px–1365px */
@media (max-width: 1365px) and (min-width: 1200px) {
  .lwf-flow-title,
  .lwf-flow-body,
  .lwf-actions,
  .lwf-flow-status {
    width: 66%;
  }

  .lwf-flow[data-lwf-flow-root="1"] > .lwf-flow-title {
    width: 66% !important;
    font-size: 40px !important;
  }

  .lwf-form {
    gap: 20px;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field select,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input::placeholder,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea::placeholder {
    font-size: 20px !important;
  }

  .lwf-actions {
    margin-top: 48px;
  }

  .lwf-btn {
    height: 86px;
    padding: 20px;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-btn {
    font-size: 20px !important;
  }

  .lwf-field.lwf-field-checkbox > label {
    font-size: 15px !important;
  }
}

/* 1024px–1199px */
@media (max-width: 1199px) and (min-width: 1024px) {
  .lwf-flow-title,
  .lwf-flow-body,
  .lwf-actions,
  .lwf-flow-status {
    width: 74%;
  }

  .lwf-flow[data-lwf-flow-root="1"] > .lwf-flow-title {
    width: 74% !important;
    font-size: 34px !important;
  }

  .lwf-form {
    gap: 18px;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field select,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input::placeholder,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea::placeholder {
    font-size: 18px !important;
  }

  .lwf-actions {
    margin-top: 40px;
  }

  .lwf-btn {
    height: 78px;
    padding: 18px;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-btn {
    font-size: 18px !important;
  }

  .lwf-field.lwf-field-checkbox > label {
    font-size: 14px !important;
    gap: 14px;
  }
}

/* 768px and below */
@media (max-width: 768px) {
  .lwf-flow-title,
  .lwf-flow-body,
  .lwf-actions,
  .lwf-flow-status {
    width: 92%;
  }

  .lwf-flow[data-lwf-flow-root="1"] > .lwf-flow-title {
    width: 92% !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    margin-bottom: 18px !important;
  }

  .lwf-form {
    gap: 14px;
  }

  .lwf-field input,
  .lwf-field textarea,
  .lwf-field select {
    height: 64px;
    padding: 16px;
    border-radius: 14px;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field select,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input::placeholder,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea::placeholder {
    font-size: 18px !important;
    line-height: 1.2 !important;
    padding-left: 4% !important;
    padding-right: 4% !important;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea {
    line-height: 1.35;
    height: 140px;
    padding-top: 16px;
    padding-bottom: 16px;
    resize: vertical;
  }

  .lwf-field.lwf-field-checkbox > label {
    font-size: 15px !important;
    gap: 12px;
  }

  .lwf-actions {
    margin-top: 28px;
  }

  .lwf-btn {
    height: 64px;
    padding: 16px;
    border-radius: 14px;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-btn {
    font-size: 18px;
  }

  .lwf-card {
    padding: 16px;
    border-radius: 14px;
    font-size: 15px;
  }

  .lwf-radio {
    font-size: 15px;
  }
}

/* 520px and below */
@media (max-width: 520px) {
  .lwf-flow-title,
  .lwf-flow-body,
  .lwf-actions,
  .lwf-flow-status {
    width: 94%;
  }

  .lwf-flow[data-lwf-flow-root="1"] > .lwf-flow-title {
    width: 94% !important;
    font-size: 24px !important;
    line-height: 1.18 !important;
    margin-bottom: 14px !important;
  }

  .lwf-form {
    gap: 12px;
  }

  .lwf-field input,
  .lwf-field textarea,
  .lwf-field select {
    height: 58px;
    padding: 14px;
    border-radius: 12px;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field select,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input::placeholder,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea::placeholder {
    font-size: 16px !important;
    line-height: 1.2 !important;
    padding-left: 4% !important;
    padding-right: 4% !important;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea {
    height: 130px;
    line-height: 1.35;
  }

  .lwf-actions {
    margin-top: 22px;
  }

  .lwf-btn {
    height: 58px;
    padding: 14px;
    border-radius: 12px;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-btn {
    font-size: 16px;
  }

  .lwf-field.lwf-field-checkbox > label {
    font-size: 14px !important;
    gap: 10px;
  }

  .lwf-card {
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  body.home .lwf-options.lwf-cards .lwf-card {
    width: 50% !important;
    max-width: 50% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 767px) {
  .lwf-flow-body {
    width: 100% !important;
    max-width: 100% !important;
  }

  .lwf-question[data-lwf-key="business_funding_amount"] {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .lwf-question[data-lwf-key="business_funding_amount"] .lwf-options.lwf-cards {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .lwf-question[data-lwf-key="business_funding_amount"] .lwf-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

@media (max-width: 767px) {
  body.home .lwf-flow-body {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.home .lwf-question[data-lwf-key="business_funding_amount"] {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  body.home .lwf-question[data-lwf-key="business_funding_amount"] .lwf-options.lwf-cards {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  body.home .lwf-question[data-lwf-key="business_funding_amount"] .lwf-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

@keyframes lwfShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

.lwf-error input,
.lwf-error textarea,
.lwf-error select {
  border-color: #e53935 !important;
}

.lwf-field.lwf-error input,
.lwf-field.lwf-error textarea,
.lwf-field.lwf-error select,
input.lwf-error,
textarea.lwf-error,
select.lwf-error {
  border: 2px solid #e53935 !important;
}

@media (max-width: 1199px) and (min-width: 768px) {
  .lwf-flow-title,
  .lwf-flow-body,
  .lwf-actions,
  .lwf-flow-status {
    width: 50% !important;
    max-width: 50% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .lwf-form,
  .lwf-options.lwf-cards,
  .lwf-question,
  .lwf-question-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  .lwf-field,
  .lwf-field input,
  .lwf-field textarea,
  .lwf-field select,
  .lwf-card,
  body.home .lwf-options.lwf-cards .lwf-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .lwf-flow[data-lwf-flow-root="1"] .lwf-flow-title,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-flow-body,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-actions,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-flow-status {
    width: 50vw !important;
    max-width: 50vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-question,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-question-wrapper,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-options.lwf-cards,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-form {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-card,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field textarea,
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field select {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.home .lwf-flow[data-lwf-flow-root="1"] .lwf-options.lwf-cards .lwf-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* File field */
.lwf-file-label {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 24px;
  border: 1px solid #dfe3ea;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lwf-file-label:hover {
  border-color: #c7ced9;
  background: #fafbfc;
}

.lwf-file-label input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.lwf-file-title {
  color: #c8cfda;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  pointer-events: none;
}

.lwf-file-name {
  margin-top: 8px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.lwf-field.lwf-error .lwf-file-label {
  border-color: #d63638;
}

/* iPhone Safari fix for date field */
.lwf-flow .lwf-field input[type="date"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 2px 10px !important;
  line-height: 20px !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* typography */
.lwf-flow[data-lwf-flow-root="1"] .lwf-field input[type="date"] {
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  padding-left: 2% !important;
  padding-right: 2% !important;
  color: #111 !important;
}

/* tablet */
@media (max-width: 1199px) and (min-width: 1024px) {
  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input[type="date"] {
    font-size: 18px !important;
  }
}

/* mobile */
@media (max-width: 768px) {
  .lwf-flow .lwf-field input[type="date"] {
    height: 64px !important;
    min-height: 64px !important;
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input[type="date"] {
    font-size: 18px !important;
    line-height: 1.2 !important;
    padding-left: 4% !important;
    padding-right: 4% !important;
  }
}

@media (max-width: 520px) {
  .lwf-flow .lwf-field input[type="date"] {
    height: 58px !important;
    min-height: 58px !important;
    padding: 14px !important;
    border-radius: 12px !important;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input[type="date"] {
    font-size: 16px !important;
    line-height: 1.2 !important;
    padding-left: 4% !important;
    padding-right: 4% !important;
  }
}

/* DOB field fix for iPhone Safari */
.lwf-flow .lwf-field input[data-lwf-key="personal_dob"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 2px 10px !important;
  line-height: 20px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  color: #111 !important;
  box-shadow: none !important;
}

.lwf-flow[data-lwf-flow-root="1"] .lwf-field input[data-lwf-key="personal_dob"] {
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  padding-left: 2% !important;
  padding-right: 2% !important;
}

.lwf-flow[data-lwf-flow-root="1"] .lwf-field input[data-lwf-key="personal_dob"]::placeholder {
  color: #5F6B7A66 !important;
  opacity: 1 !important;
  font-size: 20px !important;
}

/* mobile */
@media (max-width: 768px) {
  .lwf-flow .lwf-field input[data-lwf-key="personal_dob"] {
    height: 64px !important;
    min-height: 64px !important;
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input[data-lwf-key="personal_dob"] {
    font-size: 18px !important;
    line-height: 1.2 !important;
    padding-left: 4% !important;
    padding-right: 4% !important;
  }
}

@media (max-width: 520px) {
  .lwf-flow .lwf-field input[data-lwf-key="personal_dob"] {
    height: 58px !important;
    min-height: 58px !important;
    padding: 14px !important;
    border-radius: 12px !important;
  }

  .lwf-flow[data-lwf-flow-root="1"] .lwf-field input[data-lwf-key="personal_dob"] {
    font-size: 16px !important;
    line-height: 1.2 !important;
    padding-left: 4% !important;
    padding-right: 4% !important;
  }
}

.lwf-field-date {
  position: relative !important;
  border: 2px solid #093766 !important;
  border-radius: 16px !important;
  background: transparent !important;
  overflow: hidden !important;
}

.lwf-field-date .lwf-date-fake-placeholder {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #5F6B7A66;
  pointer-events: auto;
  z-index: 2;
  white-space: nowrap;
}

.lwf-field-date input[type="date"] {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 60px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.lwf-field-date.has-value .lwf-date-fake-placeholder,
.lwf-field-date.is-focused .lwf-date-fake-placeholder {
  display: none;
}

/* Пока поле пустое и не в фокусе — сам input прозрачный */
.lwf-field-date:not(.has-value):not(.is-focused) input[type="date"] {
  opacity: 0 !important;
}

/* Когда фокус или значение есть — input виден */
.lwf-field-date.has-value input[type="date"],
.lwf-field-date.is-focused input[type="date"] {
  opacity: 1 !important;
}

.lwf-date-mask {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 2% !important;
  padding-right: 2% !important;
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  color: #5F6B7A66 !important;
  pointer-events: auto !important;
  cursor: text !important;
  white-space: nowrap !important;
}

@media (max-width: 1599px) and (min-width: 1366px) {
  .lwf-date-mask {
    font-size: 20px !important;
  }
}

@media (max-width: 1365px) and (min-width: 1200px) {
  .lwf-date-mask {
    font-size: 20px !important;
  }
}

@media (max-width: 1199px) and (min-width: 1024px) {
  .lwf-date-mask {
    font-size: 18px !important;
  }
}

@media (max-width: 768px) {
  .lwf-date-mask {
    padding-left: 4% !important;
    padding-right: 4% !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 520px) {
  .lwf-date-mask {
    padding-left: 4% !important;
    padding-right: 4% !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }
}

.lwf-field-date.has-value .lwf-date-mask,
.lwf-field-date.is-focused .lwf-date-mask {
  display: none !important;
}

/* Убираем обычную рамку с date input, рамка теперь у обертки */
.lwf-flow .lwf-field-date input[type="date"] {
  border-radius: 16px !important;
}

@media (max-width: 768px) {
  .lwf-field-date {
    border-radius: 14px !important;
  }

  .lwf-field-date .lwf-date-fake-placeholder {
    left: 16px;
  }

  .lwf-date-mask {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .lwf-field-date input[type="date"] {
    min-height: 64px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 520px) {
  .lwf-field-date {
    border-radius: 12px !important;
  }

  .lwf-field-date .lwf-date-fake-placeholder {
    left: 14px;
  }

  .lwf-date-mask {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .lwf-field-date input[type="date"] {
    min-height: 58px !important;
    border-radius: 12px !important;
  }
}

/* =========================
   Checkbox base
========================= */
.lwf-field.lwf-field-checkbox input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
  padding: 0 !important;
  margin: 2px 12px 0 0 !important;
  border: 1px solid #8f8f8f;
  border-radius: 2px;
  background: #fff;
  display: inline-block !important;
  vertical-align: top;
  box-sizing: border-box !important;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
  position: relative;
}

/* Галочка */
.lwf-field.lwf-field-checkbox input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.12s ease-in-out;
}

/* Отмеченный чекбокс */
.lwf-field.lwf-field-checkbox input[type="checkbox"]:checked {
  background: #0b3a82;
  border-color: #0b3a82;
}

.lwf-field.lwf-field-checkbox input[type="checkbox"]:checked::before {
  transform: rotate(45deg) scale(1);
}

/* Label базово */
.lwf-field.lwf-field-checkbox > label,
.lwf-field.lwf-field-checkbox > label * {
  color: #222 !important;
}

/* =========================
   Error state
========================= */
.lwf-field.lwf-field-checkbox.lwf-error > label,
.lwf-field.lwf-field-checkbox.lwf-error > label *,
.lwf-field.lwf-error.lwf-field-checkbox > label,
.lwf-field.lwf-error.lwf-field-checkbox > label * {
  color: #e53935 !important;
}

.lwf-field.lwf-field-checkbox.lwf-error .lwf-req,
.lwf-field.lwf-error.lwf-field-checkbox .lwf-req {
  color: #e53935 !important;
}

.lwf-field.lwf-field-checkbox.lwf-error input[type="checkbox"],
.lwf-field.lwf-error.lwf-field-checkbox input[type="checkbox"] {
  border-color: #e53935 !important;
  background: #fff !important;
}

.lwf-field.lwf-field-checkbox.lwf-error input[type="checkbox"]:checked,
.lwf-field.lwf-error.lwf-field-checkbox input[type="checkbox"]:checked {
  background: #e53935 !important;
  border-color: #e53935 !important;
}

/* Filled fields */
.lwf-field.has-value input,
.lwf-field.has-value textarea,
.lwf-field.has-value select {
  color: #093766 !important;
  border-color: #093766 !important;
}

/* Filled date field */
.lwf-field.lwf-field-date.has-value input[type="date"] {
  color: #093766 !important;
  border-color: #093766 !important;
}

/* Calendar icon in filled date field */
.lwf-field.lwf-field-date.has-value input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* File field title when file selected */
.lwf-field.has-value .lwf-file-title,
.lwf-field.has-value .lwf-file-name {
  color: #093766 !important;
}

/* Select text when chosen */
.lwf-field.has-value select {
  color: #093766 !important;
}

/* Date field: same text size as other inputs */
.lwf-field.lwf-field-date input[type="date"] {
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  color: inherit !important;
}

/* Chrome / Safari internal date text */
.lwf-field.lwf-field-date input[type="date"]::-webkit-datetime-edit,
.lwf-field.lwf-field-date input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.lwf-field.lwf-field-date input[type="date"]::-webkit-datetime-edit-text,
.lwf-field.lwf-field-date input[type="date"]::-webkit-datetime-edit-day-field,
.lwf-field.lwf-field-date input[type="date"]::-webkit-datetime-edit-month-field,
.lwf-field.lwf-field-date input[type="date"]::-webkit-datetime-edit-year-field {
  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* Filled date color */
.lwf-field.lwf-field-date.has-value input[type="date"],
.lwf-field.lwf-field-date.has-value input[type="date"]::-webkit-datetime-edit,
.lwf-field.lwf-field-date.has-value input[type="date"]::-webkit-datetime-edit-day-field,
.lwf-field.lwf-field-date.has-value input[type="date"]::-webkit-datetime-edit-month-field,
.lwf-field.lwf-field-date.has-value input[type="date"]::-webkit-datetime-edit-year-field,
.lwf-field.lwf-field-date.has-value input[type="date"]::-webkit-datetime-edit-text {
  color: #093766 !important;
}

@media (max-width: 767px) {
  .lwf-field.lwf-field-date input[type="date"] {
    font-size: 15px !important;
  }

  .lwf-field.lwf-field-date input[type="date"]::-webkit-datetime-edit,
  .lwf-field.lwf-field-date input[type="date"]::-webkit-datetime-edit-fields-wrapper,
  .lwf-field.lwf-field-date input[type="date"]::-webkit-datetime-edit-text,
  .lwf-field.lwf-field-date input[type="date"]::-webkit-datetime-edit-day-field,
  .lwf-field.lwf-field-date input[type="date"]::-webkit-datetime-edit-month-field,
  .lwf-field.lwf-field-date input[type="date"]::-webkit-datetime-edit-year-field {
    font-size: 15px !important;
  }
}
@media (min-width: 1600px) {
  .lwf-flow-title,
  .lwf-flow-body,
  .lwf-actions,
  .lwf-flow-status {
    width: 70% !important;
    max-width: 70% !important;
  }

  .lwf-flow[data-lwf-flow-root="1"] > .lwf-flow-title {
    width: 70% !important;
    max-width: 70% !important;
  }
}
/* Error must always override filled state */
.lwf-field.lwf-error input,
.lwf-field.lwf-error textarea,
.lwf-field.lwf-error select,
input.lwf-error,
textarea.lwf-error,
select.lwf-error {
  border-color: #e53935 !important;
  color: #111 !important;
}

/* Error placeholder */
.lwf-field.lwf-error input::placeholder,
.lwf-field.lwf-error textarea::placeholder,
input.lwf-error::placeholder,
textarea.lwf-error::placeholder {
  color: #5F6B7A66 !important;
  opacity: 1 !important;
}

/* Filled + error must stay error */
.lwf-field.has-value.lwf-error input,
.lwf-field.has-value.lwf-error textarea,
.lwf-field.has-value.lwf-error select,
.lwf-field.lwf-error.has-value input,
.lwf-field.lwf-error.has-value textarea,
.lwf-field.lwf-error.has-value select {
  border-color: #e53935 !important;
  color: #111 !important;
}

/* Date field wrapper in error */
.lwf-field.lwf-field-date.lwf-error,
.lwf-field.lwf-error.lwf-field-date {
  border-color: #e53935 !important;
}

/* Filled date + error must stay error */
.lwf-field.lwf-field-date.has-value.lwf-error,
.lwf-field.lwf-field-date.lwf-error.has-value {
  border-color: #e53935 !important;
}

.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"],
.lwf-field.lwf-field-date.lwf-error.has-value input[type="date"],
.lwf-field.lwf-field-date.lwf-error input[type="date"] {
  color: #111 !important;
  border-color: transparent !important;
}

/* Chrome / Safari internal date text in error */
.lwf-field.lwf-field-date.lwf-error input[type="date"]::-webkit-datetime-edit,
.lwf-field.lwf-field-date.lwf-error input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.lwf-field.lwf-field-date.lwf-error input[type="date"]::-webkit-datetime-edit-text,
.lwf-field.lwf-field-date.lwf-error input[type="date"]::-webkit-datetime-edit-day-field,
.lwf-field.lwf-field-date.lwf-error input[type="date"]::-webkit-datetime-edit-month-field,
.lwf-field.lwf-field-date.lwf-error input[type="date"]::-webkit-datetime-edit-year-field,
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"]::-webkit-datetime-edit,
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"]::-webkit-datetime-edit-text,
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"]::-webkit-datetime-edit-day-field,
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"]::-webkit-datetime-edit-month-field,
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"]::-webkit-datetime-edit-year-field {
  color: #111 !important;
}

/* File field in error should override has-value */
.lwf-field.has-value.lwf-error .lwf-file-title,
.lwf-field.has-value.lwf-error .lwf-file-name,
.lwf-field.lwf-error .lwf-file-title,
.lwf-field.lwf-error .lwf-file-name {
  color: #e53935 !important;
}

.lwf-field.lwf-error .lwf-file-label,
.lwf-field.has-value.lwf-error .lwf-file-label {
  border-color: #e53935 !important;
}
/* Invalid filled field must look exactly like error/empty required field */
.lwf-field.has-value.lwf-error input,
.lwf-field.has-value.lwf-error textarea,
.lwf-field.has-value.lwf-error select,
.lwf-field.has-value input.lwf-error,
.lwf-field.has-value textarea.lwf-error,
.lwf-field.has-value select.lwf-error,
.lwf-field.lwf-error input,
.lwf-field.lwf-error textarea,
.lwf-field.lwf-error select,
input.lwf-error,
textarea.lwf-error,
select.lwf-error {
  border: 2px solid #e53935 !important;
  border-color: #e53935 !important;
  color: #111 !important;
}

/* Placeholder in error */
.lwf-field.has-value.lwf-error input::placeholder,
.lwf-field.has-value.lwf-error textarea::placeholder,
.lwf-field.has-value input.lwf-error::placeholder,
.lwf-field.has-value textarea.lwf-error::placeholder,
.lwf-field.lwf-error input::placeholder,
.lwf-field.lwf-error textarea::placeholder,
input.lwf-error::placeholder,
textarea.lwf-error::placeholder {
  color: #5F6B7A66 !important;
  opacity: 1 !important;
}

/* Date wrapper must stay red even when filled */
.lwf-field.lwf-field-date.lwf-error,
.lwf-field.lwf-field-date.has-value.lwf-error,
.lwf-field.lwf-error.lwf-field-date,
.lwf-field.has-value.lwf-error.lwf-field-date {
  border-color: #e53935 !important;
}

/* Filled date text must not switch back to blue when invalid */
.lwf-field.lwf-field-date.lwf-error input[type="date"],
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"] {
  color: #111 !important;
}

.lwf-field.lwf-field-date.lwf-error input[type="date"]::-webkit-datetime-edit,
.lwf-field.lwf-field-date.lwf-error input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.lwf-field.lwf-field-date.lwf-error input[type="date"]::-webkit-datetime-edit-text,
.lwf-field.lwf-field-date.lwf-error input[type="date"]::-webkit-datetime-edit-day-field,
.lwf-field.lwf-field-date.lwf-error input[type="date"]::-webkit-datetime-edit-month-field,
.lwf-field.lwf-field-date.lwf-error input[type="date"]::-webkit-datetime-edit-year-field,
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"]::-webkit-datetime-edit,
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"]::-webkit-datetime-edit-text,
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"]::-webkit-datetime-edit-day-field,
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"]::-webkit-datetime-edit-month-field,
.lwf-field.lwf-field-date.has-value.lwf-error input[type="date"]::-webkit-datetime-edit-year-field {
  color: #111 !important;
}

/* File field */
.lwf-field.has-value.lwf-error .lwf-file-label,
.lwf-field.lwf-error .lwf-file-label {
  border-color: #e53935 !important;
}

.lwf-field.has-value.lwf-error .lwf-file-title,
.lwf-field.has-value.lwf-error .lwf-file-name,
.lwf-field.lwf-error .lwf-file-title,
.lwf-field.lwf-error .lwf-file-name {
  color: #e53935 !important;
}
.lwf-captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lwf-captcha-modal.is-open {
  display: flex;
}

.lwf-captcha-dialog {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.lwf-captcha-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #093766;
}

.lwf-captcha-title {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #093766;
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.lwf-captcha-text {
  margin-bottom: 16px;
  color: #334155;
  font-size: 16px;
  line-height: 1.4;
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.lwf-captcha-widget {
  min-height: 78px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 520px) {
  .lwf-captcha-dialog {
    max-width: 100%;
    padding: 18px;
    border-radius: 12px;
  }

  .lwf-captcha-title {
    font-size: 18px;
  }

  .lwf-captcha-text {
    font-size: 14px;
  }
}