:root {
  --vezcxe-space-1: 8px;
  --vezcxe-space-2: 12px;
  --vezcxe-space-3: 16px;
  --vezcxe-space-4: 24px;
  --vezcxe-space-5: 32px;
  --vezcxe-space-6: 40px;
  --vezcxe-space-7: 48px;
  --vezcxe-form-max: 940px;
  --vezcxe-field-height: 54px;
  --vezcxe-field-radius: 16px;
}

.vezcxe-quote-form {
  width: min(100%, var(--vezcxe-form-max));
  margin-inline: auto;
  padding: 56px;
  box-sizing: border-box;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 31, 107, 0.12);
  box-shadow: 0 22px 48px rgba(0, 31, 107, 0.08);
}

.vezcxe-quote-form,
.vezcxe-quote-form * {
  box-sizing: border-box;
}

.vezcxe-quote-intro {
  margin-bottom: var(--vezcxe-space-6);
}

.vezcxe-quote-intro h2 {
  margin: 0 0 var(--vezcxe-space-3);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.vezcxe-quote-intro p {
  margin: 0;
  max-width: 48rem;
  color: rgba(0, 31, 107, 0.9);
  line-height: 1.7;
}

.vezcxe-quote-prefill {
  margin-top: var(--vezcxe-space-4);
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.98), rgba(255, 245, 221, 0.94));
  box-shadow: 0 16px 32px rgba(0, 31, 107, 0.05);
}

.vezcxe-quote-prefill__eyebrow {
  margin: 0 0 8px;
  color: #9c7610;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vezcxe-quote-prefill p:last-child {
  margin: 0;
}

.vezcxe-quote-section {
  margin: 0 0 var(--vezcxe-space-6);
  padding: var(--vezcxe-space-5) 0 0;
  border: 0;
  border-top: 1px solid rgba(0, 31, 107, 0.08);
}

.vezcxe-quote-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.vezcxe-quote-section legend {
  width: 100%;
  margin-bottom: var(--vezcxe-space-4);
  padding: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #001f6b;
}

.vezcxe-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 28px;
}

.vezcxe-field {
  display: grid;
  gap: var(--vezcxe-space-2);
  align-content: start;
  font-weight: 650;
  line-height: 1.35;
  color: #001f6b;
  position: relative;
}

.vezcxe-field input[type="hidden"] {
  display: none;
}

.vezcxe-quote-grid input:not([type="hidden"]):not([type="checkbox"]),
.vezcxe-quote-grid select,
.vezcxe-quote-grid textarea {
  width: 100%;
  max-width: 100%;
  min-height: var(--vezcxe-field-height);
  padding: 0 18px;
  border: 1px solid rgba(0, 31, 107, 0.14);
  border-radius: var(--vezcxe-field-radius);
  background: #fff;
  color: #0c1f57;
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.vezcxe-quote-grid textarea {
  min-height: 132px;
  padding-top: 16px;
  padding-bottom: 16px;
  resize: vertical;
}

.vezcxe-quote-grid input::placeholder,
.vezcxe-quote-grid textarea::placeholder {
  color: rgba(12, 31, 87, 0.56);
}

.vezcxe-quote-grid input:hover,
.vezcxe-quote-grid select:hover,
.vezcxe-quote-grid textarea:hover {
  border-color: rgba(0, 31, 107, 0.22);
}

.vezcxe-quote-grid input:focus-visible,
.vezcxe-quote-grid select:focus-visible,
.vezcxe-quote-grid textarea:focus-visible {
  outline: 0;
  border-color: rgba(0, 43, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 43, 153, 0.1);
}

.vezcxe-quote-grid input.is-invalid,
.vezcxe-quote-grid select.is-invalid,
.vezcxe-quote-grid textarea.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1);
}

.vezcxe-help {
  margin-top: -2px;
  color: rgba(0, 31, 107, 0.68);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
}

.vezcxe-quote-grid__full {
  grid-column: 1 / -1;
}

.vezcxe-photo-note {
  margin-top: 4px;
  color: #7a5b06;
}

.vezcxe-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vezcxe-space-3) var(--vezcxe-space-5);
  padding-top: 4px;
}

.vezcxe-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--vezcxe-space-2);
  min-height: 24px;
  font-weight: 650;
  color: #001f6b;
  cursor: pointer;
}

