.es-inline-trigger {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #2168ad;
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
}

.es-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(26, 23, 16, .34);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  transition: opacity .22s ease;
}

.es-popup-overlay.is-open {
  display: flex;
  opacity: 1;
}

.es-popup {
  width: min(548px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: var(--es-radius, 18px);
  box-shadow: 0 22px 60px rgba(42, 31, 10, .18);
  border: 1px solid rgba(42, 31, 10, .09);
  position: relative;
  transform: translateY(12px) scale(.985);
  transition: transform .22s ease;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #0c0c0c;
}

.es-popup-overlay.is-open .es-popup {
  transform: translateY(0) scale(1);
}

.es-close {
  position: absolute;
  right: 17px;
  top: 17px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ded9cf;
  background: transparent!important;
  box-shadow: none;
  color: #6a6258;
  font-size: 32px;
  line-height: 30px;
  font-weight: 300;
  cursor: pointer;
  z-index: 2;
}

.es-close:hover,
.es-close:focus {
  color: #111;
  background: transparent!important;
  box-shadow: none;
}

.es-popup-head {
  background: #e8f4ff;
  padding: 30px 30px 25px;
  border-radius: var(--es-radius, 18px) var(--es-radius, 18px) 0 0;
}

.es-logo {
  display: block;
  max-width: 130px;
  max-height: 52px;
  margin: 0 0 10px;
}

.es-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #fff;
  color: #0b61ad;
  font-weight: 700;
  font-size: 14px;
  padding: 7px 14px;
  margin-bottom: 12px;
}

.es-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.es-popup h2 {
  font-size: 25px;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.es-popup-head p {
  margin: 0;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.25;
  max-width: 440px;
}

.es-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  border-bottom: 1px solid #e8e0d7;
  background: #fff;
}

.es-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #77716a;
  font-size: 14px;
  white-space: nowrap;
}

.es-step strong {
  font-weight: 500;
}

.es-step.is-active {
  color: #111;
}

.es-step.is-active strong,
.es-step.is-done strong {
  font-weight: 700;
}

.es-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3e1dc;
  color: #77716a;
  font-weight: 800;
}

