/* ========================================
   SAJ BROKERS INSURANCE
   Customer App Design System
======================================== */

:root {
  --saj-turquoise: #08B8C8;
  --saj-turquoise-dark: #0796A7;
  --saj-navy: #071A4A;

  --white: #FFFFFF;
  --background: #F6FAFC;
  --light-turquoise: #EAFBFC;

  --text-primary: #071A4A;
  --text-secondary: #64748B;

  --border: #E5EDF2;

  --radius-small: 12px;
  --radius-medium: 18px;
  --radius-large: 28px;
}


/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background: #EAF0F4;
  color: var(--text-primary);
}


/* APP */

#app {
  width: 100%;
  min-height: 100vh;
}


/* ========================================
   WELCOME SCREEN
======================================== */

.welcome-screen {
  width: 100%;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at top right,
      rgba(8, 184, 200, 0.13),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #FFFFFF 0%,
      #F8FCFD 100%
    );

  display: flex;
  flex-direction: column;

  justify-content: space-between;
  align-items: center;

  padding:
    max(40px, env(safe-area-inset-top))
    24px
    max(24px, env(safe-area-inset-bottom));
}


/* MAIN CONTENT */

.welcome-content {
  width: 100%;
  max-width: 430px;

  flex: 1;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  text-align: center;
}


/* LOGO */

.saj-logo {
  width: 220px;
  max-width: 70%;

  height: auto;

  object-fit: contain;

  margin-bottom: 45px;
}


/* TEXT */

.welcome-text {
  max-width: 380px;
}

.welcome-text h1 {
  color: var(--saj-navy);

  font-size: 34px;
  line-height: 1.12;

  font-weight: 750;

  letter-spacing: -0.8px;

  margin-bottom: 16px;
}

.welcome-text p {
  color: var(--text-secondary);

  font-size: 16px;
  line-height: 1.65;

  padding: 0 8px;
}


/* ACTIONS */

.welcome-actions {
  width: 100%;

  margin-top: 40px;

  display: flex;
  flex-direction: column;

  gap: 12px;
}


/* BUTTON BASE */

button {
  width: 100%;

  min-height: 56px;

  border-radius: var(--radius-small);

  font-size: 16px;
  font-weight: 650;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}


/* PRIMARY */

.primary-btn {
  border: none;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--saj-turquoise),
      var(--saj-turquoise-dark)
    );

  box-shadow:
    0 10px 24px rgba(8, 184, 200, 0.20);
}

.primary-btn:hover {
  transform: translateY(-1px);

  box-shadow:
    0 14px 28px rgba(8, 184, 200, 0.25);
}


/* SECONDARY */

.secondary-btn {
  background: var(--white);

  color: var(--saj-navy);

  border: 1px solid var(--border);
}

.secondary-btn:hover {
  background: var(--background);
}


/* BOTTOM BROKER NOTE */

.broker-note {
  color: #8493A6;

  font-size: 12px;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding-top: 25px;
}

.broker-note .dot {
  color: var(--saj-turquoise);
}


/* ========================================
   DESKTOP PREVIEW
   Keeps our development preview looking
   like an app rather than a website.
======================================== */

@media (min-width: 700px) {

  body {
    padding: 30px;
  }

  #app {
    max-width: 460px;
    min-height: calc(100vh - 60px);

    margin: 0 auto;

    background: var(--white);

    border-radius: 30px;

    overflow: hidden;

    box-shadow:
      0 25px 70px rgba(7, 26, 74, 0.12);
  }

  .welcome-screen {
    min-height: calc(100vh - 60px);
  }
}


/* SMALL PHONES */

@media (max-width: 380px) {

  .saj-logo {
    width: 185px;
    margin-bottom: 32px;
  }

  .welcome-text h1 {
    font-size: 29px;
  }

  .welcome-text p {
    font-size: 15px;
  }

  .welcome-actions {
    margin-top: 30px;
  }
}

/* ========================================
   ACCOUNT TYPE SCREEN
======================================== */

.account-type-screen {
  width: 100%;
  min-height: 100vh;
  background: var(--white);

  display: flex;
  flex-direction: column;

  padding:
    max(28px, env(safe-area-inset-top))
    24px
    max(28px, env(safe-area-inset-bottom));
}


/* HEADER */

.screen-header {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;

  min-height: 60px;
}


.back-btn {
  width: 44px;
  min-height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--white);
  color: var(--saj-navy);

  font-size: 22px;
  font-weight: 500;

  padding: 0;

  box-shadow: none;
}


.back-btn:hover {
  background: var(--background);
  transform: none;
}


.small-logo {
  width: 82px;
  height: auto;

  object-fit: contain;

  position: absolute;

  left: 50%;
  transform: translateX(-50%);
}


/* CONTENT */

.account-type-content {
  width: 100%;
  max-width: 430px;

  margin: 55px auto 0;
}


/* TITLE */

.screen-title {
  margin-bottom: 35px;
}


.step-label {
  display: inline-block;

  color: var(--saj-turquoise-dark);

  background: var(--light-turquoise);

  font-size: 11px;
  font-weight: 750;

  letter-spacing: 1.2px;

  padding: 7px 10px;

  border-radius: 8px;

  margin-bottom: 17px;
}


.screen-title h1 {
  color: var(--saj-navy);

  font-size: 30px;
  line-height: 1.18;

  letter-spacing: -0.6px;

  margin-bottom: 12px;
}


.screen-title p {
  color: var(--text-secondary);

  font-size: 15px;
  line-height: 1.6;
}


/* ACCOUNT OPTIONS */

.account-options {
  display: flex;
  flex-direction: column;

  gap: 14px;
}


.account-card {
  width: 100%;
  min-height: 112px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 18px;

  padding: 18px;

  display: flex;
  align-items: center;

  text-align: left;

  box-shadow:
    0 8px 25px rgba(7, 26, 74, 0.05);
}


.account-card:hover {
  background: #FBFEFF;

  border-color:
    rgba(8, 184, 200, 0.45);

  transform: translateY(-2px);

  box-shadow:
    0 12px 28px rgba(7, 26, 74, 0.08);
}


/* ICON */

.account-icon {
  width: 58px;
  height: 58px;

  flex-shrink: 0;

  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--light-turquoise);

  font-size: 27px;

  margin-right: 16px;
}


/* ACCOUNT TEXT */

.account-info {
  flex: 1;
}


.account-info h2 {
  color: var(--saj-navy);

  font-size: 18px;
  font-weight: 700;

  margin-bottom: 6px;
}


.account-info p {
  color: var(--text-secondary);

  font-size: 13px;
  line-height: 1.45;

  font-weight: 400;
}


/* ARROW */

.account-arrow {
  color: var(--saj-turquoise-dark);

  font-size: 22px;

  margin-left: 10px;
}


/* HELP */

.account-help {
  margin-top: 40px;

  text-align: center;

  padding-top: 25px;

  border-top: 1px solid var(--border);
}


.account-help p {
  color: var(--text-secondary);

  font-size: 13px;

  margin-bottom: 6px;
}


