@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

#shubham-qa-widget {
  --sqa-primary: #8a0505;
  --sqa-heading: #030917;
  --sqa-body: #000000;
  --sqa-page: #fdfbf7;
  --sqa-surface: #ffffff;
  --sqa-border: #e4e3e1;
  --sqa-muted: #62656d;
  --sqa-accent: #f9d67c;
  --sqa-body-font: var(--body-font-family, "DM Sans", sans-serif);
  --sqa-heading-font: var(--heading-font-family, "Lato", sans-serif);
  color: var(--sqa-body);
  font-family: var(--sqa-body-font);
}

#shubham-qa-widget *,
#shubham-qa-widget *::before,
#shubham-qa-widget *::after {
  box-sizing: border-box;
}

.sqa-launcher {
  position: fixed;
  right: 20px;
    bottom: 68px;
    z-index: 99990;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sqa-primary);
    color: #fff;
    font-size: 19px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.sqa-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(3, 9, 23, .3);
}

.sqa-launcher:focus-visible,
.sqa-panel button:focus-visible,
.sqa-panel a:focus-visible,
.sqa-panel input:focus-visible,
.sqa-panel textarea:focus-visible {
  outline: 3px solid var(--sqa-accent);
  outline-offset: 3px;
}

.sqa-panel {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 999999;
  width: min(390px, calc(100vw - 28px));
  height: min(610px, calc(100dvh - 130px));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--sqa-page);
  border: 1px solid var(--sqa-border);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(3, 9, 23, .22);
  font: 14px/1.45 var(--sqa-body-font);
}

.sqa-panel.sqa-panel-gate {
  height: auto;
  max-height: calc(100dvh - 92px);
}

#shubham-qa-widget [hidden] {
  display: none !important;
}

.sqa-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  background: var(--sqa-primary);
  color: #fff;
}

.sqa-header-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .15);
  font-size: 18px;
}

.sqa-header-copy {
  flex: 1;
  min-width: 0;
}

.sqa-header h2 {
  margin: 0;
  color: #fff;
  font: 700 17px/1.2 var(--sqa-heading-font);
}

.sqa-header p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
}

.sqa-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.sqa-close:hover {
  background: rgba(255, 255, 255, .15);
}

.sqa-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px 10px;
  scroll-behavior: smooth;
}

.sqa-message {
  max-width: 88%;
  margin: 0 0 11px;
  padding: 10px 12px;
  border-radius: 14px;
  overflow-wrap: anywhere;
}

.sqa-message.assistant {
  margin-right: auto;
  background: #fff;
  border: 1px solid var(--sqa-border);
  color: var(--sqa-heading);
  border-bottom-left-radius: 5px;
}

.sqa-message.user {
  margin-left: auto;
  background: var(--sqa-primary);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.sqa-message p {
  margin: 0;
}

.sqa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 6px 0 14px;
}

.sqa-chip {
  border: 1px solid rgba(138, 5, 5, .25);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--sqa-primary);
  font: 600 12px var(--sqa-body-font);
  cursor: pointer;
}

.sqa-chip:hover {
  background: #fff4f1;
}

.sqa-suggestions {
  display: grid;
  gap: 7px;
  margin: 2px 0 14px;
}

.sqa-suggestions p {
  margin: 0 0 2px;
  color: var(--sqa-muted);
  font-size: 11px;
  font-weight: 600;
}

.sqa-suggestion {
  width: 100%;
  border: 1px solid rgba(138, 5, 5, .25);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--sqa-primary);
  font: 600 12px/1.35 var(--sqa-body-font);
  text-align: left;
  cursor: pointer;
}

.sqa-suggestion:hover {
  background: #fff4f1;
  border-color: var(--sqa-primary);
}

.sqa-compose {
  flex-shrink: 0;
  padding: 10px 12px 8px;
  border-top: 1px solid var(--sqa-border);
  background: var(--sqa-surface);
}

.sqa-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.sqa-question-input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  max-height: 96px;
  resize: none;
  border: 1px solid var(--sqa-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--sqa-body);
  font: 14px/1.35 var(--sqa-body-font);
}