.es-step.is-active .es-step-dot {
  background: var(--es-primary, #2168ad);
  color: #fff;
}

.es-step.is-done .es-step-dot {
  background: #11836a;
  color: #fff;
  font-size: 0;
}

.es-step.is-done .es-step-dot::before {
  content: '✓';
  font-size: 21px;
  line-height: 1;
}

.es-line {
  height: 1px;
  flex: 1;
  background: #e2ddd5;
}

.es-body {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.es-panel {
  display: none;
  padding: 15px 30px 30px;
}

.es-panel.is-active {
  display: block;
  animation: esFade .18s ease;
}

@keyframes esFade {
  from {
    opacity: .4;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.es-form label {
  display: block;
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 10px;
}

.es-form label span {
  color: #2168ad;
}

.es-form label em {
  font-weight: 500;
  color: #6d6671;
  font-style: normal;
}

.es-form input[type="text"],
.es-form input[type="tel"],
.es-form select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  border: 1px solid #d3cbc1;
  border-radius: 10px;
  height: 44px;
  padding: 0 15px;
  background: #fff;
  color: #111;
  font-size: 14px;
  transition: border-color .16s, box-shadow .16s;
}

.es-form input::placeholder {
  color: #7e8791;
}

.es-form select {
  appearance: auto;
}

.es-form input:focus,
.es-form select:focus {
  outline: none;
  border-color: var(--es-primary, #2168ad);
  box-shadow: 0 0 0 3px rgba(33, 104, 173, .14);
}

.es-field-error {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .12) !important;
}

.es-help {
  font-size: 14px;
  line-height: 1.6;
  color: #78726c;
  margin: 2px 0 19px;
}

.es-primary {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 9px;
  background: var(--es-button, #2168ad);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.es-primary:hover,
.es-primary:focus {
  filter: brightness(.96);
  outline: 2px solid rgba(33, 104, 173, .18);
  outline-offset: 2px;
}

.es-primary[disabled] {
  opacity: .65;
  cursor: not-allowed;
}

.es-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.es-secondary-row a {
  height: 51px;
  border: 1px solid #d8d0c8;
  border-radius: 9px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #151515;
  background: #fff;
}

.es-secondary-row svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.es-whatsapp {
  background: #e2f8ef !important;
  border-color: #93dfc9 !important;
  color: #00806b !important;
}

.es-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #817b73;
  font-size: 13px;
  margin: 22px 0 0;
}

.es-privacy svg {
  width: 15px;
  height: 15px;
  fill: #817b73;
}

.es-time {
  border: 0;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.es-time legend {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
  grid-column: 1 / -1;
}

.es-time label {
  margin: 0;
  font-weight: 500;
}

.es-time input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.es-time span {
  height: 50px;
  gap: 8px;
  border: 1px solid #d8d0c8;
  border-radius: 9px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #665d55;
  font-size: 15px;
  line-height: 1.25;
  cursor: pointer;
  background: #fff;
}

.es-time span svg {
  width: 20px;
  height: 20px;
  margin-bottom: 0px;
  fill: none;
  stroke: var(--es-primary, #2168ad);
  stroke-width: 2;
}

.es-time input:checked + span {
  border-color: var(--es-primary, #2168ad);
  box-shadow: 0 0 0 3px rgba(33, 104, 173, .12);
  background: #f4f9ff;
  color: #111;
}

.es-time input:focus + span {
  outline: 2px solid rgba(33, 104, 173, .22);
}

.es-turnstile {
  margin: 5px 0 16px;
}

.es-message {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 12px;
  color: #b42318;
  min-height: 0;
}

.es-message.is-success {
  color: #11836a;
}

.es-skip {
  display: block;
  margin: 21px auto 5px;
  border: 0;
  background: transparent;
  color: #5d5048;
  font-size: 15px;
  cursor: pointer;
}

.es-skip:hover {
  text-decoration: underline;
}

.es-popup-overlay.es-submitted .es-panel[data-step="2"] > *:not(.es-message) {
  display: none;
}

.es-popup-overlay.es-submitted .es-message {
  font-size: 17px;
  text-align: center;
  padding: 30px 0;
  color: #11836a;
}

.admin-bar .es-popup-overlay {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .es-popup-overlay {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .es-popup-overlay {
    align-items: flex-start;
    padding: 0;
    background: #f2efe7;
  }

  .es-popup {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .es-popup-head {
    padding: 20px 22px 16px;
  }
  
  .es-badge{
      font-size: 12px;
      padding: 5px 12px;
      margin-bottom: 5px;
  }

  .es-popup h2 {
    font-size: 20px;
    margin-bottom: 0px;
  }

  .es-popup-head p {
      margin-top: 3px;
    font-size: 13px;
    line-height: 1.25;
  }

  .es-steps {
    padding: 10px 22px;
  }

  .es-step {
    font-size: 13px;
  }

  .es-panel {
    padding: 10px 22px 32px 22px;
  }
  
  .es-form label{
      font-size: 14px;
      margin: 0px 0px 10px;
  }

  .es-secondary-row {
    grid-template-columns: 1fr;
  }

  .es-time {
    grid-template-columns: 1fr;
    margin: 0px 0px 0px;
    gap: 0px;
  }

  .es-time span {
    height: 50px;
  }

  .es-close {
    right: 14px;
    top: 14px;
  }
  
  .es-form input[type="text"],
.es-form input[type="tel"],
.es-form select {
    height: 36px;
    font-size: 14px;
}

.es-step-dot{
    font-size: 12px;
    width: 24px;
    height: 24px;
}

.es-primary{
    height: 50px;
}
}

@media (prefers-reduced-motion: reduce) {
  .es-popup-overlay,
  .es-popup,
  .es-panel {
    transition: none;
    animation: none;
  }
}

/* Dynamic step transition + inline validation messages */
.es-step-animating .es-body {
  min-height: var(--es-body-height, auto);
}

.es-panel.is-entering-right {
  animation: esSlideInRight .34s cubic-bezier(.22, .72, .18, 1) both;
}

.es-panel.is-entering-left {
  animation: esSlideInLeft .34s cubic-bezier(.22, .72, .18, 1) both;
}

.es-panel.is-exiting-left {
  display: block;
  position: absolute;
  inset: 0;
  animation: esSlideOutLeft .34s cubic-bezier(.22, .72, .18, 1) both;
  pointer-events: none;
}

.es-panel.is-exiting-right {
  display: block;
  position: absolute;
  inset: 0;
  animation: esSlideOutRight .34s cubic-bezier(.22, .72, .18, 1) both;
  pointer-events: none;
}

@keyframes esSlideInRight {
  from {
    opacity: 0;
    transform: translateX(34px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes esSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-34px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes esSlideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-34px);
  }
}

@keyframes esSlideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(34px);
  }
}

.es-error-text {
  display: none;
  margin: 7px 0 0;
  color: #b42318;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.es-error-text.is-visible {
  display: block;
  animation: esErrorIn .16s ease both;
}

.es-form input.es-field-error,
.es-form select.es-field-error {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .12) !important;
  background: #fffafa;
}

.es-time.es-field-error span {
  border-color: #b42318;
}

.es-time.es-field-error legend {
  color: #111;
}

.es-primary.is-loading {
  position: relative;
  color: rgba(255, 255, 255, .72);
}

.es-primary.is-loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: esSpin .75s linear infinite;
}

@keyframes esSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes esErrorIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Thank-you state after successful submission */
.es-thankyou {
  display: none;
  padding: 44px 30px 50px;
  text-align: center;
  background: #fff;
  border-radius: 0 0 var(--es-radius, 18px) var(--es-radius, 18px);
  animation: esThankIn .32s ease both;
}

.es-popup-overlay.es-submitted .es-form {
  display: none;
}

.es-popup-overlay.es-submitted .es-thankyou {
  display: block;
}

.es-popup-overlay.es-submitted .es-thankyou[aria-hidden="true"] {
  display: none;
}

.es-thankyou-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 1px auto 24px;
  display: grid;
  place-items: center;
  background: #ddf7ee;
  border: 1px solid #8ee0c6;
  color: #00796d;
  font-size: 42px;
  line-height: 1;
  font-weight: 400;
}

.es-thankyou h2 {
  font-size: 25px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.es-thankyou p {
  max-width: 470px;
  margin: 0 auto;
  color: #3f3f3f;
  font-size: 17px;
  line-height: 1.45;
}

.es-popup-overlay.es-submitted .es-popup {
  overflow: hidden;
}

@keyframes esThankIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .es-thankyou {
    padding: 38px 22px 42px;
  }

  .es-thankyou-icon {
    width: 64px;
    height: 64px;
    font-size: 40px;
  }

  .es-thankyou h2 {
    font-size: 24px;
  }

  .es-thankyou p {
    font-size: 16px;
  }
}