.aimv-form,
.aimv-form label,
.aimv-form fieldset {
  display: grid;
  gap: 12px;
}

.aimv-form fieldset {
  padding: 18px;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.aimv-form legend {
  padding: 0 8px;
  color: #1f2933;
  font-weight: 800;
}

.aimv-form input:not([type="checkbox"]):not([type="radio"]),
.aimv-form select,
.aimv-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #1f2933;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font: inherit;
}

.aimv-form textarea {
  resize: vertical;
}

.aimv-form input:focus,
.aimv-form select:focus,
.aimv-form textarea:focus {
  border-color: #e60033;
  outline: 3px solid rgba(230, 0, 51, .14);
}

.aimv-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.aimv-check,
.aimv-choice {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  color: #1f2933;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
}

.aimv-check:hover,
.aimv-choice:hover {
  border-color: #f4a3b5;
  background: #fff5f7;
}

.aimv-check input,
.aimv-choice input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: #e60033;
}

.aimv-required {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 6px;
  color: #fff;
  background: #c94f64;
  border-radius: 4px;
  font-size: 12px;
}

.aimv-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.aimv-alert {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 8px;
}

.aimv-alert ul {
  margin: 0;
}

.aimv-alert--error {
  color: #8a2034;
  background: #fff1f3;
  border: 1px solid rgba(201, 79, 100, .45);
}

.aimv-alert--warning {
  color: #7a4b00;
  background: #fff8e8;
  border: 1px solid rgba(199, 166, 107, .55);
}

.aimv-alert--success {
  color: #11633a;
  background: #edfff5;
  border: 1px solid rgba(31, 157, 85, .45);
}

.aimv-selected-model {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.aimv-selected-model[hidden] {
  display: none !important;
}

.aimv-selected-model__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.aimv-selected-model__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.aimv-upload-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: 18px;
  align-items: start;
}

.aimv-upload-preview__frame {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 12px;
  color: #667085;
  background: #f6f7f9;
  border: 1px dashed #d0d5dd;
  border-radius: 8px;
  text-align: center;
}

.aimv-upload-preview__frame img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
}

.aimv-selected-model__body h3 {
  margin: 0 0 8px;
}

.aimv-selected-model__meta {
  margin-bottom: 8px;
  color: #667085;
  font-size: 14px;
  font-weight: 750;
}

.aimv-order-box,
.aimv-custom-order,
.aimv-panel {
  padding: clamp(22px, 4vw, 36px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.aimv-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: #667085;
  font-size: 14px;
}

.aimv-progress li {
  padding: 10px 8px;
  text-align: center;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
}

.aimv-progress li.is-active {
  color: #fff;
  background: #e60033;
  border-color: #e60033;
}

.aimv-step[hidden] {
  display: none !important;
}

.aimv-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.aimv-estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: #fff5f7;
  border: 1px solid #f4a3b5;
  border-radius: 8px;
}

.aimv-estimate strong,
.aimv-price {
  color: #e60033;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 850;
}

.aimv-summary {
  display: grid;
  grid-template-columns: minmax(120px, .5fr) 1fr;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.aimv-summary dt,
.aimv-summary dd {
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.aimv-summary dt {
  color: #667085;
  background: #f6f7f9;
  font-weight: 750;
}

.aimv-char-count,
.aimv-note {
  color: #667085;
  font-size: 14px;
}

.aimv-age-panel {
  width: 100%;
  min-height: 100vh;
  text-align: center;
  color: #1f2933;
  background: #f7f7f8;
}

.aimv-age-hero {
  padding: clamp(36px, 7vw, 72px) 20px 34px;
  background: #fdecef;
}

.aimv-age-logo {
  width: min(330px, 72vw);
  height: auto;
  margin: 0 auto 22px;
}

.aimv-age-logo-text {
  margin: 0 auto 22px;
  color: #071a33;
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 900;
  letter-spacing: .12em;
}

.aimv-age-panel h1 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 850;
}

.aimv-age-hero p {
  margin: 0;
  color: #667085;
}

.aimv-age-content {
  width: min(640px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 42px) 0 84px;
}

.aimv-age-content > p {
  margin-bottom: 24px;
  color: #4b5563;
  line-height: 1.85;
  text-align: left;
}

.aimv-age-content h2 {
  margin-bottom: 18px;
  color: #be2d5a;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 850;
}

.aimv-age-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 240px));
  justify-content: center;
  gap: 28px;
  margin-top: 18px;
}

.aimv-age-actions .aimv-button {
  border-radius: 999px;
}

.aimv-age-actions .aimv-button--ghost {
  color: #1f2933 !important;
  background: #fff !important;
  border-color: #d1d5db !important;
}

.aimv-age-actions .aimv-button--ghost:hover {
  color: #fff !important;
  background: #667085 !important;
  border-color: #667085 !important;
}

.aimv-age-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.aimv-line-panel {
  margin-top: 24px;
  padding: 20px;
  text-align: center;
  background: #f0fff6;
  border: 1px solid rgba(6, 199, 85, .38);
  border-radius: 8px;
}

.aimv-line-panel img {
  margin-inline: auto;
}

.aimv-modal-open {
  overflow: hidden;
}

.aimv-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.aimv-consent-modal[hidden] {
  display: none !important;
}

.aimv-consent-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 51, .55);
}

.aimv-consent-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: clamp(22px, 5vw, 32px);
  color: #1f2933;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 70px rgba(15, 23, 42, .26);
}

.aimv-consent-modal__panel h3 {
  margin-bottom: 14px;
  font-size: clamp(20px, 3vw, 24px);
}

.aimv-consent-terms {
  max-height: 190px;
  overflow: auto;
  padding: 14px 16px;
  color: #344054;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
}