.text-btn {
  width: auto;
  min-height: auto;

  border: none;
  background: transparent;

  color: var(--saj-turquoise-dark);

  font-size: 14px;
  font-weight: 700;

  padding: 6px;
}


.text-btn:hover {
  background: transparent;
  transform: none;
}


/* DESKTOP APP PREVIEW */

@media (min-width: 700px) {

  .account-type-screen {
    min-height: calc(100vh - 60px);
  }

}


/* SMALL PHONES */

@media (max-width: 380px) {

  .account-type-content {
    margin-top: 35px;
  }

  .screen-title h1 {
    font-size: 27px;
  }

  .account-card {
    min-height: 104px;
    padding: 15px;
  }

  .account-icon {
    width: 52px;
    height: 52px;
  }

}

/* ========================================
   INDIVIDUAL REGISTRATION
======================================== */

.registration-screen {
  width: 100%;
  min-height: 100vh;

  background: var(--white);

  display: flex;
  flex-direction: column;

  padding:
    max(28px, env(safe-area-inset-top))
    24px
    max(28px, env(safe-area-inset-bottom));
}


.registration-content {
  width: 100%;
  max-width: 430px;

  margin: 38px auto 0;
}


/* PROGRESS */

.registration-progress {
  width: 100%;
  margin-bottom: 32px;
}


.progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 10px;

  color: var(--text-secondary);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
}


.progress-info span:first-child {
  color: var(--saj-turquoise-dark);
}


.progress-track {
  width: 100%;
  height: 5px;

  background: #EAF0F3;

  border-radius: 20px;
  overflow: hidden;
}


.progress-fill {
  width: 50%;
  height: 100%;

  background: var(--saj-turquoise);

  border-radius: 20px;
}


/* FORM */

.registration-form {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 20px;

  margin-top: 30px;
}


.form-group {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 8px;
}


.form-group label {
  color: var(--saj-navy);

  font-size: 14px;
  font-weight: 650;
}


.form-group input {
  width: 100%;
  height: 54px;

  padding: 0 16px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--white);

  color: var(--saj-navy);

  font-size: 15px;

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}


.form-group input::placeholder {
  color: #A3AFBD;
}


.form-group input:focus {
  border-color: var(--saj-turquoise);

  box-shadow:
    0 0 0 3px rgba(8, 184, 200, 0.10);
}


/* PHONE NUMBER */

.phone-input {
  width: 100%;

  display: flex;

  border: 1px solid var(--border);
  border-radius: 12px;

  overflow: hidden;

  background: var(--white);

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}


.phone-input:focus-within {
  border-color: var(--saj-turquoise);

  box-shadow:
    0 0 0 3px rgba(8, 184, 200, 0.10);
}


.country-code {
  min-width: 105px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--background);

  color: var(--saj-navy);

  font-size: 14px;
  font-weight: 650;

  border-right: 1px solid var(--border);
}


.phone-input input {
  flex: 1;

  min-width: 0;

  border: none;
  border-radius: 0;

  box-shadow: none;
}


.phone-input input:focus {
  border: none;
  box-shadow: none;
}


/* FIELD NOTE */

.field-note {
  color: var(--text-secondary);

  font-size: 11px;
  line-height: 1.4;
}


/* CONTINUE BUTTON */

.continue-btn {
  margin-top: 8px;
}


/* SECURITY NOTE */

.secure-note {
  width: 100%;

  display: flex;
  align-items: flex-start;

  gap: 10px;

  margin-top: 25px;

  padding: 14px;

  background: var(--light-turquoise);

  border-radius: 12px;
}


.secure-note span {
  font-size: 15px;
}


.secure-note p {
  color: var(--text-secondary);

  font-size: 11px;
  line-height: 1.5;
}


/* DESKTOP PREVIEW */

@media (min-width: 700px) {

  .registration-screen {
    min-height: calc(100vh - 60px);
  }

}


/* SMALL PHONES */

@media (max-width: 380px) {

  .registration-content {
    margin-top: 25px;
  }

  .registration-form {
    gap: 16px;
  }

  .form-group input,
  .country-code {
    height: 50px;
  }

}

/* ========================================
   ACCOUNT SECURITY
======================================== */

.terms-row {
  width: 100%;

  display: flex;
  align-items: flex-start;

  gap: 11px;

  color: var(--text-secondary);

  font-size: 12px;
  line-height: 1.6;

  cursor: pointer;
}


.terms-row input[type="checkbox"] {
  width: 18px;
  height: 18px;

  flex-shrink: 0;

  margin-top: 2px;

  accent-color: var(--saj-turquoise);

  cursor: pointer;
}


.terms-row span {
  flex: 1;
}


.inline-link {
  display: inline;

  width: auto;
  min-height: auto;

  padding: 0;

  border: none;
  border-radius: 0;

  background: transparent;

  color: var(--saj-turquoise-dark);

  font-size: inherit;
  font-weight: 700;

  text-decoration: none;

  cursor: pointer;
}


.inline-link:hover {
  background: transparent;
  transform: none;

  text-decoration: underline;
}

/* ========================================
   OTP VERIFICATION
======================================== */

.otp-input {
  text-align: center;

  font-size: 28px !important;
  font-weight: 750;

  letter-spacing: 12px;

  color: var(--saj-navy);

  padding-left: 28px !important;
}


.otp-input::placeholder {
  color: #C7D1DA;

  letter-spacing: 12px;
}


/* RESEND CODE */

.otp-resend {
  width: 100%;

  margin-top: 30px;

  padding-top: 22px;

  border-top: 1px solid var(--border);

  text-align: center;
}


.otp-resend p {
  color: var(--text-secondary);

  font-size: 13px;

  margin-bottom: 4px;
}


.otp-resend .text-btn {
  color: var(--saj-turquoise-dark);

  font-size: 14px;
  font-weight: 700;
}


/* MOBILE */

@media (max-width: 380px) {

  .otp-input {
    font-size: 24px !important;
    letter-spacing: 9px;
  }

}

/* ========================================
   SAJ CUSTOMER APP - HOME
======================================== */

.customer-app {
  width: 100%;
  min-height: 100vh;

  background: #F6FAFC;

  padding-bottom:
    calc(95px + env(safe-area-inset-bottom));
}


/* HEADER */

.home-header {
  position: relative;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    max(22px, env(safe-area-inset-top))
    22px
    10px;
}

.home-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}


.home-logo {
  width: 105px;
  height: auto;
  display: block;
}


.notification-btn {
  margin-left: auto;
  width: 44px;
  min-height: 44px;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--white);

  font-size: 18px;

  padding: 0;

  box-shadow:
    0 5px 18px rgba(7, 26, 74, 0.05);
}


.notification-dot {
  width: 7px;
  height: 7px;

  position: absolute;

  top: 9px;
  right: 9px;

  border-radius: 50%;

  background: var(--saj-turquoise);

  border: 2px solid var(--white);
}


/* WELCOME */

.home-welcome {
  padding: 22px 22px 26px;
}


.home-welcome p {
  color: var(--text-secondary);

  font-size: 14px;

  margin-bottom: 3px;
}