.vezcxe-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #002b99;
  flex: 0 0 auto;
}

.vezcxe-checkbox span {
  line-height: 1.45;
}

.vezcxe-multi-stop {
  padding: 20px 22px;
  border: 1px solid rgba(0, 31, 107, 0.12);
  border-radius: 22px;
  background: rgba(244, 247, 255, 0.74);
}

.vezcxe-business-panel {
  padding: 20px 22px;
  border: 1px solid rgba(0, 31, 107, 0.12);
  border-radius: 22px;
  background: rgba(244, 247, 255, 0.74);
}

.vezcxe-business-panel .vezcxe-quote-grid {
  column-gap: 24px;
  row-gap: 24px;
}

.vezcxe-business-panel .vezcxe-field,
.vezcxe-business-panel .vezcxe-field > input,
.vezcxe-business-panel .vezcxe-field > select,
.vezcxe-business-panel .vezcxe-field > textarea {
  box-sizing: border-box;
  max-width: 100%;
}

.vezcxe-multi-stop__header {
  margin-bottom: var(--vezcxe-space-3);
}

.vezcxe-multi-stop__header h3 {
  margin: 0 0 var(--vezcxe-space-1);
  font-size: 1rem;
  line-height: 1.35;
  color: #001f6b;
}

.vezcxe-multi-stop__header .vezcxe-help {
  margin-top: 0;
}

.vezcxe-multi-stop__list {
  display: grid;
  gap: var(--vezcxe-space-3);
}

.vezcxe-stop-item {
  display: grid;
  gap: 10px;
}

.vezcxe-stop-item__input-wrap {
  display: grid;
  gap: 10px;
}

.vezcxe-stop-item__address-wrap {
  position: relative;
}

.vezcxe-stop-item input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: var(--vezcxe-field-height);
  padding: 0 18px;
  border: 1px solid rgba(0, 31, 107, 0.14);
  border-radius: var(--vezcxe-field-radius);
  background: #fff;
  color: #0c1f57;
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.vezcxe-stop-item input::placeholder {
  color: rgba(12, 31, 87, 0.56);
}

.vezcxe-stop-item input:hover {
  border-color: rgba(0, 31, 107, 0.22);
}

.vezcxe-stop-item input:focus-visible {
  outline: 0;
  border-color: rgba(0, 43, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 43, 153, 0.1);
}

.vezcxe-stop-item input.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1);
}

.vezcxe-stop-item__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--vezcxe-space-3);
}

.vezcxe-stop-item__title {
  font-weight: 650;
  color: #001f6b;
}

.vezcxe-multi-stop__actions {
  margin-top: var(--vezcxe-space-3);
}

.vezcxe-address-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 18px);
  z-index: 8;
  display: grid;
  gap: 6px;
  padding: var(--vezcxe-space-1);
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 31, 107, 0.12);
  box-shadow: 0 18px 36px rgba(0, 31, 107, 0.12);
}

.vezcxe-address-results[hidden] {
  display: none;
}

.vezcxe-address-option {
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #001f6b;
  text-align: left;
  line-height: 1.45;
  cursor: pointer;
}

.vezcxe-address-option:hover,
.vezcxe-address-option:focus-visible {
  background: rgba(0, 43, 153, 0.08);
  outline: 0;
}

.vezcxe-quote-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--vezcxe-space-3);
  margin-top: var(--vezcxe-space-5);
  padding-top: var(--vezcxe-space-2);
}

.vezcxe-terms-checkbox {
  align-items: flex-start;
  max-width: 44rem;
  font-weight: 500;
}

.vezcxe-terms-checkbox span {
  line-height: 1.6;
}

.vezcxe-terms-checkbox a {
  color: #002b99;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.vezcxe-terms-checkbox a:hover,
.vezcxe-terms-checkbox a:focus-visible {
  color: #001f6b;
}

.vezcxe-quote-form button[type="submit"],
.vezcxe-quote-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #d4af37;
  color: #001f6b;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.vezcxe-quote-form button[type="submit"]:hover,
.vezcxe-quote-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.22);
  background: #ddb63d;
}