.aimv-consent-terms p {
  margin: 0 0 10px;
}

.aimv-consent-terms p:last-child {
  margin-bottom: 0;
}

.aimv-consent-modal__actions {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 10px;
  margin-top: 20px;
}

.aimv-button--line {
  background: #06c755 !important;
  border-color: #06c755 !important;
  color: #fff !important;
}

.aimv-chatbot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  font-size: 15px;
}

.aimv-chatbot [hidden] {
  display: none !important;
}

.aimv-chatbot__toggle {
  min-height: 48px;
  padding: 12px 18px;
  color: #fff;
  background: #e60033;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(230, 0, 51, .25);
  font-weight: 850;
  cursor: pointer;
}

.aimv-chatbot__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100vh - 96px);
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, .25);
}

.aimv-chatbot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #fff;
  background: #e60033;
}

.aimv-chatbot__head button {
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}

.aimv-chatbot__body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.aimv-chatbot__form {
  display: grid;
  gap: 12px;
  padding: 12px;
  overflow: auto;
}

.aimv-chatbot__progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  font-weight: 800;
  color: #667085;
}

.aimv-chatbot__progress li {
  padding: 7px 4px;
  background: #f6f7f9;
  border-radius: 999px;
  text-align: center;
}

.aimv-chatbot__progress li.is-active {
  color: #fff;
  background: #e60033;
}

.aimv-chatbot__step {
  display: grid;
  gap: 12px;
}

.aimv-chatbot__error {
  padding: 10px;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  font-weight: 700;
}

.aimv-chatbot__bubble {
  margin: 0;
  padding: 12px;
  background: #f6f7f9;
  border-radius: 10px;
}

.aimv-chatbot__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.aimv-chatbot__actions button,
.aimv-chatbot__actions a,
.aimv-chatbot__more {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 9px;
  color: #e60033;
  background: #fff;
  border: 1px solid #e60033;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.aimv-chatbot__actions button.is-active,
.aimv-chatbot__model.is-active {
  color: #fff;
  background: #e60033;
  border-color: #e60033;
}

.aimv-chatbot__models {
  display: grid;
  gap: 8px;
}

.aimv-chatbot__models[hidden] {
  display: none !important;
}

.aimv-chatbot__model {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  color: #1f2933;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.aimv-chatbot__model img {
  width: 54px;
  height: 72px;
  object-fit: contain;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.aimv-chatbot__model small {
  display: block;
  color: #e60033;
  font-weight: 800;
}

.aimv-chatbot__model.is-active small {
  color: #fff;
}

.aimv-chatbot__selected {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #f6f7f9;
  border-radius: 10px;
}

.aimv-chatbot__selected img {
  width: 76px;
  height: 100px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.aimv-chatbot__selected small {
  display: block;
  margin-top: 3px;
  color: #667085;
}

.aimv-chatbot__selected p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.aimv-chatbot__upload {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.aimv-chatbot__upload input,
.aimv-chatbot__fields select,
.aimv-chatbot__fields textarea,
.aimv-chatbot .aimv-field-grid input {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
}

.aimv-chatbot__upload-preview {
  min-height: 180px;
}

.aimv-chatbot__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aimv-chatbot__wide {
  grid-column: 1 / -1;
}

.aimv-chatbot__nav {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 8px;
  background: linear-gradient(rgba(255,255,255,.88), #fff 35%);
}

.aimv-chatbot__nav .aimv-button:not([hidden]):only-child,
.aimv-chatbot__nav .aimv-button[data-aimv-chat-submit] {
  grid-column: 1 / -1;
}

.aimv-chatbot__consent {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: end;
  padding: 12px;
  background: rgba(15, 23, 42, .42);
}

.aimv-chatbot__consent-box {
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 46px rgba(15, 23, 42, .24);
}

.aimv-chatbot__consent-box h3 {
  margin: 0 0 8px;
}

.aimv-chatbot__terms {
  max-height: 156px;
  margin-top: 10px;
  font-size: 14px;
}

.aimv-chatbot__consent-actions {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 8px;
  margin-top: 12px;
}

.aimv-chatbot__result {
  display: grid;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.aimv-chatbot__result h3 {
  margin: 0;
  font-size: 20px;
}

.aimv-pricing-table-wrap {
  overflow-x: auto;
}

.aimv-pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.aimv-pricing-table th,
.aimv-pricing-table td {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.aimv-pricing-table th {
  background: #f6f7f9;
}

@media (max-width: 640px) {
  .aimv-field-grid,
  .aimv-age-actions,
  .aimv-selected-model,
  .aimv-upload-preview {
    grid-template-columns: 1fr;
  }

  .aimv-chatbot {
    right: 10px;
    bottom: 76px;
  }

  .aimv-chatbot__panel {
    position: fixed;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 24px);
    margin: 0;
    border-radius: 14px;
  }

  .aimv-chatbot__form {
    max-height: calc(100vh - 88px);
  }

  .aimv-chatbot__fields,
  .aimv-chatbot__actions,
  .aimv-chatbot__consent-actions {
    grid-template-columns: 1fr;
  }

  .aimv-chatbot__progress {
    font-size: 10px;
  }

  .aimv-chatbot__selected {
    grid-template-columns: 64px 1fr;
  }

  .aimv-chatbot__selected img {
    width: 64px;
    height: 86px;
  }

  .aimv-progress {
    grid-template-columns: repeat(2, 1fr);
    font-size: 12px;
  }

  .aimv-step-actions {
    position: sticky;
    bottom: 8px;
    z-index: 5;
    padding: 8px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  }

  .aimv-summary {
    grid-template-columns: 1fr;
  }

  .aimv-consent-modal__actions {
    display: grid;
  }
}