.home-welcome h1 {
  color: var(--saj-navy);

  font-size: 29px;
  line-height: 1.2;

  letter-spacing: -0.5px;

  margin-bottom: 7px;
}


.home-welcome > span {
  color: var(--text-secondary);

  font-size: 13px;
}


/* GET INSURANCE HERO */

.insurance-hero {
  width: calc(100% - 44px);
  min-height: 185px;

  margin: 0 22px;

  padding: 23px;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;

  text-align: left;

  border: none;
  border-radius: 22px;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--saj-navy) 0%,
      #0B3470 100%
    );

  box-shadow:
    0 16px 35px rgba(7, 26, 74, 0.16);
}


.insurance-hero::after {
  content: "";

  width: 180px;
  height: 180px;

  position: absolute;

  right: -70px;
  top: -65px;

  border-radius: 50%;

  background:
    rgba(8, 184, 200, 0.18);
}


.insurance-hero:hover {
  transform: translateY(-2px);

  box-shadow:
    0 19px 40px rgba(7, 26, 74, 0.20);
}


.insurance-hero-text {
  width: 75%;
  position: relative;
  z-index: 2;
}


.hero-label {
  display: inline-block;

  margin-bottom: 10px;

  color: #8FE8EE;

  font-size: 10px;
  font-weight: 750;

  letter-spacing: 1.2px;
}


.insurance-hero h2 {
  color: var(--white);

  font-size: 25px;

  margin-bottom: 8px;
}


.insurance-hero p {
  color: rgba(255, 255, 255, 0.76);

  font-size: 12px;
  font-weight: 400;

  line-height: 1.55;
}


.hero-action {
  margin-top: 16px;

  color: var(--white);

  font-size: 13px;
  font-weight: 700;
}


.hero-shield {
  position: absolute;

  right: 18px;
  bottom: 21px;

  z-index: 2;

  font-size: 47px;

  opacity: 0.95;
}


/* HOME SECTIONS */

.home-section {
  width: 100%;

  padding: 28px 22px 0;
}


.section-heading {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 15px;
}


.section-heading h2 {
  color: var(--saj-navy);

  font-size: 17px;
}


.section-link {
  width: auto;
  min-height: auto;

  border: none;

  background: transparent;

  color: var(--saj-turquoise-dark);

  font-size: 12px;
  font-weight: 700;

  padding: 5px;
}


.section-link:hover {
  background: transparent;
  transform: none;
}


/* QUICK ACCESS */

.quick-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 9px;
}


.quick-card {
  min-width: 0;
  min-height: 88px;

  padding: 11px 5px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 8px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: var(--white);

  color: var(--saj-navy);

  font-size: 11px;
  font-weight: 650;

  box-shadow:
    0 6px 18px rgba(7, 26, 74, 0.04);
}


.quick-card:hover {
  background: #FBFEFF;

  border-color:
    rgba(8, 184, 200, 0.40);

  transform: translateY(-2px);
}


.quick-icon {
  width: 37px;
  height: 37px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background: var(--light-turquoise);

  font-size: 18px;
}


/* EMPTY POLICY STATE */

.empty-state {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 14px;

  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: var(--white);

  box-shadow:
    0 6px 18px rgba(7, 26, 74, 0.04);
}


.empty-icon {
  width: 47px;
  height: 47px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: var(--light-turquoise);

  font-size: 21px;
}


.empty-state h3 {
  color: var(--saj-navy);

  font-size: 14px;

  margin-bottom: 4px;
}


.empty-state p {
  color: var(--text-secondary);

  font-size: 11px;
  line-height: 1.45;
}


/* ========================================
   BOTTOM NAVIGATION
======================================== */

.bottom-nav {
  width: 100%;
  height: 76px;

  position: fixed;

  left: 0;
  bottom: 0;

  z-index: 50;

  display: grid;

  grid-template-columns:
    1fr 1fr 70px 1fr 1fr;

  align-items: center;

  padding:
    5px 12px
    max(5px, env(safe-area-inset-bottom));

  background:
    rgba(255, 255, 255, 0.97);

  border-top:
    1px solid var(--border);

  box-shadow:
    0 -8px 30px rgba(7, 26, 74, 0.06);
}


.nav-item {
  width: 100%;
  min-height: 55px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 3px;

  border: none;
  border-radius: 10px;

  background: transparent;

  color: #8B98A8;

  padding: 0;
}


.nav-item span {
  font-size: 20px;
}


.nav-item small {
  font-size: 10px;
  font-weight: 650;
}


.nav-item.active {
  color: var(--saj-turquoise-dark);
}


.nav-item:hover {
  background: var(--background);
  transform: none;
}


/* CENTRAL + BUTTON */

.nav-main {
  width: 54px;
  min-height: 54px;
  height: 54px;

  justify-self: center;

  border: 5px solid #F6FAFC;
  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--saj-turquoise),
      var(--saj-turquoise-dark)
    );

  color: var(--white);

  font-size: 28px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-19px);

  box-shadow:
    0 8px 22px rgba(8, 184, 200, 0.30);
}


.nav-main:hover {
  transform: translateY(-21px);
}


/* DESKTOP APP PREVIEW */

@media (min-width: 700px) {

  .customer-app {
    min-height: calc(100vh - 60px);
  }


  .bottom-nav {
    width: 460px;

    left: 50%;

    transform: translateX(-50%);

    bottom: 30px;

    border-radius:
      0 0 30px 30px;
  }

}


/* SMALL PHONES */

@media (max-width: 380px) {

  .home-header,
  .home-welcome {
    padding-left: 18px;
    padding-right: 18px;
  }


  .insurance-hero {
    width: calc(100% - 36px);

    margin-left: 18px;
    margin-right: 18px;
  }


  .home-section {
    padding-left: 18px;
    padding-right: 18px;
  }


  .quick-grid {
    gap: 6px;
  }


  .quick-card {
    font-size: 10px;
  }

}

/* ========================================
   GET INSURANCE
   INSURANCE TYPE SELECTION
======================================== */

.insurance-types-screen {
  width: 100%;
  min-height: 100vh;

  background: var(--background);

  padding:
    max(28px, env(safe-area-inset-top))
    22px
    40px;
}


/* HEADER */

.insurance-types-screen .screen-header {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 48px;
}


.header-title {
  position: absolute;

  left: 50%;
  transform: translateX(-50%);

  color: var(--saj-navy);

  font-size: 16px;
  font-weight: 700;

  white-space: nowrap;
}


/* CONTENT */

.insurance-types-content {
  width: 100%;
  max-width: 430px;

  margin: 40px auto 0;
}


.insurance-types-title {
  margin-bottom: 28px;
}


.insurance-types-title h1 {
  color: var(--saj-navy);

  font-size: 29px;
  line-height: 1.18;

  letter-spacing: -0.5px;

  margin-bottom: 11px;
}


.insurance-types-title p {
  color: var(--text-secondary);

  font-size: 14px;
  line-height: 1.55;
}


/* INSURANCE CARDS */

