:root {
  --asa-bg: #ffffff;
  --asa-surface: #ffffff;
  --asa-surface-soft: #faf7f4;
  --asa-border: #ece5df;
  --asa-border-strong: #dfc5ae;
  --asa-text: #171717;
  --asa-text-soft: #67615c;
  --asa-accent: #e4a86d;
  --asa-accent-strong: #c8864b;
  --asa-accent-deep: #b56d31;
  --asa-shadow: 0 18px 50px rgba(15, 13, 11, 0.06);
}

.asa-wrap {
  display: grid;
  gap: 24px;
}

.asa-card {
  background: var(--asa-surface);
  border: 1px solid var(--asa-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--asa-shadow);
}

.asa-card__header h2,
.asa-card__header h3 {
  margin: 0;
  color: var(--asa-text);
}

.asa-card__header h2 {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.asa-card__header p {
  margin: 14px 0 0;
  max-width: 900px;
  color: var(--asa-text-soft);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.65;
}

.asa-eyebrow,
.asa-section__eyebrow,
.asa-upload__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--asa-accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.asa-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.asa-stepper__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--asa-border);
  border-radius: 999px;
  background: #fff;
  color: var(--asa-text-soft);
}

.asa-stepper__item.is-active,
.asa-stepper__item.is-complete {
  border-color: rgba(200, 134, 75, 0.35);
  background: rgba(228, 168, 109, 0.1);
  color: var(--asa-accent-deep);
}

.asa-stepper__number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f4ece4;
  color: var(--asa-accent-deep);
  font-size: 14px;
  font-weight: 700;
}

.asa-stepper__item.is-active .asa-stepper__number,
.asa-stepper__item.is-complete .asa-stepper__number {
  background: var(--asa-accent);
  color: #fff;
}

.asa-stepper__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.asa-stepper__line {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 134, 75, 0.15) 0%, rgba(200, 134, 75, 0.35) 100%);
}

.asa-step-panel {
  margin-top: 26px;
}

.asa-section--compact-top,
.asa-section--compact-top.asa-section {
  margin-top: 0;
}

.asa-section__head h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--asa-text);
}

.asa-treatment-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.asa-treatment-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--asa-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #fcfbfa 100%);
  box-shadow: 0 8px 24px rgba(19, 14, 10, 0.04);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.asa-treatment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(19, 14, 10, 0.08);
}

.asa-treatment-card.is-active {
  border-color: var(--asa-accent-strong);
  background: linear-gradient(180deg, #fff7f0 0%, #fff 100%);
  box-shadow: 0 0 0 3px rgba(228, 168, 109, 0.22), 0 20px 44px rgba(181, 109, 49, 0.24);
}

.asa-treatment-card.is-active .asa-treatment-card__title {
  color: var(--asa-accent-deep);
}

.asa-treatment-card.is-active .asa-treatment-card__media {
  box-shadow: 0 10px 28px rgba(181, 109, 49, 0.16);
}

.asa-treatment-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3eee8 0%, #ead8c9 100%);
}

.asa-treatment-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.asa-treatment-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--asa-accent-strong);
  font-size: 2rem;
  font-weight: 700;
}

.asa-treatment-card__content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
}

.asa-treatment-card__title {
  color: var(--asa-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.asa-consent {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--asa-surface-soft);
  border: 1px solid var(--asa-border);
}

.asa-consent label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.asa-consent input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--asa-accent-strong);
}

.asa-actions {
  margin-top: 22px;
}

