/* InsuraCan — custom CSS (Tailwind CDN handles utilities) */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Tailwind layout width — avoids Bootstrap .container overriding header/nav */
.ic-container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .ic-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
  .ic-header-nav-desktop { display: flex !important; align-items: center; }
}

body {
  font-family: 'Outfit', sans-serif;
  color: #2F3D45;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: inherit;
}

/* ─── Buttons (match insura-can-enhance.replit.app) ─────── */
.ic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}

.ic-btn-primary {
  background-color: #1F5A4A;
  color: #FFFFFF;
}
.ic-btn-primary:hover {
  background-color: #174334;
  color: #FFFFFF;
}

.ic-btn-outline {
  background-color: transparent;
  border-color: #1F5A4A;
  color: #1F5A4A;
}
.ic-btn-outline:hover {
  background-color: rgba(31, 90, 74, 0.05);
  color: #1F5A4A;
}

.ic-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 3.5rem;
  padding: 0 2rem;
  border-radius: 0.5rem;
  background-color: #FFFFFF;
  color: #1F5A4A;
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: background-color 0.15s;
}
.ic-btn-hero-primary:hover {
  background-color: #EAF4F1;
  color: #1F5A4A;
}

.ic-btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: transparent;
  color: #FFFFFF;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}
.ic-btn-hero-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.ic-btn-card {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background-color: #1F5A4A;
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s;
}
.ic-btn-card:hover {
  background-color: #174334;
  color: #FFFFFF;
}

.ic-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 2.5rem;
  border-radius: 0.5rem;
  background-color: #1F5A4A;
  color: #FFFFFF;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}
.ic-btn-cta:hover {
  background-color: #174334;
  color: #FFFFFF;
}

/* ─── Hero animated slideshow ─────────────────────────────── */
@keyframes hero-slide-1 {
  0%   { opacity: 1;   transform: scale(1.0)  translate(0%,    0%);   }
  28%  { opacity: 1;   transform: scale(1.07) translate(-2%,   1%);   }
  33%  { opacity: 0;   transform: scale(1.07) translate(-2%,   1%);   }
  100% { opacity: 0;   transform: scale(1.0)  translate(0%,    0%);   }
}
@keyframes hero-slide-2 {
  0%   { opacity: 0;   transform: scale(1.05) translate(1.5%, -0.5%); }
  33%  { opacity: 0;   transform: scale(1.05) translate(1.5%, -0.5%); }
  38%  { opacity: 1;   transform: scale(1.04) translate(0.5%, -0.2%); }
  62%  { opacity: 1;   transform: scale(1.0)  translate(-1%,   1%);   }
  66%  { opacity: 0;   transform: scale(1.0)  translate(-1%,   1%);   }
  100% { opacity: 0;   transform: scale(1.05) translate(1.5%, -0.5%); }
}
@keyframes hero-slide-3 {
  0%   { opacity: 0;   transform: scale(1.0)  translate(-1%,   1%);   }
  66%  { opacity: 0;   transform: scale(1.0)  translate(-1%,   1%);   }
  71%  { opacity: 1;   transform: scale(1.01) translate(-0.5%, 0.5%); }
  95%  { opacity: 1;   transform: scale(1.07) translate(1.5%, -1%);   }
  100% { opacity: 0;   transform: scale(1.07) translate(1.5%, -1%);   }
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform, opacity;
  animation-duration: 21s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  filter: brightness(1.15) saturate(1.1);
}
.hero-slide-1 { animation-name: hero-slide-1; }
.hero-slide-2 { animation-name: hero-slide-2; }
.hero-slide-3 { animation-name: hero-slide-3; }