.insurance-type-grid {
  display: flex;
  flex-direction: column;

  gap: 12px;
}


.insurance-type-card {
  width: 100%;
  min-height: 100px;

  display: flex;
  align-items: center;

  padding: 16px;

  text-align: left;

  border: 1px solid var(--border);
  border-radius: 17px;

  background: var(--white);

  box-shadow:
    0 6px 20px rgba(7, 26, 74, 0.045);
}


.insurance-type-card:hover {
  background: #FBFEFF;

  border-color:
    rgba(8, 184, 200, 0.45);

  transform: translateY(-2px);

  box-shadow:
    0 10px 25px rgba(7, 26, 74, 0.075);
}


/* ICON */

.insurance-type-icon {
  width: 55px;
  height: 55px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-right: 15px;

  border-radius: 15px;

  background: var(--light-turquoise);

  font-size: 25px;
}


/* TEXT */

.insurance-type-info {
  flex: 1;
}


.insurance-type-info h2 {
  color: var(--saj-navy);

  font-size: 16px;
  font-weight: 700;

  margin-bottom: 5px;
}


.insurance-type-info p {
  color: var(--text-secondary);

  font-size: 11px;
  font-weight: 400;

  line-height: 1.45;
}


/* ARROW */

.insurance-type-arrow {
  flex-shrink: 0;

  margin-left: 10px;

  color: var(--saj-turquoise-dark);

  font-size: 21px;
}


/* DESKTOP PREVIEW */

@media (min-width: 700px) {

  .insurance-types-screen {
    min-height: calc(100vh - 60px);
  }

}


/* SMALL PHONES */

@media (max-width: 380px) {

  .insurance-types-screen {
    padding-left: 18px;
    padding-right: 18px;
  }


  .insurance-types-content {
    margin-top: 30px;
  }


  .insurance-types-title h1 {
    font-size: 26px;
  }


  .insurance-type-card {
    min-height: 94px;

    padding: 14px;
  }


  .insurance-type-icon {
    width: 50px;
    height: 50px;

    font-size: 22px;
  }

}

/* ========================================
   MOTOR INSURANCE FORM
======================================== */

/* SELECT / DROPDOWN */

.form-select {
  width: 100%;
  height: 54px;

  padding: 0 16px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--white);

  color: var(--saj-navy);

  font-size: 15px;

  outline: none;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}


.form-select:focus {
  border-color: var(--saj-turquoise);

  box-shadow:
    0 0 0 3px rgba(8, 184, 200, 0.10);
}


/* QAR MONEY INPUT */

.money-input {
  width: 100%;

  display: flex;
  align-items: center;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--white);

  overflow: hidden;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}


.money-input:focus-within {
  border-color: var(--saj-turquoise);

  box-shadow:
    0 0 0 3px rgba(8, 184, 200, 0.10);
}


.money-input > span {
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 15px;

  background: var(--background);

  border-right: 1px solid var(--border);

  color: var(--saj-navy);

  font-size: 13px;
  font-weight: 700;
}


.money-input input {
  flex: 1;

  min-width: 0;
  height: 54px;

  padding: 0 15px;

  border: none !important;
  border-radius: 0 !important;

  outline: none;

  box-shadow: none !important;

  color: var(--saj-navy);

  font-size: 15px;
}


.money-input input:focus {
  border: none;
  box-shadow: none;
}


/* SMALL PHONES */

@media (max-width: 380px) {

  .form-select,
  .money-input > span,
  .money-input input {
    height: 50px;
  }

}

.hidden-field {
  display: none;
}
/* MOTOR REVIEW - VEHICLE DETAILS */

#motorRequestSummary .motor-review-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

#motorRequestSummary .motor-review-card h2 {
  margin: 0 0 16px;
  color: var(--saj-navy);
  font-size: 17px;
  font-weight: 700;
}

#motorRequestSummary .motor-review-card dl {
  margin: 0;
}

#motorRequestSummary .motor-review-card dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

#motorRequestSummary .motor-review-card dt {
  color: var(--text-secondary);
}

#motorRequestSummary .motor-review-card dd {
  margin: 0;
  color: var(--saj-navy);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

/* MY REQUESTS - REQUEST CARDS */

#requestsList {
  display: grid;
  gap: 16px;
}

#requestsList .request-card {
  display: block;
}

#requestsList .request-card dl {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

#requestsList .request-card dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

#requestsList .request-card dt {
  color: var(--text-secondary);
}

#requestsList .request-card dd {
  margin: 0;
  color: var(--saj-navy);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

/* ========================================
   SAJ BROKERS BMS - SCOPED DASHBOARD
======================================== */

#app:has(> .saj-bms) {
  max-width: none;
  border-radius: 16px;
  box-shadow: none;
  background: var(--background);
}

.saj-bms {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: calc(100vh - 60px);
  background: var(--background);
  color: var(--saj-navy);
}

.saj-bms .bms-sidebar {
  display: flex;
  flex-direction: column;
  padding: 32px 18px 24px;
  background: var(--saj-navy);
  color: var(--white);
}

.saj-bms .bms-brand {
  padding: 0 12px 34px;
}

.saj-bms .bms-brand-name {
  color: var(--saj-turquoise);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 1px;
}

.saj-bms .bms-brand-name span {
  color: var(--white);
  font-size: 15px;
  letter-spacing: 1.8px;
}

.saj-bms .bms-brand p {
  margin-top: 8px;
  color: #B6C6DE;
  font-size: 11px;
  line-height: 1.5;
}

.saj-bms .bms-navigation {
  display: grid;
  gap: 10px;
}

.saj-bms .bms-nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #C7D3E5;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: default;
  box-shadow: none;
}

.saj-bms .bms-nav-button.is-active {
  background: #123451;
  border-color: #235267;
  color: #70E2EB;
}

.saj-bms .bms-nav-button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.saj-bms .bms-nav-button:focus-visible {
  outline: 2px solid var(--saj-turquoise);
  outline-offset: 3px;
}

.saj-bms .bms-sidebar-note {
  margin-top: auto;
  padding: 32px 12px 0;
  color: #B6C6DE;
  font-size: 11px;
}

.saj-bms .bms-workspace {
  min-width: 0;
}

.saj-bms .bms-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 36px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.saj-bms .bms-eyebrow {
  color: var(--saj-turquoise-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.4px;
}

.saj-bms .bms-area-title {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
}

.saj-bms .bms-staff-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
}

.saj-bms .bms-staff-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--light-turquoise);
  color: var(--saj-turquoise-dark);
  font-size: 11px;
  font-weight: 800;
}

.saj-bms .bms-staff-placeholder strong,
.saj-bms .bms-staff-placeholder div > span {
  display: block;
}

.saj-bms .bms-staff-placeholder strong {
  font-size: 12px;
  font-weight: 650;
}

.saj-bms .bms-staff-placeholder div > span {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.5;
}

.saj-bms .bms-main {
  padding: 40px 36px;
}

.saj-bms .bms-page-heading {
  margin-bottom: 30px;
}

.saj-bms .bms-page-heading h1 {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.7px;
}

