.ves-quote-modal[hidden] {
  display: none;
}

.ves-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(3, 35, 64, 0.72);
  backdrop-filter: blur(4px);
}

.ves-quote-modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid #dce7f1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(1, 32, 58, 0.28);
}

.ves-quote-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid #d7e3ee;
  border-radius: 50%;
  color: #06345d;
  background: #fff;
  font: 700 24px/1 Arial, sans-serif;
  cursor: pointer;
}

.ves-quote-modal__close:hover,
.ves-quote-modal__close:focus-visible {
  border-color: #f2a900;
  outline: none;
  color: #fff;
  background: #f2a900;
}

.ves-quote-modal__eyebrow {
  margin: 0 52px 8px 0;
  color: #9a6700;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ves-quote-modal__title {
  margin: 0 52px 10px 0;
  color: #032f55;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.16;
}

.ves-quote-modal__intro {
  margin: 0 0 24px;
  color: #526984;
  font-size: 16px;
  line-height: 1.55;
}

.ves-quote-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ves-quote-form label {
  display: grid;
  gap: 7px;
  color: #032f55;
  font-size: 14px;
  font-weight: 700;
}

.ves-quote-form label.ves-quote-form__wide {
  grid-column: 1 / -1;
}

.ves-quote-form input,
.ves-quote-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c9d8e5;
  border-radius: 11px;
  color: #032f55;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.ves-quote-form textarea {
  min-height: 108px;
  resize: vertical;
}

.ves-quote-form input:focus,
.ves-quote-form textarea:focus {
  border-color: #f2a900;
  outline: 3px solid rgba(242, 169, 0, 0.2);
}

.ves-quote-form__file-note {
  color: #687c91;
  font-size: 12px;
  font-weight: 400;
}

.ves-quote-form__consent {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 10px !important;
  color: #526984 !important;
  font-size: 13px !important;
  line-height: 1.45;
}

.ves-quote-form__consent input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #f2a900;
}

.ves-quote-form__consent a {
  color: #06477c;
  text-decoration: underline;
}

.ves-quote-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ves-quote-form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.ves-quote-form__submit {
  min-height: 50px;
  padding: 13px 28px;
  border: 1px solid #f2a900;
  border-radius: 11px;
  color: #032f55;
  background: linear-gradient(135deg, #ffc62a, #f2a900);
  box-shadow: 0 10px 24px rgba(242, 169, 0, 0.2);
  font: 800 15px/1.2 Arial, sans-serif;
  cursor: pointer;
}

.ves-quote-form__submit:hover,
.ves-quote-form__submit:focus-visible {
  outline: none;
  filter: brightness(0.97);
}

.ves-quote-form__submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.ves-quote-form__status {
  min-height: 22px;
  margin: 14px 0 0;
  color: #526984;
  font-size: 14px;
  line-height: 1.45;
}

.ves-quote-form__status.is-success {
  color: #167145;
}

.ves-quote-form__status.is-error {
  color: #b42318;
}

body.ves-quote-modal-open {
  overflow: hidden;
}

.ves-quote-success[hidden] {
  display: none;
}

.ves-quote-success {
  display: grid;
  justify-items: center;
  padding: 28px 12px 18px;
  text-align: center;
}

.ves-quote-success__icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  place-items: center;
  border: 2px solid #a9dec4;
  border-radius: 50%;
  color: #167145;
  background: #eaf8f1;
  font: 800 38px/1 Arial, sans-serif;
}

.ves-quote-success .ves-quote-modal__eyebrow {
  margin-right: 0;
}

.ves-quote-success__title {
  margin: 0 0 12px;
  color: #032f55;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18;
}

.ves-quote-success__text {
  max-width: 520px;
  margin: 0 0 26px;
  color: #526984;
  font-size: 16px;
  line-height: 1.55;
}

.ves-form-success[hidden] {
  display: none !important;
}

.ves-form-success {
  box-sizing: border-box;
  display: grid;
  min-height: 280px;
  align-content: center;
  justify-items: center;
  padding: 34px 24px;
  border: 1px solid #dce7f1;
  border-radius: 18px;
  text-align: center;
  background: #fff;
}

.ves-form-success__icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  place-items: center;
  border: 2px solid #a9dec4;
  border-radius: 50%;
  color: #167145;
  background: #eaf8f1;
  font: 800 36px/1 Arial, sans-serif;
}

.ves-form-success h3 {
  margin: 0 0 10px;
  color: #032f55;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}

.ves-form-success p {
  max-width: 520px;
  margin: 0 0 22px;
  color: #526984;
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .ves-quote-modal {
    align-items: start;
    padding: 12px;
  }

  .ves-quote-modal__panel {
    max-height: calc(100vh - 24px);
    padding: 28px 18px 22px;
    border-radius: 17px;
  }

  .ves-quote-form__grid {
    grid-template-columns: 1fr;
  }

  .ves-quote-form label.ves-quote-form__wide,
  .ves-quote-form__consent {
    grid-column: auto;
  }

  .ves-quote-form__submit {
    width: 100%;
  }
}
