:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f6f8fb;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(38, 121, 154, 0.14), transparent 42%),
    #f6f8fb;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

iframe
{
    width: 100%;
    min-height: 100vh;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid #dce4ee;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #176b87;
  color: #ffffff;
  font-size: 0.82rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #44546a;
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: #176b87;
}

.user-name {
  color: #172033;
  font-size: 0.92rem;
  font-weight: 600;
}

.landing,
.page-section {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 64px 40px;
}

.landing-content,
.page-section {
  width: min(760px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: #176b87;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing h1,
.page-section h1 {
  margin: 0;
  color: #172033;
  font-size: 4.5rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.landing p,
.page-section p {
  max-width: 680px;
  color: #44546a;
  font-size: 1.12rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quote-flow-launch {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #dce4ee;
}

.quote-flow-label {
  margin: 0;
  color: #176b87;
  font-size: 0.86rem;
  font-weight: 700;
}

.quote-flow-status,
.quote-flow-error {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.quote-flow-status {
  color: #44546a;
}

.quote-flow-inline-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quote-flow-error {
  color: #9f1239;
}

.quote-flow-launch > .button {
  margin-top: 12px;
}

.quote-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: start;
  gap: 12px 18px;
  margin-top: 12px;
}

.quote-flow-secondary-action {
  display: flex;
  grid-column: 1;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.quote-flow-secondary-action span {
  color: #69788d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.quote-flow-secondary-action .button {
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: #176b87;
  color: #ffffff;
}

.button.secondary {
  border: 1px solid #b9c7d7;
  background: #ffffff;
  color: #172033;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.validation-message {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--destructive);
  font-size: 0.875rem;
}

.validation-message::before {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--destructive);
  color: var(--destructive-foreground);
  content: "!";
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--destructive);
  background: color-mix(in oklab, var(--destructive) 5%, var(--background));
  box-shadow: inset 0 0 0 1px var(--destructive);
}

@media (max-width: 640px) {
  .top-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 22px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  .landing,
  .page-section {
    min-height: calc(100vh - 123px);
    padding: 44px 22px;
  }

  .landing h1,
  .page-section h1 {
    font-size: 2.5rem;
    line-height: 1.05;
  }

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