.saj-bms .bms-page-description {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.saj-bms .bms-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.saj-bms .bms-summary-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--saj-turquoise);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 5px 16px rgba(7, 26, 74, 0.035);
}

.saj-bms .bms-summary-card h2 {
  min-height: 40px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.saj-bms .bms-summary-value {
  margin-top: 16px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 1200px) {
  .saj-bms .bms-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .saj-bms {
    grid-template-columns: 1fr;
  }

  .saj-bms .bms-sidebar {
    padding: 22px;
  }

  .saj-bms .bms-brand {
    padding: 0 0 20px;
  }

  .saj-bms .bms-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saj-bms .bms-sidebar-note {
    padding: 18px 0 0;
  }

  .saj-bms .bms-topbar,
  .saj-bms .bms-main {
    padding: 24px;
  }
}

@media (max-width: 699px) {
  #app:has(> .saj-bms) {
    border-radius: 0;
  }

  .saj-bms {
    min-height: 100vh;
  }
}

@media (max-width: 480px) {
  .saj-bms .bms-summary-grid {
    grid-template-columns: 1fr;
  }

  .saj-bms .bms-nav-button {
    gap: 8px;
    padding: 10px;
    font-size: 12px;
  }
}

/* SAJ BROKERS BMS - MOTOR REQUESTS LIST */

.saj-bms .bms-request-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.saj-bms .bms-request-table-wrap:focus-visible {
  outline: 2px solid var(--saj-turquoise);
  outline-offset: 3px;
}

.saj-bms .bms-request-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
}

.saj-bms .bms-table-caption {
  padding: 18px 20px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: left;
}

.saj-bms .bms-request-table th {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: #F1F7FA;
  color: var(--saj-navy);
  font-weight: 700;
}