.sqa-send {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 12px;
  background: var(--sqa-primary);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.sqa-send:disabled {
  opacity: .55;
  cursor: wait;
}

.sqa-footnote {
  margin: 7px 2px 0;
  color: var(--sqa-muted);
  font-size: 10px;
}

.sqa-actions {
  display: flex;
  flex-shrink: 0;
  padding: 8px 12px 12px;
  background: var(--sqa-surface);
}

.sqa-lead-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(138, 5, 5, .25);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--sqa-primary);
  background: #fff5f3;
  font: 700 12px var(--sqa-body-font);
  text-align: left;
  cursor: pointer;
}

.sqa-lead-toggle:hover {
  border-color: var(--sqa-primary);
}

.sqa-lead-view,
.sqa-gate-view {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--sqa-surface);
}

.sqa-panel-gate .sqa-gate-view,
.sqa-panel-gate .sqa-gate-form {
  flex: 0 1 auto;
}

.sqa-view-nav {
  flex-shrink: 0;
  padding: 6px 14px;
  border-bottom: 1px solid var(--sqa-border);
}

.sqa-lead-back,
.sqa-gate-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--sqa-primary);
  font: 700 12px var(--sqa-body-font);
  cursor: pointer;
}

.sqa-lead-form,
.sqa-gate-form {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  background: #fff;
}

.sqa-lead-fields,
.sqa-gate-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sqa-field-full {
  grid-column: 1 / -1;
}

.sqa-lead-form h3,
.sqa-gate-form h3 {
  margin: 0;
  min-width: 0;
  color: var(--sqa-heading);
  font: 700 16px var(--sqa-heading-font);
}

.sqa-gate-note {
  margin: 5px 0 11px;
  color: var(--sqa-muted);
  font-size: 12px;
  line-height: 1.4;
}

.sqa-field {
  display: block;
  margin: 0 0 8px;
  color: var(--sqa-heading);
  font-size: 12px;
  font-weight: 600;
}

.sqa-field input,
.sqa-field textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--sqa-border);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--sqa-body);
  background: #fff;
  font: 13px var(--sqa-body-font);
}

.sqa-field textarea {
  min-height: 76px;
  resize: vertical;
}

.sqa-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 8px 0;
  color: var(--sqa-muted);
  font-size: 11px;
}

.sqa-consent input {
  margin-top: 2px;
}

.sqa-consent a {
  color: var(--sqa-primary);
}

.sqa-submit-lead {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--sqa-primary);
  color: #fff;
  font: 700 13px var(--sqa-body-font);
  cursor: pointer;
}

.sqa-lead-status {
  margin: 8px 0 0;
  color: var(--sqa-muted);
  font-size: 12px;
}

.sqa-lead-status.error {
  color: #a40000;
}

.sqa-lead-status.success {
  color: #176b35;
}

.sqa-gate-status {
  margin: 8px 0 0;
  color: var(--sqa-muted);
  font-size: 12px;
}

.sqa-gate-status.error {
  color: #a40000;
}

.sqa-hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sqa-sending {
  color: var(--sqa-muted);
  font-size: 12px;
  margin: 4px 0 10px;
}

@media (max-width: 520px) {
  .sqa-launcher {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  .sqa-panel {
    right: 10px;
    bottom: 84px;
    width: calc(100vw - 20px);
    height: min(650px, calc(100dvh - 100px));
    min-height: 0;
    border-radius: 15px;
  }
}

@media (max-width: 360px) {
  .sqa-panel-gate .sqa-header { padding: 10px 12px; }
  .sqa-panel-gate .sqa-view-nav { padding: 3px 10px; }
  .sqa-panel-gate .sqa-gate-form { padding: 10px; }
  .sqa-gate-fields { grid-template-columns: 1fr; gap: 4px; }
  .sqa-gate-form .sqa-field { margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {

  .sqa-launcher,
  .sqa-messages {
    transition: none;
    scroll-behavior: auto;
  }
}
