:root {
  --charcoal: #3d312c;
  --charcoal-deep: #2a211d;
  --charcoal-soft: #4a3c35;
  --sand: #bbab9a;
  --sand-deep: #a39280;
  --ocean: #4f909b;
  --linen: #efe9e2;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html,
body {
  min-height: 100%;
  background: var(--charcoal-deep);
}

body.eval-body {
  color: #f0ebe4;
  font-family: 'Montserrat', sans-serif;
}

.font-heading {
  font-family: Optima, 'Segoe UI', sans-serif;
}

.eval-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eval-glow {
  pointer-events: none;
  position: fixed;
  width: 42rem;
  height: 42rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.28;
  z-index: 0;
}

.eval-glow--tl {
  top: -12rem;
  left: -8rem;
  background: var(--charcoal-soft);
}

.eval-glow--br {
  right: -10rem;
  bottom: -14rem;
  background: rgba(79, 144, 155, 0.4);
}

.eval-shell {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
}

.eval-logo {
  position: fixed;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 40;
  font-family: Optima, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

@media (min-width: 640px) {
  .eval-logo {
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.35rem;
  }
}

.eval-logo:hover {
  color: var(--sand);
}

.eval-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e8dfd4;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.eval-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--ocean);
  box-shadow: 0 0 0 4px rgba(79, 144, 155, 0.18);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  50% { opacity: 0.45; transform: scale(0.85); }
}

.eval-enter {
  animation: fadeUp 0.7s var(--ease) both;
}

.eval-enter-delay {
  animation-delay: 0.18s;
}

.eval-enter-delay-2 {
  animation-delay: 0.36s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eval-rule {
  width: 3rem;
  height: 1px;
  margin: 2rem auto 0;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
}

.eval-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.eval-btn:focus-visible,
.eval-choice:focus-visible,
.eval-back:focus-visible,
.eval-input:focus-visible,
.eval-call-action:focus-visible,
.eval-call-number:focus-visible,
.eval-call-close:focus-visible,
.eval-call-input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.eval-call-number:focus-visible,
.eval-call-action:focus-visible,
.eval-call-close:focus-visible,
.eval-call-input:focus-visible {
  outline-color: var(--charcoal);
}

.eval-btn-primary {
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-deep) 100%);
  color: var(--charcoal);
  box-shadow: 0 18px 40px -18px rgba(187, 171, 154, 0.7);
}

.eval-btn-primary:hover {
  transform: translateY(-2px);
}

.eval-btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.eval-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.eval-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

#eval-app.is-advancing .eval-choice,
#eval-app.is-advancing [data-action="choose-region"] {
  pointer-events: none;
}

.eval-choice {
  width: 100%;
  text-align: left;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.1rem;
  color: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.eval-choice:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.eval-choice.is-selected {
  border-color: rgba(79, 144, 155, 0.85);
  background: rgba(79, 144, 155, 0.18);
}

.eval-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(42, 33, 29, 0.55);
  color: #fff;
  padding: 1rem 1.1rem;
  font-size: 1.05rem;
}

.eval-input::placeholder {
  color: rgba(240, 235, 228, 0.38);
}

.eval-progress {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.eval-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ocean), var(--sand));
  transition: width 0.45s var(--ease);
}

.eval-call-wrap {
  position: fixed;
  z-index: 40;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.eval-call {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--charcoal);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55);
}

@media (min-width: 640px) {
  .eval-call-wrap {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 24.5rem;
  }
}

.eval-call-avatars {
  display: flex;
  position: relative;
  shrink: 0;
}

.eval-call-avatars img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #fff;
}

.eval-call-avatars img + img {
  margin-left: -0.7rem;
}

.eval-call-number {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
}

.eval-call-number:hover {
  color: var(--ocean);
}

.eval-call-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.eval-call-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 3.15rem;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.eval-call-action span {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #64748b;
}

.eval-call-action svg {
  width: 1rem;
  height: 1rem;
}

.eval-call-action--phone .eval-call-icon,
.eval-call-action--message .eval-call-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eval-call-action--phone .eval-call-icon {
  background: var(--ocean);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(79, 144, 155, 0.8);
}

.eval-call-action--message .eval-call-icon {
  background: #efe9e2;
  color: var(--charcoal);
}

.eval-call-action:hover .eval-call-icon {
  transform: translateY(-1px);
}

.eval-call-panel {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  color: var(--charcoal);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55);
}

.eval-call-close {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 0;
  background: #efe9e2;
  color: var(--charcoal);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.eval-call-input {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid #e0d6cb;
  background: #fff;
  color: var(--charcoal);
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
}

.eval-call-textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.eval-call-panel .eval-error {
  color: #b91c1c;
}

.eval-online {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 3px #fff;
}

.eval-card {
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  padding: 1.25rem;
}

.eval-score {
  background: linear-gradient(160deg, var(--charcoal-soft) 0%, var(--charcoal) 55%, var(--charcoal-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.7);
}

.eval-suggest {
  max-height: 16rem;
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(42, 33, 29, 0.94);
}

.eval-suggest button {
  width: 100%;
  text-align: left;
  padding: 0.8rem 1rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.eval-suggest button:hover,
.eval-suggest button[aria-selected="true"] {
  background: rgba(79, 144, 155, 0.22);
}

.eval-error {
  color: #fecaca;
  font-size: 0.875rem;
}

.eval-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #d5c9bc;
}

.eval-check input {
  margin-top: 0.2rem;
  accent-color: var(--ocean);
}

.eval-check a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sr-only-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .eval-enter,
  .eval-dot,
  .eval-progress > span {
    animation: none !important;
    transition: none !important;
  }
}