.saj-bms .bms-request-table td {
  max-width: 220px;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.saj-bms .bms-request-table td:first-child {
  font-weight: 650;
}

.saj-bms .bms-view-details {
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
  box-shadow: none;
}

.saj-bms .bms-list-state {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.saj-bms .bms-list-state h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.saj-bms .bms-list-state p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.saj-bms .bms-navigation button {
  cursor: pointer;
}

/* SAJ BROKERS BMS - READ-ONLY MOTOR REQUEST DETAILS */
.saj-bms .bms-view-details { cursor: pointer; }
.saj-bms .bms-view-details:focus-visible { outline: 2px solid var(--saj-turquoise); outline-offset: 3px; }
.saj-bms .bms-back-requests { margin-bottom: 22px; color: var(--saj-navy); }
.saj-bms .bms-detail-card { margin-bottom: 20px; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.saj-bms .bms-detail-card h2 { margin-bottom: 18px; font-size: 17px; color: var(--saj-navy); }
.saj-bms .bms-detail-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.saj-bms .bms-detail-card dl > div { min-width: 0; }
.saj-bms .bms-detail-card dt { margin-bottom: 5px; color: var(--text-secondary); font-size: 12px; }
.saj-bms .bms-detail-card dd { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .saj-bms .bms-detail-card dl { grid-template-columns: 1fr; }
}

/* SAJ BROKERS BMS - WORKFLOW STATUS PANEL */
.saj-bms .bms-workflow-card { border-top: 3px solid var(--saj-turquoise); }
.saj-bms .bms-workflow-current { margin-bottom: 18px; font-size: 14px; line-height: 1.6; }
.saj-bms .bms-workflow-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.saj-bms .bms-workflow-controls label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 12px; }
.saj-bms .bms-workflow-controls select { max-width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--saj-navy); font: inherit; }
.saj-bms .bms-workflow-controls button { min-height: 40px; color: var(--saj-navy); }
.saj-bms .bms-workflow-controls button:disabled { opacity: 0.6; cursor: wait; }
.saj-bms .bms-workflow-error { margin-top: 14px; color: #9B2635; font-size: 13px; line-height: 1.6; }

/* SAJ BROKERS BMS - READ-ONLY QUOTATIONS */
.saj-bms .bms-quotations-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.saj-bms .bms-quotations-header h2 { margin-bottom: 0; }
.saj-bms .bms-quotations-header button:disabled { opacity: 0.6; cursor: not-allowed; }
.saj-bms .bms-quotation-item { padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); }
.saj-bms .bms-quotation-item + .bms-quotation-item { margin-top: 16px; }
.saj-bms .bms-quotation-item h3 { margin-bottom: 16px; color: var(--saj-navy); font-size: 15px; overflow-wrap: anywhere; }

/* SAJ BROKERS BMS - ADD MOTOR QUOTATION FORM */
.saj-bms .bms-quotation-form .bms-page-description { margin-bottom: 22px; }
.saj-bms .bms-quotation-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.saj-bms .bms-quotation-fields > div { min-width: 0; }
.saj-bms .bms-quotation-fields label { display: block; margin-bottom: 7px; color: var(--saj-navy); font-size: 13px; font-weight: 600; }
.saj-bms .bms-quotation-fields input:not([type="checkbox"]), .saj-bms .bms-quotation-fields select, .saj-bms .bms-quotation-fields textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--saj-navy); font: inherit; font-size: 14px; }
.saj-bms .bms-quotation-fields textarea { resize: vertical; }
.saj-bms .bms-quotation-fields input:disabled { background: #F1F7FA; }
.saj-bms .bms-quotation-fields .bms-checkbox-label { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 400; }
.saj-bms .bms-checkbox-label input { width: auto; margin: 0; }
.saj-bms .bms-form-note { margin-top: 7px; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.saj-bms .bms-form-wide { grid-column: 1 / -1; }
.saj-bms .bms-save-quotation { margin-top: 24px; background: var(--saj-navy); color: var(--white); }
.saj-bms .bms-save-quotation:disabled { opacity: 0.6; cursor: wait; }
.saj-bms .bms-form-errors { margin-top: 22px; padding: 16px; border: 1px solid #E6B7BE; border-radius: 8px; color: #9B2635; font-size: 13px; line-height: 1.6; }
.saj-bms .bms-form-errors ul { padding-left: 20px; margin-top: 8px; }
@media (max-width: 699px) {
  .saj-bms .bms-quotation-fields { grid-template-columns: 1fr; }
}

/* SAJ BROKERS BMS - QUOTATION STAFF STATUS ACTIONS */
.saj-bms .bms-quotation-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.saj-bms .bms-quotation-actions button:disabled { opacity: 0.6; cursor: wait; }
.saj-bms .bms-quotation-action-error { margin-top: 16px; padding: 14px; border: 1px solid #E6B7BE; border-radius: 8px; color: #9B2635; font-size: 13px; line-height: 1.6; }
.saj-bms .bms-quotation-action-error ul { margin-top: 8px; padding-left: 20px; }

/* CUSTOMER MOTOR INSURANCE OPTIONS */
.motor-options-screen #motorOptionsBackToRequestBtn { margin: 0 0 20px; }
.motor-options-screen #motorOptionsList { display: grid; gap: 18px; }
.motor-options-screen .motor-option-card { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
.motor-options-screen .motor-option-card h2 { margin-bottom: 18px; color: var(--saj-navy); font-size: 18px; overflow-wrap: anywhere; }
.motor-options-screen .motor-option-card dl { margin: 0; }
.motor-options-screen .motor-option-card dl > div { padding: 12px 0; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.6; }
.motor-options-screen .motor-option-card dt { margin-bottom: 5px; color: var(--text-secondary); }
.motor-options-screen .motor-option-card dd { margin: 0; color: var(--saj-navy); overflow-wrap: anywhere; white-space: pre-line; }
.motor-options-screen .motor-option-card ul { margin: 0; padding-left: 20px; }
.motor-options-screen .motor-option-card li + li { margin-top: 5px; }
.motor-options-screen #motorOptionsState { margin-bottom: 18px; }
.motor-options-screen #motorOptionsState[hidden] { display: none; }

/* SAJ BROKERS BMS - READ-ONLY INSURANCE PARTNERS */
.saj-bms .bms-partners-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.saj-bms .bms-partners-heading > div { flex: 1 1 280px; }
.saj-bms .bms-partners-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.saj-bms .bms-partners-content { margin-top: 24px; }
.saj-bms .bms-partners-heading .bms-view-details:disabled, .saj-bms .bms-partners-content .bms-view-details:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 1200px) { .saj-bms .bms-partners-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .saj-bms .bms-partners-summary { grid-template-columns: 1fr; } }
.saj-bms .bms-partner-company { display: flex; align-items: center; gap: 12px; }
.saj-bms .bms-partner-logo { width: 40px; height: 40px; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; color: #94a3b8; overflow: hidden; }
.saj-bms .bms-partner-logo img { width: 100%; height: 100%; object-fit: contain; }

.saj-bms .bms-partner-status-panel { margin-top: 24px; }
.saj-bms .bms-partner-status-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Read-only Motor premium acquisition history */
.saj-bms .bms-acquisition-history h2 { margin-bottom: 0; }
.saj-bms .bms-acquisition-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 0; border: 0; background: transparent; color: var(--saj-navy); font: inherit; text-align: left; cursor: pointer; }
.saj-bms .bms-acquisition-toggle > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.saj-bms .bms-acquisition-toggle-action { flex-shrink: 0; font-size: 13px; }
.saj-bms .bms-acquisition-toggle:focus-visible { outline: 2px solid var(--saj-navy); outline-offset: 6px; border-radius: 4px; }
.saj-bms #bmsAcquisitionHistoryContent { margin-top: 20px; }
.saj-bms .bms-acquisition-notice { margin: 0 0 24px; line-height: 1.6; }
.saj-bms .bms-acquisition-attempt { margin: 0; }
.saj-bms .bms-acquisition-attempt + .bms-acquisition-attempt { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
/* Persistent account navigation preserves the existing Motor screen and drafts. */
.customer-auth-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 20px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.customer-auth-nav p { flex-basis: 100%; margin: 0; font-size: 0.85rem; }
.customer-auth-nav [hidden], #customerAccountPanel[hidden], #app[hidden] { display: none; }
.customer-account-panel { max-width: 680px; margin: 32px auto; padding: 24px; background: #fff; border-radius: 16px; }
.customer-account-panel button { margin: 8px 8px 8px 0; }

/* BMS visual refresh — scoped to staff screens; no customer or workflow overrides. */
#app:has(> .saj-bms) { border-radius: 0; }
.saj-bms {
  --bms-blue: #1559b5;
  --bms-ink: #122b50;
  --bms-muted: #52657c;
  --bms-line: #dce5ef;
  --bms-surface: #f4f7fc;
  grid-template-columns: 252px minmax(0, 1fr);
  background: var(--bms-surface);
  color: var(--bms-ink);
  font-size: 15px;
  line-height: 1.6;
}
.saj-bms .bms-sidebar { padding: 32px 16px 24px; background: #fff; color: var(--bms-ink); border-right: 1px solid var(--bms-line); }
.saj-bms .bms-brand { padding: 8px 16px 30px; }
.saj-bms .bms-brand-name { color: var(--bms-ink); font-size: 26px; letter-spacing: -.6px; }
.saj-bms .bms-brand-name span { color: var(--bms-blue); font-size: 14px; letter-spacing: 1px; }
.saj-bms .bms-brand p, .saj-bms .bms-sidebar-note { color: var(--bms-muted); font-size: 12px; }
.saj-bms .bms-navigation { gap: 7px; }
.saj-bms .bms-nav-button { padding: 13px 14px; min-height: 48px; font-size: 14px; color: #3e536f; border-radius: 9px; }
.saj-bms .bms-nav-button:hover:not(:disabled) { background: #f0f5fd; color: var(--bms-blue); }
.saj-bms .bms-nav-button.is-active { color: #fff; background: var(--bms-blue); border-color: var(--bms-blue); box-shadow: 0 4px 12px #1559b51a; }
.saj-bms .bms-nav-button.is-active:hover { background: #104994; color: #fff; }
.saj-bms .bms-topbar { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 22px; padding: 20px 36px; border-color: var(--bms-line); }
.saj-bms .bms-header-logo { display: block; width: 72px; height: 90px; object-fit: contain; }
.saj-bms .bms-area-title { color: var(--bms-ink); font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.25; letter-spacing: -.6px; }
.saj-bms .bms-eyebrow { color: #17559d; font-size: 11px; line-height: 1.5; letter-spacing: 1.3px; }
.saj-bms .bms-staff-placeholder { max-width: 265px; padding: 10px 14px; background: #f4f7fc; border: 1px solid var(--bms-line); border-radius: 12px; }
.saj-bms .bms-staff-placeholder strong { font-size: 13px; }
.saj-bms .bms-staff-placeholder div > span { font-size: 12px; color: var(--bms-muted); }
.saj-bms .bms-staff-avatar { border-radius: 50%; background: #e3edfc; color: #17559d; }
.saj-bms .bms-main { max-width: 1520px; width: 100%; margin-inline: auto; padding: 34px 36px 56px; }
.saj-bms .bms-page-heading { margin-bottom: 28px; }
.saj-bms .bms-page-heading h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.25; letter-spacing: -.9px; margin: 7px 0 10px; color: var(--bms-ink); }
.saj-bms .bms-page-description { color: var(--bms-muted); font-size: 15px; line-height: 1.7; max-width: 80ch; }
.saj-bms .bms-summary-grid { gap: 20px; }
.saj-bms .bms-summary-card { padding: 25px; border: 1px solid var(--bms-line); border-radius: 14px; border-top: 3px solid #6092d7; box-shadow: 0 4px 18px #173e6c06; }
.saj-bms .bms-summary-card h2 { font-size: 13px; font-weight: 600; color: var(--bms-muted); line-height: 1.5; }
.saj-bms .bms-summary-value { font-size: 38px; line-height: 1.2; letter-spacing: -1px; margin-top: 16px; color: var(--bms-ink); font-variant-numeric: tabular-nums; }
.saj-bms .bms-request-table-wrap { border: 1px solid var(--bms-line); border-radius: 14px; background: #fff; overflow-x: auto; box-shadow: 0 4px 20px #173e6c05; }
.saj-bms .bms-request-table { font-size: 14px; }
.saj-bms .bms-request-table th { padding: 16px 20px; background: #edf3fb; color: #36516f; font-size: 12px; line-height: 1.5; letter-spacing: .3px; }
.saj-bms .bms-request-table td { padding: 19px 20px; border-color: #e9eef5; vertical-align: middle; line-height: 1.6; }
.saj-bms .bms-request-table tbody tr:hover { background: #f7faff; }
.saj-bms .bms-request-table td:first-child { font-variant-numeric: tabular-nums; font-size: 13px; color: #174b89; }
.saj-bms .bms-detail-card { padding: 28px; border-color: var(--bms-line); border-radius: 14px; box-shadow: 0 3px 14px #173e6c04; }
.saj-bms .bms-detail-card h2 { font-size: 19px; line-height: 1.4; letter-spacing: -.3px; margin-bottom: 22px; color: var(--bms-ink); }
.saj-bms .bms-detail-card dl { gap: 22px 32px; }
.saj-bms .bms-detail-card dt { font-size: 13px; color: var(--bms-muted); }
.saj-bms .bms-detail-card dd { font-size: 15px; line-height: 1.65; }
.saj-bms .bms-quotation-item { padding: 24px; background: #f9fbfe; border-color: var(--bms-line); border-radius: 12px; }
.saj-bms .bms-quotation-item h3 { font-size: 18px; line-height: 1.4; }
.saj-bms .bms-workflow-card { border-top-color: var(--bms-blue); }
.saj-bms .bms-quotation-fields label { font-size: 14px; line-height: 1.5; }
.saj-bms .bms-quotation-fields input:not([type="checkbox"]), .saj-bms .bms-quotation-fields select, .saj-bms .bms-quotation-fields textarea { min-height: 46px; padding: 12px 14px; border-color: #c4d2e3; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.saj-bms .bms-quotation-fields textarea { min-height: 110px; }
.saj-bms .bms-form-note { font-size: 13px; color: var(--bms-muted); }
.saj-bms .bms-view-details, .saj-bms .bms-save-quotation { min-height: 42px; padding: 10px 17px; border: 1px solid #c6d7ee; border-radius: 8px; background: #edf4ff; color: #174d92; font-size: 14px; font-weight: 600; line-height: 1.4; }
.saj-bms .bms-save-quotation { background: var(--bms-blue); border-color: var(--bms-blue); color: #fff; }
.saj-bms .bms-view-details:hover:not(:disabled) { background: #dfeaff; }
.saj-bms .bms-save-quotation:hover:not(:disabled) { background: #104994; }
.saj-bms button:focus-visible, .saj-bms input:focus-visible, .saj-bms select:focus-visible, .saj-bms textarea:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.saj-bms .bms-form-errors, .saj-bms .bms-workflow-error { color: #922638; background: #fff5f5; font-size: 14px; line-height: 1.65; }
.saj-bms .bms-list-state { padding: 30px; border: 1px solid var(--bms-line); border-radius: 12px; background: #fff; }
@media (max-width: 1199px) {
  .saj-bms { grid-template-columns: 215px minmax(0, 1fr); }
  .saj-bms .bms-main, .saj-bms .bms-topbar { padding-inline: 24px; }
  .saj-bms .bms-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saj-bms .bms-topbar { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }
  .saj-bms .bms-header-logo { width: 64px; height: 80px; }
  .saj-bms .bms-staff-placeholder { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 899px) {
  .saj-bms { grid-template-columns: minmax(0, 1fr); }
  .saj-bms .bms-sidebar { padding: 20px; border-right: 0; border-bottom: 1px solid var(--bms-line); }
  .saj-bms .bms-brand { padding: 0 4px 18px; }
  .saj-bms .bms-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saj-bms .bms-nav-button { min-width: 0; }
  .saj-bms .bms-sidebar-note { padding: 16px 4px 0; }
}
@media (max-width: 599px) {
  .saj-bms .bms-main { padding: 25px 16px 40px; }
  .saj-bms .bms-topbar { padding: 18px 16px; gap: 14px; }
  .saj-bms .bms-sidebar { padding: 16px; }
  .saj-bms .bms-navigation { grid-template-columns: minmax(0, 1fr); }
  .saj-bms .bms-summary-grid, .saj-bms .bms-detail-card dl, .saj-bms .bms-quotation-fields { grid-template-columns: minmax(0, 1fr); }
  .saj-bms .bms-summary-card, .saj-bms .bms-detail-card, .saj-bms .bms-quotation-item { padding: 20px; }
  .saj-bms .bms-quotations-header, .saj-bms .bms-workflow-controls { align-items: stretch; }
  .saj-bms .bms-quotation-fields input, .saj-bms .bms-quotation-fields select, .saj-bms .bms-quotation-fields textarea { font-size: 16px; }
}
.saj-bms #bmsRequestsTableWrap .bms-request-table td:nth-child(7) { color: #174d92; font-weight: 650; background: #f3f7ff; }
.saj-bms .bms-workflow-current { padding: 14px 16px; border: 1px solid #c6d7ee; border-radius: 10px; background: #edf4ff; color: #173f73; }

/* BMS Round 2 — screenshot-based readability and density refinement. */
.saj-bms { font-size: 16px; line-height: 1.65; grid-template-columns: 248px minmax(0, 1fr); }
.saj-bms .bms-brand { padding: 8px 14px 24px; }
.saj-bms .bms-brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.saj-bms .bms-brand p { margin-top: 4px; font-size: 14px; color: var(--bms-muted); }
.saj-bms .bms-nav-button { font-size: 16px; line-height: 1.5; min-height: 54px; gap: 12px; padding: 14px; }
.saj-bms .bms-nav-button svg { width: 22px; height: 22px; }
.saj-bms .bms-sidebar-note { font-size: 14px; line-height: 1.6; }
.saj-bms .bms-topbar { grid-template-columns: 96px minmax(0, 1fr) auto; padding: 18px 32px; column-gap: 24px; }
.saj-bms .bms-header-logo { width: 96px; height: 120px; object-fit: contain; }
.saj-bms .bms-area-title { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; }
.saj-bms .bms-eyebrow { font-size: 13px; line-height: 1.5; letter-spacing: 1.2px; }
.saj-bms .bms-staff-placeholder { max-width: 340px; padding: 14px 18px; line-height: 1.6; }
.saj-bms .bms-staff-placeholder strong { font-size: 15px; }
.saj-bms .bms-staff-placeholder div > span { font-size: 14px; }
.saj-bms .bms-staff-avatar { width: 44px; height: 44px; font-size: 13px; }
.saj-bms .bms-main { max-width: none; margin-inline: 0; padding: 32px 32px 56px; }
.saj-bms .bms-page-heading { margin-bottom: 26px; }
.saj-bms .bms-page-heading h1 { font-size: clamp(28px, 2.6vw, 36px); margin: 8px 0 12px; line-height: 1.25; }
.saj-bms .bms-page-description { font-size: 16px; line-height: 1.7; }
.saj-bms .bms-summary-card h2 { font-size: 15px; }
.saj-bms .bms-summary-value { font-size: 40px; }
.saj-bms .bms-table-caption { padding: 19px 22px; font-size: 14px; line-height: 1.6; color: var(--bms-muted); }
.saj-bms .bms-request-table { font-size: 16px; line-height: 1.65; }
.saj-bms .bms-request-table th { padding: 17px 18px; font-size: 14px; line-height: 1.5; font-weight: 650; letter-spacing: 0; }
.saj-bms .bms-request-table td { max-width: none; padding: 22px 18px; vertical-align: middle; font-size: 16px; line-height: 1.65; }
.saj-bms .bms-request-table td:first-child { font-size: 14px; line-height: 1.6; }
.saj-bms #bmsRequestsTableWrap .bms-request-table { min-width: 1240px; table-layout: fixed; }
.saj-bms #bmsRequestsTableWrap th:nth-child(1) { width: 17%; }
.saj-bms #bmsRequestsTableWrap th:nth-child(2) { width: 13%; }
.saj-bms #bmsRequestsTableWrap th:nth-child(3) { width: 12%; }
.saj-bms #bmsRequestsTableWrap th:nth-child(4) { width: 10%; }
.saj-bms #bmsRequestsTableWrap th:nth-child(5) { width: 12%; }
.saj-bms #bmsRequestsTableWrap th:nth-child(6) { width: 10%; }
.saj-bms #bmsRequestsTableWrap th:nth-child(7) { width: 17%; }
.saj-bms #bmsRequestsTableWrap th:nth-child(8) { width: 9%; }
.saj-bms #bmsRequestsTableWrap .bms-request-table td:nth-child(7) { background: transparent; }
.saj-bms .bms-status-badge { display: inline-block; max-width: 100%; padding: 7px 11px; border: 1px solid #bed1ec; border-radius: 9px; background: #eaf2ff; color: #173f73; font-size: 14px; font-weight: 650; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }
.saj-bms #bmsRequestsTableWrap th:last-child, .saj-bms #bmsRequestsTableWrap td:last-child { text-align: center; }
.saj-bms .bms-view-details { font-size: 15px; padding: 11px 14px; min-height: 44px; }
.saj-bms .bms-request-table .bms-view-details { white-space: normal; width: 100%; max-width: 140px; }
.saj-bms .bms-detail-card dt, .saj-bms .bms-quotation-fields label { font-size: 15px; line-height: 1.6; }
.saj-bms .bms-detail-card dd, .saj-bms .bms-quotation-fields input:not([type="checkbox"]), .saj-bms .bms-quotation-fields select, .saj-bms .bms-quotation-fields textarea { font-size: 16px; line-height: 1.65; }
.saj-bms .bms-form-note { font-size: 14px; line-height: 1.65; }
@media (max-width: 1199px) {
  .saj-bms { grid-template-columns: 220px minmax(0, 1fr); }
  .saj-bms .bms-main { padding: 28px 24px 48px; }
  .saj-bms .bms-topbar { grid-template-columns: 88px minmax(0, 1fr); padding: 18px 24px; gap: 18px; }
  .saj-bms .bms-header-logo { width: 88px; height: 110px; }
  .saj-bms .bms-staff-placeholder { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 899px) {
  .saj-bms { grid-template-columns: minmax(0, 1fr); }
  .saj-bms .bms-brand { padding: 0 4px 16px; }
  .saj-bms .bms-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .saj-bms .bms-main { padding: 25px 16px 40px; }
  .saj-bms .bms-topbar { grid-template-columns: 80px minmax(0, 1fr); padding: 16px; gap: 16px; }
  .saj-bms .bms-header-logo { width: 80px; height: 100px; }
  .saj-bms .bms-navigation { grid-template-columns: minmax(0, 1fr); }
  .saj-bms .bms-area-title { font-size: 23px; }
  .saj-bms .bms-nav-button { min-height: 48px; }
}

/* BMS final polish: existing synthetic notice and refresh action, unchanged meaning. */
.bms-demo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 28px;
  padding: 14px 28px; border-bottom: 1px solid #c5d8ee; border-left: 4px solid #2563b6;
  background: #edf4ff; color: #193f6b; font-family: inherit; font-size: 14px; line-height: 1.65;
}
.bms-demo-message { margin: 0; max-width: 110ch; overflow-wrap: anywhere; }
.bms-refresh-control {
  flex: 0 0 auto; width: auto; min-height: 44px; padding: 11px 18px;
  border: 1px solid #b8cde9; border-radius: 9px; background: #fff; color: #174d92;
  font: inherit; font-size: 14px; font-weight: 650; line-height: 1.5; cursor: pointer;
}
.bms-refresh-control:hover:not(:disabled) { background: #dfebfc; border-color: #86a8d7; }
.bms-refresh-control:disabled { opacity: .65; cursor: not-allowed; }
.bms-refresh-control:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
body:has(.saj-bms) .customer-auth-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding: 12px 28px; border-bottom: 1px solid #dce5ef; background: #fff; }
body:has(.saj-bms) .customer-auth-nav button { font-size: 14px; line-height: 1.6; }
body:has(.saj-bms) #customerAuthStatus { margin: 0 0 0 auto; font-size: 13px; line-height: 1.6; color: #36516f; }
.saj-bms .bms-sidebar { padding-top: 28px; }
.saj-bms .bms-brand { padding-bottom: 22px; }
.saj-bms .bms-navigation { gap: 8px; }
.saj-bms .bms-nav-button { align-items: flex-start; padding: 14px 16px; line-height: 1.6; }
.saj-bms .bms-nav-button svg { margin-top: 2px; }
.saj-bms .bms-nav-button span { min-width: 0; overflow-wrap: break-word; }
.saj-bms .bms-topbar { column-gap: 26px; padding-block: 20px; }
.saj-bms .bms-staff-placeholder { align-items: center; border-color: #d6e2f0; background: #f6f9fd; }
.saj-bms .bms-table-caption { font-size: 15px; line-height: 1.65; color: #4a607b; }
.saj-bms .bms-request-table th { font-size: 15px; line-height: 1.6; color: #304c6c; }
.saj-bms .bms-request-table td { line-height: 1.7; }
.saj-bms .bms-detail-card dt, .saj-bms .bms-form-note { line-height: 1.7; color: #4a607b; }
.saj-bms .bms-quotation-item h3 { margin-bottom: 18px; }
@media (max-width: 899px) {
  .bms-demo-banner { flex-wrap: wrap; padding: 14px 20px; gap: 12px; }
  body:has(.saj-bms) .customer-auth-nav { padding-inline: 20px; }
  body:has(.saj-bms) #customerAuthStatus { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 599px) {
  .bms-demo-banner { padding: 14px 16px; }
  .bms-refresh-control { width: 100%; }
  body:has(.saj-bms) .customer-auth-nav { padding-inline: 16px; }
  .saj-bms .bms-topbar { gap: 16px; }
}