.hero-title-shadow { text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.hero-lead-shadow { text-shadow: 0 1px 8px rgba(0,0,0,0.4); }

/* ─── Insurance type cards ─────────────────────────────────── */
.insurance-type-card {
  background: linear-gradient(135deg, #DCE9E5 0%, #8FB4A8 100%);
  box-sizing: border-box;
  border: 3px solid rgba(0,0,0,0.55);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35), 0 12px 26px rgba(0,0,0,0.38), 0 5px 12px rgba(0,0,0,0.26);
}
.insurance-type-card-shine {
  background: radial-gradient(ellipse at 55% 30%, rgba(255,255,255,0.09) 0%, transparent 65%);
}
.insurance-type-card-orb { background: rgba(255,255,255,0.04); }
.insurance-type-icon-ring { box-shadow: 0 0 0 2px #D6B45C; }
.insurance-type-icon-bg { background: rgba(0,0,0,0.28); }
.insurance-type-accent-line { background: #D6B45C99; }

/* ─── FAQ accordion ────────────────────────────────────────── */
.faq-answer { display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.2s; }

/* ─── 4-step process connector line ────────────────────────── */
.steps-process-line {
  display: none;
}
@media (min-width: 768px) {
  .steps-process-line {
    display: block;
    position: absolute;
    top: 2rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background-color: #A9BEA2;
    z-index: 0;
    pointer-events: none;
  }
}

/* ─── Mobile nav ───────────────────────────────────────────── */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }
#nav-icon-close.hidden { display: none; }
/*.hidden { display: none !important; }*/

/* ─── Form validation (quote intake pages) ─────────────────── */
.field-validation-error { color: #dc2626; font-size: 0.8rem; margin-top: 0.25rem; display: block; }
.input-validation-error { border-color: #dc2626 !important; }

/* Muted foreground utility for Tailwind color tokens */
.text-muted-foreground { color: #637279; }
.text-secondary { color: #6EB7BC; }
.text-destructive { color: #dc2626; }
.bg-muted { background-color: #EAF4F1; }
.bg-muted\/50 { background-color: rgba(234, 244, 241, 0.5); }
.border-border { border-color: #A9BEA2; }

/* ─── Form fields (login + quote) ──────────────────────────── */
.ic-field,
.quote-intake-page .form-control,
.quote-intake-page .form-select {
  width: 100%;
  height: 3rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #A9BEA2;
  background-color: #FFFFFF;
  color: #2F3D45;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.quote-intake-page textarea.form-control {
  height: auto;
  min-height: 6rem;
  padding: 0.75rem;
  resize: vertical;
}
.ic-field:focus,
.quote-intake-page .form-control:focus,
.quote-intake-page .form-select:focus {
  outline: none;
  border-color: #1F5A4A;
  box-shadow: 0 0 0 3px rgba(31, 90, 74, 0.15);
}
.quote-intake-page .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2F3D45;
  margin-bottom: 0.25rem;
}

.quote-intake-page .field-validation-error {
  color: #dc2626 !important;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

.quote-intake-page .text-danger {
    color: #dc2626 !important;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}
.quote-intake-page .text-muted,
.quote-intake-page .form-text {
  color: #637279;
  font-size: 0.875rem;
}
.quote-intake-page .text-success {
  color: #1F5A4A;
}

/* ─── Quote intake cards ───────────────────────────────────── */
.ic-form-card {
  border-radius: 0.75rem;
  border: 1px solid #A9BEA2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background: #FFFFFF;
}
.ic-form-card-header {
  background: rgba(234, 244, 241, 0.5);
  border-bottom: 1px solid #A9BEA2;
  padding: 1rem 1.5rem;
}
.ic-form-card-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2F3D45;
  margin: 0;
}
.ic-form-card-header p {
  font-size: 0.875rem;
  color: #637279;
  margin: 0.25rem 0 0;
}
.ic-form-card-body {
  padding: 1.5rem;
}
.ic-form-card + .ic-form-card {
  margin-top: 2rem;
}

.quote-intake-page .ic-form-card + .ic-form-card {
  margin-top: 2rem;
}

/* Bootstrap grid inside quote forms */
.quote-intake-page .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}
.quote-intake-page .row > [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  width: 100%;
}
@media (min-width: 768px) {
  .quote-intake-page .col-md-4 { width: 33.333333%; }
  .quote-intake-page .col-md-6 { width: 50%; }
  .quote-intake-page .col-md-8 { width: 66.666667%; }
  .quote-intake-page .col-md-12 { width: 100%; }
}
.quote-intake-page .row.g-2 { margin-left: -0.5rem; margin-right: -0.5rem; }
.quote-intake-page .row.g-2 > [class*="col-"] { padding-left: 0.5rem; padding-right: 0.5rem; }
.quote-intake-page .row.g-3 { margin-left: -0.75rem; margin-right: -0.75rem; }
.quote-intake-page .row.g-3 > [class*="col-"] { padding-left: 0.75rem; padding-right: 0.75rem; }
.quote-intake-page .row.row-cols-1 > .col { width: 100%; }
@media (min-width: 768px) {
  .quote-intake-page .row.row-cols-md-2 > .col { width: 50%; }
}

/* Bootstrap grid inside quote flow pages */
.quote-intake-page .alert-info {
  background: rgba(110, 183, 188, 0.12);
  border: 1px solid rgba(110, 183, 188, 0.35);
  border-radius: 0.5rem;
  padding: 1rem;
  color: #2F3D45;
  font-size: 0.875rem;
}
.quote-intake-page .alert-success {
  background: rgba(31, 90, 74, 0.08);
  border: 1px solid rgba(31, 90, 74, 0.25);
  border-radius: 0.5rem;
  padding: 1rem;
  color: #2F3D45;
  font-size: 0.875rem;
}
@media (min-width: 992px) {
  .quote-intake-page .col-lg-4 { width: 33.333333%; }
}
.quote-intake-page .g-4 { margin-left: -1rem; margin-right: -1rem; }
.quote-intake-page .g-4 > [class*="col-"] { padding: 1rem; }
.quote-intake-page .h-100 { height: 100%; }
.quote-intake-page .list-unstyled { list-style: none; padding: 0; margin: 0; }
.quote-intake-page .fs-5 { font-size: 1.25rem; }
.quote-intake-page .fs-6 { font-size: 1rem; }
.quote-intake-page .ms-1 { margin-left: 0.25rem; }
.quote-intake-page .text-center { text-align: center; }

.quote-intake-page .mb-3 { margin-bottom: 1rem; }
.quote-intake-page .mb-2 { margin-bottom: 0.5rem; }
.quote-intake-page .mb-4 { margin-bottom: 1.5rem; }
.quote-intake-page .mt-3 { margin-top: 1rem; }
.quote-intake-page .mt-4 { margin-top: 1.5rem; }
.quote-intake-page .d-block { display: block; }
.quote-intake-page .d-flex { display: flex; }
.quote-intake-page .align-items-start { align-items: flex-start; }

/* Hide legacy section titles inside ic-form-card only */
.quote-intake-page .ic-form-card .form-section-title { display: none; }

/* Accordion restyle */
.quote-intake-page .accordion-item {
  border: 1px solid #A9BEA2;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
}
.quote-intake-page .accordion-button {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: #2F3D45;
  background: rgba(234, 244, 241, 0.5);
  box-shadow: none;
}
.quote-intake-page .accordion-button:not(.collapsed) {
  background: rgba(234, 244, 241, 0.8);
  color: #1F5A4A;
}
.quote-intake-page .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(31, 90, 74, 0.15);
}

/* Ontario coverages callout */
.quote-intake-page .ic-coverage-callout {
  background: rgba(31, 90, 74, 0.05);
  border: 1px solid rgba(31, 90, 74, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
}
.quote-intake-page .ic-coverage-callout h4 {
  font-weight: 600;
  color: #1F5A4A;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}
.quote-intake-page .ic-coverage-callout ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: #637279;
}
@media (min-width: 768px) {
  .quote-intake-page .ic-coverage-callout ul { grid-template-columns: 1fr 1fr; }
}

/* Disclosure checkbox */
.quote-intake-page .quote-disclosure-check,
.quote-intake-page .quote-bundle-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.375rem;
}
.quote-intake-page .quote-bundle-check {
  border: 1px solid #A9BEA2;
  background: rgba(234, 244, 241, 0.3);
}
.quote-intake-page .quote-disclosure-check {
  border: 1px solid rgba(31, 90, 74, 0.2);
  background: rgba(31, 90, 74, 0.05);
}
.quote-intake-page .quote-disclosure-check .form-check-input,
.quote-intake-page .quote-bundle-check .form-check-input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: #1F5A4A;
}
.quote-intake-page .quote-disclosure-check .form-check-label,
.quote-intake-page .quote-bundle-check .form-check-label {
  font-weight: 500;
  color: #2F3D45;
  cursor: pointer;
}
.quote-intake-page .quote-disclosure-check .form-check-label {
  font-weight: 700;
}

/* Quote page header */
.quote-page-header {
  background-color: #EAF4F1;
  padding: 3rem 0;
  border-bottom: 1px solid #A9BEA2;
}
.quote-page-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #2F3D45;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .quote-page-header h1 { font-size: 2.25rem; }
}
.quote-page-header .quote-disclaimer {
  font-size: 1.125rem;
  color: #637279;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.quote-intake-page .ic-submit-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #A9BEA2;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .quote-intake-page .ic-submit-row { flex-direction: row; }
}
.quote-intake-page .ic-submit-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 2rem;
  border-radius: 0.5rem;
  background-color: #1F5A4A;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.quote-intake-page .ic-submit-primary:hover {
  background-color: #174334;
}

/* Popover info buttons */
.quote-intake-page .form-info-popover {
  color: #6EB7BC !important;
  text-decoration: none;
}
.quote-intake-page .form-info-popover:hover {
  color: #1F5A4A !important;
}

/* Needs-info banner inside quote layout */
.quote-intake-layout .alert {
  border-radius: 0.5rem;
  font-family: 'Outfit', sans-serif;
  background: #fff8e6;
  border: 1px solid #f0d78c;
  color: #2F3D45;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.quote-intake-layout .alert-heading {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quote-intake-page hr {
  border: none;
  border-top: 1px solid #A9BEA2;
  margin: 1.5rem 0;
}

/* Field grids */
.ic-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .ic-field-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ic-field-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ic-field-span-2 { grid-column: span 1; }
@media (min-width: 768px) {
  .ic-field-span-2 { grid-column: span 2; }
}

/* Vehicle usage radios */
.ic-radio-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ic-radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #A9BEA2;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s;
}
.ic-radio-option:hover { background: rgba(234, 244, 241, 0.5); }
.ic-radio-option input[type="radio"] {
  accent-color: #1F5A4A;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.ic-radio-option span { color: #2F3D45; font-weight: 400; }

/* Native details accordion */
.ic-details {
  border: 1px solid #A9BEA2;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
}
.ic-details summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #2F3D45;
  background: rgba(234, 244, 241, 0.5);
}
.ic-details summary::-webkit-details-marker { display: none; }
.ic-details[open] summary {
  background: rgba(234, 244, 241, 0.85);
  color: #1F5A4A;
  border-bottom: 1px solid #A9BEA2;
}
.ic-details-body { padding: 1rem 1.25rem 1.25rem; }

/* Upload cards */
.ic-upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .ic-upload-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ic-upload-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  border: 2px dashed #A9BEA2;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  position: relative;
}
.ic-upload-card:hover {
  border-color: rgba(31, 90, 74, 0.4);
  background: rgba(234, 244, 241, 0.2);
}
.ic-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.ic-upload-card-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.ic-upload-card-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(31, 90, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ic-upload-card-action {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1F5A4A;
}
.ic-upload-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2F3D45;
  margin: 0;
}
.ic-upload-card-subtitle {
  font-size: 0.75rem;
  color: #637279;
  margin: 0.25rem 0 0;
}
.ic-upload-card-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(31, 90, 74, 0.6);
  margin: 0.25rem 0 0;
}
.ic-upload-saved {
  font-size: 0.75rem;
  color: #1F5A4A;
  margin-top: 0.5rem;
  text-align: center;
}

/* Form info popover button */
.form-info-popover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  margin-left: 0.25rem;
  color: #6EB7BC;
  cursor: pointer;
  vertical-align: baseline;
}
.form-info-popover:hover { color: #1F5A4A; }
.d-none { display: none !important; }

/* Bootstrap popover (JS only — minimal styles) */
.popover {
  position: absolute;
  z-index: 1070;
  max-width: 276px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  background: #fff;
  border: 1px solid #A9BEA2;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.popover .popover-header {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  background: #EAF4F1;
  border-bottom: 1px solid #A9BEA2;
  border-radius: 0.5rem 0.5rem 0 0;
}
.popover .popover-body { padding: 0.75rem; color: #2F3D45; }
.popover .popover-arrow {
  position: absolute;
  width: 0.8rem;
  height: 0.4rem;
}
.popover.bs-popover-top .popover-arrow::before {
  content: "";
  position: absolute;
  border-width: 0.4rem 0.4rem 0;
  border-style: solid;
  border-color: #A9BEA2 transparent transparent;
}

.quote-intake-form { display: flex; flex-direction: column; gap: 2rem; }
.quote-intake-layout .flex { display: flex; }
.quote-intake-layout .flex-col { flex-direction: column; }
.quote-intake-layout .items-start { align-items: flex-start; }
.quote-intake-layout .gap-8 { gap: 2rem; }
@media (min-width: 1024px) {
  .quote-intake-layout .lg\:flex-row { flex-direction: row; }
  .quote-intake-layout .lg\:max-w-\[70\%\] { max-width: 70%; }
  .quote-intake-layout .lg\:w-\[30\%\] { width: 30%; }
  .quote-intake-layout .lg\:sticky { position: sticky; }
  .quote-intake-layout .lg\:top-28 { top: 7rem; }
  .quote-intake-layout .flex-1 { flex: 1 1 0%; }
  .quote-intake-layout .w-full { width: 100%; }
}

/* Status / confirmation pages */
.ic-status-page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.ic-status-card {
  border-radius: 0.75rem;
  border: 1px solid #A9BEA2;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  text-align: center;
}
.ic-status-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}
.ic-status-icon.success { background: rgba(31, 90, 74, 0.1); color: #1F5A4A; }
.ic-status-icon.warning { background: rgba(234, 179, 8, 0.15); color: #b45309; }
.ic-status-icon.danger { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.ic-status-icon.info { background: rgba(110, 183, 188, 0.15); color: #1F5A4A; }
.ic-status-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2F3D45;
  margin: 0 0 0.75rem;
}
.ic-status-card p { color: #637279; margin: 0 0 0.5rem; }
.ic-status-card code {
  font-size: 1rem;
  font-weight: 600;
  color: #1F5A4A;
  background: #EAF4F1;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
}

/* Callouts & alerts */
.ic-callout {
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.ic-callout-info {
  background: rgba(110, 183, 188, 0.12);
  border: 1px solid rgba(110, 183, 188, 0.35);
  color: #2F3D45;
}
.ic-callout-warning {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #2F3D45;
}
.ic-callout-success {
  background: rgba(31, 90, 74, 0.08);
  border: 1px solid rgba(31, 90, 74, 0.25);
  color: #2F3D45;
}

/* Policy option cards */
.ic-policy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .ic-policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ic-policy-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ic-policy-card {
  border-radius: 0.75rem;
  border: 1px solid #A9BEA2;
  background: #FFFFFF;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.ic-policy-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1F5A4A;
  margin: 0 0 0.25rem;
}
.ic-policy-card .ic-policy-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1F5A4A;
  margin: 1rem 0;
}

/* Checkbox grids (commercial, consents) */
.ic-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .ic-checkbox-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ic-checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #A9BEA2;
  border-radius: 0.375rem;
  cursor: pointer;
}
.ic-checkbox-option:hover { background: rgba(234, 244, 241, 0.5); }
.ic-checkbox-option input { margin-top: 0.2rem; accent-color: #1F5A4A; flex-shrink: 0; }
.ic-checkbox-option label { font-weight: 400; font-size: 0.875rem; cursor: pointer; margin: 0; }
.quote-intake-page .ic-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(169, 190, 162, 0.4);
}
.quote-intake-page .ic-consent-check:last-child { border-bottom: none; }
.quote-intake-page .mb-6 { margin-bottom: 1.5rem; }
.quote-intake-page .mb-0 { margin-bottom: 0; }
.quote-intake-page .small { font-size: 0.875rem; }

/* Submission review read-only panels */
.quote-review-page .row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.75rem;
}
.quote-review-page .row > [class*="col-"] {
  padding: 0.75rem;
  width: 100%;
}
@media (min-width: 992px) {
  .quote-review-page .col-lg-6 { width: 50%; }
}
.quote-review-page .g-4 { margin: -0.75rem; }
.detail-panel {
  border-radius: 0.75rem;
  border: 1px solid #A9BEA2;
  background: #FFFFFF;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.detail-panel h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1F5A4A;
  margin: 0 0 1rem;
}
.detail-panel .detail-row {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(169, 190, 162, 0.35);
  font-size: 0.875rem;
}
.detail-panel .detail-label {
  min-width: 8rem;
  color: #637279;
  font-weight: 500;
}
.detail-panel .detail-value { color: #2F3D45; flex: 1; }
.detail-panel .badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.detail-panel .bg-info { background: rgba(110, 183, 188, 0.2); color: #1F5A4A; }
.detail-panel .bg-warning { background: rgba(234, 179, 8, 0.2); color: #92400e; }
.detail-panel .bg-success { background: rgba(31, 90, 74, 0.15); color: #1F5A4A; }
.detail-panel .bg-secondary { background: #EAF4F1; color: #637279; }

.ic-data-table-wrap { overflow-x: auto; }
.ic-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.ic-data-table th,
.ic-data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(169, 190, 162, 0.4);
  text-align: left;
}
.ic-data-table th {
  font-weight: 600;
  color: #637279;
  background: rgba(234, 244, 241, 0.5);
}
.ic-data-table tbody tr:hover { background: rgba(234, 244, 241, 0.3); }
.ic-submit-primary.w-full { width: 100%; display: flex; justify-content: center; }
.text-end { text-align: right; }
.text-center { text-align: center; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-6 { margin-top: 1.5rem; }
.inline-flex { display: inline-flex; }

/* ─── Admin / Broker portal (InsuraCan backend) ─────────── */
.ic-portal {
  --portal-primary: #1F5A4A;
  --portal-secondary: #6EB7BC;
  --portal-muted: #637279;
  --portal-border: #A9BEA2;
  --portal-surface: #FFFFFF;
  --portal-bg: #F7FAF9;
  /* legacy var() names used in portal views */
  --primary: #1F5A4A;
  --secondary: #6EB7BC;
  --light: #EAF4F1;
  --auto-color: #E8590C;
  --auto-light: #FFF4EC;
  --tenant-color: #2F9E44;
  --tenant-light: #ECFBEF;
  --home-color: #1971C2;
  --home-light: #E7F5FF;
  --quote-color: #7048E8;
  --quote-light: #F3EFFF;
  background: var(--portal-bg);
  min-height: calc(100vh - 80px);
  font-family: 'Outfit', sans-serif;
  color: #2F3D45;
}

.ic-portal h1,
.ic-portal h2,
.ic-portal h3,
.ic-portal h4,
.ic-portal h5,
.ic-portal h6 {
  font-family: 'Outfit', sans-serif;
  color: #2F3D45;
}

.ic-portal .page-banner {
  background: linear-gradient(135deg, var(--portal-primary) 0%, #174334 55%, var(--portal-secondary) 100%);
  padding: 2rem 0;
  color: #fff;
  margin-bottom: 0;
}

.ic-portal .page-banner h2 {
  color: #fff;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.ic-portal .page-banner p,
.ic-portal .page-banner .small {
  color: rgba(255, 255, 255, 0.8);
}

.ic-portal .page-banner .breadcrumb {
  background: transparent;
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 0.85rem;
}

.ic-portal .page-banner .breadcrumb-item,
.ic-portal .page-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
}

.ic-portal .page-banner .breadcrumb-item a:hover {
  color: #fff;
}

.ic-portal .page-banner .breadcrumb-item.active {
  color: #fff;
}

.ic-portal .page-banner .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.45);
}

.ic-portal .container.py-4,
.ic-portal > .container {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.ic-portal .dashboard-welcome {
  background: linear-gradient(135deg, var(--portal-primary) 0%, #174334 60%, var(--portal-secondary) 100%);
  color: #fff;
  border-radius: 0.75rem;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(31, 90, 74, 0.15);
}

.ic-portal .dashboard-welcome h3 {
  color: #fff;
  font-weight: 700;
}

.ic-portal .dashboard-welcome p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.ic-portal .dashboard-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(169, 190, 162, 0.45);
  background: var(--portal-surface);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(47, 61, 69, 0.06);
}

.ic-portal .dashboard-card:hover {
  box-shadow: 0 8px 24px rgba(31, 90, 74, 0.12);
  transform: translateY(-2px);
}

.ic-portal .dashboard-card h5 {
  font-weight: 600;
  color: #2F3D45;
}

.ic-portal .dashboard-card .card-header-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.625rem;
  background: rgba(234, 244, 241, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--portal-primary);
}

.ic-portal .data-card,
.ic-portal .detail-panel,
.ic-portal .form-card,
.ic-portal .status-card {
  background: var(--portal-surface);
  border-radius: 0.75rem;
  border: 1px solid rgba(169, 190, 162, 0.45);
  box-shadow: 0 1px 3px rgba(47, 61, 69, 0.06);
  overflow: hidden;
}

.ic-portal .data-card .data-card-header {
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid rgba(169, 190, 162, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ic-portal .data-card .data-card-header h5 {
  font-weight: 600;
  color: var(--portal-primary) !important;
}

.ic-portal .data-card .data-card-empty {
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.ic-portal .detail-panel {
  padding: 1.75rem;
}

.ic-portal .detail-panel .detail-label {
  font-weight: 600;
  color: var(--portal-primary);
  min-width: 10rem;
  font-size: 0.875rem;
}

.ic-portal .detail-panel .detail-value {
  color: #2F3D45;
}

.ic-portal .detail-panel .detail-row {
  border-bottom: 1px solid rgba(169, 190, 162, 0.25);
  padding: 0.625rem 0;
}

.ic-portal .form-card {
  padding: 2rem;
}

.ic-portal .form-card .form-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(169, 190, 162, 0.35);
}

.ic-portal .form-card .form-label {
  font-weight: 600;
  color: #2F3D45;
  font-size: 0.875rem;
}

.ic-portal .form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--portal-primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(169, 190, 162, 0.35);
  margin: 1.5rem 0 1rem;
}

.ic-portal .table {
  --bs-table-bg: transparent;
  font-size: 0.875rem;
}

.ic-portal .table thead th {
  background: rgba(234, 244, 241, 0.65);
  color: var(--portal-muted);
  font-weight: 600;
  border-bottom: 1px solid rgba(169, 190, 162, 0.35);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ic-portal .table-hover tbody tr:hover {
  background: rgba(234, 244, 241, 0.45);
}

.ic-portal .btn {
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  font-family: 'Outfit', sans-serif;
}

.ic-portal .btn-primary {
  background: var(--portal-primary) !important;
  border-color: var(--portal-primary) !important;
  color: #fff !important;
}

.ic-portal .btn-primary:hover {
  background: #174334 !important;
  border-color: #174334 !important;
}

.ic-portal .btn-outline-primary {
  border-color: var(--portal-primary) !important;
  color: var(--portal-primary) !important;
}

.ic-portal .btn-outline-primary:hover {
  background: rgba(31, 90, 74, 0.08) !important;
  color: var(--portal-primary) !important;
}

.ic-portal .btn-outline-success {
  border-color: #2d8a5e !important;
  color: #2d8a5e !important;
}

.ic-portal .btn-outline-danger {
  border-color: #dc2626 !important;
  color: #dc2626 !important;
}

.ic-portal .btn-outline-warning {
  border-color: #d97706 !important;
  color: #d97706 !important;
}

.ic-portal .badge.bg-primary {
  background: var(--portal-primary) !important;
}

.ic-portal .text-primary {
  color: var(--portal-primary) !important;
}

.ic-portal .alert-success {
  background: rgba(31, 90, 74, 0.08);
  border-color: rgba(31, 90, 74, 0.25);
  color: #2F3D45;
  border-radius: 0.5rem;
}

.ic-portal .alert-danger {
  border-radius: 0.5rem;
}

.ic-portal .form-control,
.ic-portal .form-select {
  border-color: rgba(169, 190, 162, 0.65);
  border-radius: 0.375rem;
  font-family: 'Outfit', sans-serif;
}

.ic-portal .form-control:focus,
.ic-portal .form-select:focus {
  border-color: var(--portal-secondary);
  box-shadow: 0 0 0 0.2rem rgba(110, 183, 188, 0.25);
}

.ic-portal .status-card {
  padding: 3rem 2rem;
  text-align: center;
}

.ic-portal .status-card .status-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.ic-portal .status-card .status-icon.success {
  background: rgba(31, 90, 74, 0.12);
  color: var(--portal-primary);
}

.ic-portal .status-card .status-icon.danger {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.ic-portal .status-card .status-icon.info {
  background: rgba(110, 183, 188, 0.15);
  color: var(--portal-secondary);
}

.ic-portal code {
  background: rgba(234, 244, 241, 0.8);
  color: var(--portal-primary);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
}

.ic-portal .text-muted {
  color: var(--portal-muted) !important;
}

.ic-portal .card {
  border-color: rgba(169, 190, 162, 0.45);
  border-radius: 0.75rem;
}

@media (max-width: 768px) {
  .ic-portal .page-banner h2 {
    font-size: 1.375rem;
  }

  .ic-portal .dashboard-welcome {
    padding: 1.25rem;
  }

  .ic-portal .form-card {
    padding: 1.25rem;
  }

  .ic-portal .detail-panel {
    padding: 1.25rem;
  }

  .ic-portal .detail-panel .detail-row {
    flex-direction: column;
  }

  .ic-portal .detail-panel .detail-label {
    min-width: auto;
    margin-bottom: 0.25rem;
  }
}

/* Submission document preview overlay (replaces Bootstrap modal for PDF/image) */
body.submission-doc-preview-open {
    overflow: hidden;
}

.submission-doc-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.55);
}

.submission-doc-preview-dialog {
    display: flex;
    flex-direction: column;
    width: min(1140px, 100%);
    max-height: calc(100vh - 2rem);
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.submission-doc-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
}

.submission-doc-preview-title {
    color: var(--secondary);
}

.submission-doc-preview-body {
    flex: 1 1 auto;
    min-height: 0;
    background: #f8f9fa;
    overflow: auto;
}

.submission-doc-preview-frame {
    width: 100%;
    height: min(75vh, calc(100vh - 10rem));
    min-height: 320px;
    border: 0;
    display: block;
    background: #fff;
}

.submission-doc-preview-image {
    max-height: min(75vh, calc(100vh - 10rem));
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 0.5rem;
}

.submission-doc-preview-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-top: 1px solid #dee2e6;
}

.submission-doc-actions .btn {
    white-space: nowrap;
}