.vezcxe-quote-form button[type="submit"]:focus-visible,
.vezcxe-quote-cta:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.vezcxe-quote-form button[type="submit"][aria-busy="true"] {
  cursor: progress;
  pointer-events: none;
  background: #d8bc63;
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.2);
}

.vezcxe-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 31, 107, 0.22);
  border-top-color: #001f6b;
  border-radius: 999px;
  animation: vezcxe-spin 0.7s linear infinite;
}

.vezcxe-quote-form button[type="submit"][aria-busy="true"] .vezcxe-submit-spinner {
  display: inline-flex;
}

.vezcxe-secondary-button,
.vezcxe-stop-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(0, 31, 107, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #001f6b;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.vezcxe-stop-remove {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.92rem;
}

.vezcxe-secondary-button:hover,
.vezcxe-stop-remove:hover,
.vezcxe-secondary-button:focus-visible,
.vezcxe-stop-remove:focus-visible {
  border-color: rgba(0, 43, 153, 0.3);
  background: rgba(0, 43, 153, 0.04);
  box-shadow: 0 0 0 4px rgba(0, 43, 153, 0.08);
  outline: 0;
}

.vezcxe-quote-result {
  margin-top: var(--vezcxe-space-6);
}

.vezcxe-tracking-panel {
  width: min(100%, var(--vezcxe-form-max));
  margin-inline: auto;
}

.vezcxe-tracking-section {
  padding-top: 0;
}

.vezcxe-tracking-note {
  max-width: 42rem;
}

.vezcxe-tracking-progress {
  margin-top: 10px;
  font-weight: 600;
  color: #002b99;
}

.vezcxe-tracking-feedback {
  margin: 0 0 24px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.98), rgba(255, 245, 221, 0.94));
  box-shadow: 0 18px 38px rgba(0, 31, 107, 0.06);
}

.vezcxe-tracking-feedback__eyebrow {
  margin: 0 0 10px;
  color: #9c7610;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vezcxe-tracking-feedback h3 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.vezcxe-tracking-feedback p {
  margin: 0;
  max-width: 44rem;
  color: rgba(0, 31, 107, 0.82);
}

.vezcxe-tracking-feedback p + p {
  margin-top: 10px;
}

.vezcxe-quote-card {
  padding: 24px 28px;
  border-radius: 24px;
  background: #f4f7ff;
  border: 1px solid rgba(0, 31, 107, 0.12);
}

.vezcxe-quote-card.is-warning {
  background: #fff9ec;
  border-color: rgba(212, 175, 55, 0.4);
}

.vezcxe-quote-card.is-error {
  background: #fff4f2;
  border-color: rgba(180, 35, 24, 0.28);
}

.vezcxe-chip {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 43, 153, 0.08);
  color: #002b99;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vezcxe-quote-total {
  margin: 4px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: #001f6b;
}

.vezcxe-breakdown {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.vezcxe-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 31, 107, 0.08);
  line-height: 1.45;
}

.vezcxe-breakdown li:last-child {
  border-bottom: 0;
}

@keyframes vezcxe-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .vezcxe-quote-form {
    padding: 36px;
    border-radius: 28px;
  }

  .vezcxe-quote-grid {
    column-gap: 32px;
    row-gap: 24px;
  }
}

@media (max-width: 781px) {
  .vezcxe-quote-form {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .vezcxe-quote-intro {
    margin-bottom: var(--vezcxe-space-5);
  }

  .vezcxe-quote-section {
    margin-bottom: var(--vezcxe-space-5);
    padding-top: var(--vezcxe-space-4);
  }

  .vezcxe-quote-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 20px;
  }

  .vezcxe-checkbox-group {
    flex-direction: column;
    gap: var(--vezcxe-space-3);
  }

  .vezcxe-multi-stop {
    padding: 16px;
  }

  .vezcxe-business-panel {
    padding: 16px;
  }

  .vezcxe-stop-item__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .vezcxe-address-results {
    top: calc(100% - 14px);
  }
}

@media (max-width: 480px) {
  .vezcxe-quote-form {
    padding: 16px 14px;
  }

  .vezcxe-quote-intro h2 {
    font-size: 1.8rem;
  }

  .vezcxe-quote-actions {
    align-items: stretch;
  }

  .vezcxe-quote-form button[type="submit"],
  .vezcxe-quote-cta {
    width: 100%;
  }
}