.asa-actions--wizard {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.asa-actions--wizard-split {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.asa-button,
.asa-link-button,
.asa-ghost-button,
.asa-result-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform .18s ease, opacity .18s ease, background-color .18s ease, border-color .18s ease;
}

.asa-button,
.asa-link-button {
  background: #111;
  color: #fff;
  border: 0;
}

.asa-button--accent {
  background: linear-gradient(90deg, var(--asa-accent-strong) 0%, var(--asa-accent) 100%);
}

.asa-button:hover,
.asa-link-button:hover,
.asa-ghost-button:hover,
.asa-result-button:hover {
  transform: translateY(-1px);
  opacity: .97;
}

.asa-ghost-button {
  background: #fff;
  border: 1px solid var(--asa-border);
  color: var(--asa-text);
}

.asa-ghost-button--accent {
  background: rgba(228, 168, 109, 0.12);
  border-color: rgba(200, 134, 75, 0.35);
  color: var(--asa-accent-deep);
}

.asa-grid--entry {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
}

.asa-panel {
  border: 1px solid var(--asa-border);
  border-radius: 24px;
  padding: 22px;
  background: #fff;
}

.asa-selected-treatment__label {
  margin-bottom: 12px;
  color: var(--asa-text);
  font-size: 1.35rem;
  font-weight: 700;
}

.asa-photo-guide {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.asa-photo-guide__text {
  color: var(--asa-text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.asa-photo-guide__media {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--asa-border);
  background: var(--asa-surface-soft);
}

.asa-photo-guide__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  -webkit-user-drag: none;
}

.asa-treatment-desc,
.asa-notice,
.asa-disclaimer,
.asa-status {
  color: var(--asa-text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.asa-upload__title {
  color: var(--asa-text);
  font-size: 1.35rem;
  font-weight: 700;
}

.asa-upload__meta {
  color: var(--asa-text-soft);
  line-height: 1.65;
  margin-top: 10px;
}

.asa-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.asa-upload__filename {
  color: var(--asa-text-soft);
  font-size: .95rem;
  word-break: break-word;
  min-width: 0;
}

.asa-upload__input {
  display: none;
}

.asa-selected-file {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--asa-border);
  background: var(--asa-surface-soft);
}

.asa-selected-file__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.asa-selected-file__preview {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  background: #efe8e1;
}

.asa-selected-file__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.asa-selected-file__title {
  margin: 0;
  color: var(--asa-text);
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
}

.asa-status {
  min-height: 24px;
  margin-top: 18px;
}

.asa-status__loading,
.asa-status__error {
  border-radius: 22px;
  border: 1px solid var(--asa-border);
  background: var(--asa-surface-soft);
}

.asa-status__loading {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.asa-status__spinner {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 3px solid rgba(200, 134, 75, 0.22);
  border-top-color: var(--asa-accent-strong);
  animation: asa-spin .85s linear infinite;
}

.asa-status__title {
  color: var(--asa-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.asa-status__text {
  margin-top: 4px;
  color: var(--asa-text-soft);
  font-size: .95rem;
  line-height: 1.55;
}

.asa-status__progress {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: #eee3d8;
}

.asa-status__progress span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--asa-accent) 0%, var(--asa-accent-deep) 100%);
  animation: asa-progress 1.4s ease-in-out infinite;
}

.asa-status__error {
  padding: 14px 18px;
  color: #8f3d29;
  background: #fff7f4;
  border-color: #f1d7cf;
  line-height: 1.6;
}

.asa-button[disabled] {
  opacity: .7;
  cursor: wait;
  transform: none !important;
}

.asa-card--result {
  padding-top: 34px;
}

.asa-compare-shell {
  display: flex;
  justify-content: center;
}

.asa-compare {
  --asa-compare-ratio: 1 / 1;
  --asa-compare-pos: 50%;
  position: relative;
  width: min(100%, 820px);
  aspect-ratio: var(--asa-compare-ratio);
  overflow: hidden;
  border-radius: 0;
  background: #f4f4f4;
  user-select: none;
}

.asa-compare__before,
.asa-compare__after {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.asa-compare__after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}

.asa-compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--asa-compare-pos);
  width: 2px;
  background: rgba(255,255,255,.96);
  transform: translateX(-50%);
  cursor: ew-resize;
  touch-action: none;
  will-change: left, transform;
}

.asa-compare__handle {
  position: absolute;
  top: 50%;
  left: var(--asa-compare-pos);
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 244, 236, 0.96);
  color: #6e5847;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(31, 22, 16, 0.12);
  cursor: ew-resize;
  touch-action: none;
  will-change: left, transform;
  transform: translate(-50%, -50%);
  transition: none;
}

.asa-compare.is-dragging .asa-compare__handle {
  transform: translate(-50%, -50%) scale(1.04);
}

.asa-actions--result {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.asa-result-button {
  min-width: 180px;
  background: var(--asa-accent);
  color: #fff;
  border: 0;
}

.asa-result-button__icon {
  margin-right: 10px;
  font-size: 1.1rem;
  line-height: 1;
}

.asa-result-meta {
  width: min(100%, 820px);
  margin: 18px auto 0;
}

.asa-link-button,
.asa-result-button.is-hidden {
  display: none !important;
}

.asa-camera-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
}

.asa-camera-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 11, 0.58);
}

.asa-camera-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(92vw, 760px);
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.asa-camera-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  color: #7b6d61;
  cursor: pointer;
}

.asa-camera-modal__media {
  overflow: hidden;
  border-radius: 22px;
  background: #111;
}

.asa-camera-modal__video,
.asa-camera-modal__canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: cover;
}

