:root {
  --modal-bg: #ffffff;
  --modal-card: #ffffff;
  --modal-border: rgba(16, 42, 67, 0.16);
  --modal-border-hover: rgba(16, 42, 67, 0.4);
  --input-bg: #ffffff;
  --input-border: rgba(16, 42, 67, 0.2);
  --input-border-focus: #102a43;
  --input-focus-glow: rgba(16, 42, 67, 0.16);
  --text-pure: #102a43;
  --text-head: #102a43;
  --text-muted: #52677f;
  --text-dim: #687b8f;
  --accent-cyan: #102a43;
  --accent-blue: #183b5b;
  --accent-indigo: #102a43;
  --glow-shadow: 0 12px 35px rgba(16, 42, 67, 0.1);
}

.standalone-mode {
  color: #102a43 !important;
  background: #ffffff !important;
}

.quote-page {
  min-height: 100vh;
  padding: 8rem 1.25rem 4rem;
  color: #102a43;
  background: #ffffff;
  font-family: "Open Sans", Arial, sans-serif;
}

.quote-page.embedded-mode {
  min-height: 0;
  padding: 0.75rem 1rem 1.5rem;
}

.quote-page.embedded-mode #section-header {
  display: none;
}

.quote-page-main {
  width: min(100%, 760px);
  margin: 0 auto;
}

.quote-intro {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.quote-eyebrow {
  margin: 0 0 0.5rem;
  color: #52677f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-intro h1 {
  margin: 0;
  color: #102a43;
  font-family: "Plus Jakarta Sans", "Open Sans", sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
}

.quote-intro > p:last-child {
  margin: 0.65rem auto 0;
  color: #52677f;
  font-size: 0.95rem;
  line-height: 1.65;
}

.quote-request-card {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid #e0e7ef;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.12);
}

.quote-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
}

.quote-field {
  min-width: 0;
}

.quote-field-wide {
  grid-column: 1 / -1;
}

.quote-field label {
  display: block;
  margin-bottom: 0.25rem;
  color: #102a43;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.quote-field label span {
  color: #ad2d35;
}

.quote-field input:not([type="color"]),
.quote-field select {
  display: block;
  width: 100%;
  min-height: 2.25rem;
  border: 1px solid #d6dee8;
  border-radius: 0.5rem;
  padding: 0.4rem 0.65rem;
  color: #102a43;
  background: #ffffff;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.2;
}

.quote-field input::placeholder {
  color: #8190a1;
}

.quote-field input:focus,
.quote-field select:focus {
  border-color: #315d83;
  outline: 3px solid rgba(49, 93, 131, 0.12);
}

.quote-color-control {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.quote-color-control input {
  width: 2.7rem;
  height: 2.25rem;
  border: 1px solid #d6dee8;
  border-radius: 0.4rem;
  padding: 0.2rem;
  background: #ffffff;
}

.quote-color-control output {
  color: #52677f;
  font-size: 0.75rem;
}

.quote-submit-button {
  display: block;
  width: 100%;
  min-height: 2.65rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 0.55rem;
  color: #ffffff;
  background: #073b70;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.quote-submit-button:hover {
  background: #102a43;
  transform: translateY(-1px);
}

.quote-email-note {
  margin: 0.65rem 0 0;
  color: #687b8f;
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: center;
}

.quote-submit-status {
  margin-top: 0.8rem;
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: #102a43;
  background: #eef4f8;
  font-size: 0.8rem;
  line-height: 1.5;
}

.quote-email-fallback {
  display: block;
  margin-top: 0.55rem;
  color: #073b70;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.quote-email-fallback[hidden] {
  display: none;
}

.embedded-mode {
  min-height: 0;
  justify-content: flex-start;
  padding: 0;
}

.embedded-mode > nav {
  display: none !important;
}

.embedded-mode .lead-modal-dialog {
  max-width: 780px;
  margin: 0 auto;
  box-shadow: none;
}

.lead-modal-backdrop {
  background: rgba(16, 42, 67, 0.32);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.lead-modal-dialog {
  color: #102a43;
  background: #ffffff;
  border: 1px solid #e3e9ef !important;
  box-shadow: 0 18px 48px rgba(16, 42, 67, 0.14);
}

.modal-brand-badge,
.security-capsule,
.quick-chip-btn {
  color: #102a43;
  background: #f6f8fb;
  border-color: rgba(16, 42, 67, 0.14);
}

.modal-label,
.map-overlay-title {
  color: #102a43;
}

.label-optional,
.map-status-pill {
  color: #52677f;
  background: #f6f8fb;
}

.modal-title-gradient {
  background: linear-gradient(135deg, #102a43 30%, #315574 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-section-bar {
  color: #102a43;
  background: #ffffff;
  border-color: rgba(16, 42, 67, 0.14);
}

.form-section-bar::after {
  background: linear-gradient(90deg, rgba(16, 42, 67, 0.18), transparent);
}

.modal-input-wrap,
.modal-input-control,
.modal-input-control option,
.modal-form-group select {
  color: #102a43;
  background: #ffffff;
  border-color: rgba(16, 42, 67, 0.2);
}

.modal-input-control:hover,
.modal-input-control:focus {
  color: #102a43;
  background: #ffffff;
}

.modal-input-control:focus {
  border-color: #102a43 !important;
  box-shadow: 0 0 0 3px rgba(16, 42, 67, 0.12);
}

.modal-input-control::placeholder,
.map-overlay-desc {
  color: #687b8f;
}

.map-canvas-wrapper {
  background: #ffffff;
  border-color: #e3e9ef;
}

.map-canvas-overlay {
  background: rgba(255, 255, 255, 0.96);
}

.map-canvas-loader {
  color: #102a43;
  background: rgba(255, 255, 255, 0.92);
}

.modal-footer-strip {
  border-color: #e3e9ef;
}

.btn-dark-reset {
  color: #344e68;
  background: #ffffff;
  border-color: #d5dee7;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn-dark-reset:hover {
  color: #102a43;
  background: #f6f8fb;
  border-color: #102a43;
}

.btn-gradient-submit {
  color: #ffffff;
  background: #102a43;
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.16);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn-gradient-submit:hover {
  color: #ffffff;
  background: #183b5b;
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.22);
  transform: translateY(-1px);
}

.modal-close-btn {
  color: #52677f;
  background: #f6f8fb;
  border-color: #e3e9ef;
}

.modal-close-btn:hover {
  color: #102a43;
  background: #ffffff;
  border-color: #102a43;
}

.quick-chip-btn {
  border: 1px solid rgba(16, 42, 67, 0.14);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.quick-chip-btn:hover {
  color: #ffffff;
  background: #102a43;
  border-color: #102a43;
}

@media (prefers-reduced-motion: reduce) {
  .quote-submit-button {
    transition-duration: 0.01ms;
  }

  .btn-dark-reset,
  .btn-gradient-submit,
  .modal-close-btn,
  .quick-chip-btn {
    transition-duration: 0.01ms;
  }
}