.asa-camera-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .asa-treatment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asa-grid--entry {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .asa-card {
    padding: 20px;
    border-radius: 22px;
  }

  .asa-stepper {
    flex-direction: column;
    align-items: stretch;
  }

  .asa-stepper__line {
    width: 1px;
    min-width: 1px;
    height: 18px;
    margin-left: 14px;
  }

  .asa-treatment-grid {
    grid-template-columns: 1fr;
  }

  .asa-card__header h2 {
    font-size: 2rem;
  }

  .asa-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .asa-selected-file {
    grid-template-columns: 1fr;
  }

  .asa-selected-file__content {
    display: block;
  }

  .asa-selected-file__title {
    margin-bottom: 6px;
    white-space: normal;
  }

  .asa-selected-file__preview {
    width: 100%;
    height: 180px;
  }

  .asa-actions--wizard,
  .asa-actions--wizard-split {
    flex-direction: column;
    align-items: stretch;
  }

  .asa-result-button,
  .asa-button,
  .asa-ghost-button {
    width: 100%;
  }

  .asa-compare__handle {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}

@keyframes asa-spin {
  to { transform: rotate(360deg); }
}

@keyframes asa-progress {
  0% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
  100% { transform: translateX(260%); }
}


.asa-treatment-grid--single {
  grid-template-columns: minmax(260px, 420px);
  justify-content: start;
}


.asa-section--single-treatment .asa-section__head {
  margin-bottom: 8px;
}


/* Single-treatment pages: let the headline use full width */
.asa-wrap--single-treatment .asa-card__header h2 {
  max-width: none;
  width: 100%;
}

.asa-lead-box {
  margin: 22px 0 18px;
  padding: 20px;
  border: 1px solid rgba(200, 134, 75, 0.28);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: 0 14px 34px rgba(181, 109, 49, 0.08);
}

.asa-lead-box__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--asa-accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.asa-lead-box__title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
}

.asa-lead-box__text {
  margin-bottom: 14px;
  color: var(--asa-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.asa-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.asa-form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.asa-form-field input[type="text"],
.asa-form-field input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
}

.asa-form-field input[type="text"]:focus,
.asa-form-field input[type="tel"]:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.asa-form-field.is-invalid input[type="text"],
.asa-form-field.is-invalid input[type="tel"],
.asa-consent.is-invalid {
  border-color: rgba(185, 28, 28, 0.24);
}

.asa-form-field.is-invalid input[type="text"],
.asa-form-field.is-invalid input[type="tel"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.asa-consent.is-invalid {
  padding: 14px 16px;
  border: 1px solid #f1c7c7;
  border-radius: 16px;
  background: #fff7f7;
}

.asa-field-error {
  margin-top: 8px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.asa-field-error--consent {
  margin-left: 30px;
}

.asa-wrap--result-only .asa-card--result {
  margin-top: 0;
}


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

@media (max-width: 767px) {
  .asa-form-grid {
    grid-template-columns: 1fr;
  }
}


.asa-panel--upload {
  position: relative;
  overflow: hidden;
}

.asa-upload-shell {
  transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}

.asa-panel--upload.is-locked .asa-upload-shell {
  filter: blur(2px);
  opacity: .45;
  transform: scale(.99);
  pointer-events: none;
  user-select: none;
}

.asa-upload-lock {
  position: absolute;
  inset: 16px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(200, 134, 75, 0.28);
  box-shadow: 0 18px 44px rgba(15, 13, 11, 0.08);
  z-index: 3;
}

.asa-panel--upload.is-locked .asa-upload-lock {
  display: flex;
}

.asa-upload-lock__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(228, 168, 109, 0.16);
  color: var(--asa-accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asa-upload-lock h4 {
  margin: 0;
  color: var(--asa-text);
  font-size: 1.1rem;
  line-height: 1.45;
}

.asa-upload-lock p,
.asa-upload-lock__text {
  margin: 0;
  color: var(--asa-text-soft);
  font-size: .96rem;
  line-height: 1.7;
}

.asa-upload-lock__text p {
  margin: 0 0 8px;
}

.asa-upload-lock__text p:last-child {
  margin-bottom: 0;
}

.asa-lead-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 99999;
}

.asa-lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 11, 0.54);
  backdrop-filter: blur(4px);
}

.asa-lead-modal__dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(228, 168, 109, 0.24);
  box-shadow: 0 28px 70px rgba(15, 13, 11, 0.24);
  z-index: 1;
}

.asa-lead-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f6f1eb;
  color: var(--asa-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.asa-lead-modal__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--asa-accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.asa-lead-modal__title {
  margin: 0;
  color: var(--asa-text);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.asa-lead-modal__text {
  margin: 14px 0 0;
  color: var(--asa-text-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.asa-lead-modal__text p {
  margin: 0 0 10px;
}

.asa-lead-modal__text p:last-child {
  margin-bottom: 0;
}

.asa-lead-modal__treatment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--asa-surface-soft);
  color: var(--asa-text);
  font-size: .92rem;
}

.asa-lead-modal__actions {
  margin-top: 22px;
}

@media (max-width: 767px) {
  .asa-upload-lock {
    inset: 12px;
    padding: 18px;
  }

  .asa-lead-modal {
    padding: 16px;
  }

  .asa-lead-modal__dialog {
    padding: 24px 20px;
    border-radius: 24px;
  }
}

