/* ==========================================================================
   81PLUS RESOLVER 2.0 (CHECK-UP AZIENDALE) STYLESHEET
   Mobile-First · High-Conversion · Dynamic Adaptive Logic
   ========================================================================== */

.resolver-app-container {
  background: #0B1120;
  color: #F8FAFC;
  border-radius: 16px;
  border: 1.5px solid #1E293B;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
  margin: 20px auto;
  max-width: 1040px;
  font-family: inherit;
}

/* Progress Header */
.resolver-progress-bar-wrap {
  height: 6px;
  background: #1E293B;
  width: 100%;
  position: relative;
}
.resolver-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #059669);
  width: 0%;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.resolver-nav-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid #1E293B;
  background: #090E1A;
}
.resolver-step-badge {
  font-size: 0.76rem;
  font-weight: 800;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.resolver-back-btn {
  background: none;
  border: 1px solid #334155;
  color: #94A3B8;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.resolver-back-btn:hover {
  color: #FFFFFF;
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.1);
}

/* Screen Stage Containers */
.resolver-stage {
  padding: 36px 28px;
  display: none;
  animation: resFadeIn 0.3s ease-out forwards;
}
.resolver-stage.active {
  display: block;
}

@keyframes resFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stage 1: Welcome & Overview */
.resolver-hero-banner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}
.resolver-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.resolver-main-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 14px;
}
.resolver-main-title span {
  color: #10B981;
}
.resolver-main-sub {
  font-size: 1.05rem;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* Stage 2: Intent Grid (10 Card Chiari) */
.resolver-intent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .resolver-intent-grid {
    grid-template-columns: 1fr;
  }
}
.intent-card-btn {
  background: #0F172A;
  border: 1.5px solid #1E293B;
  border-radius: 12px;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: inherit;
  width: 100%;
}
.intent-card-btn:hover {
  border-color: #10B981;
  background: #131E35;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.intent-card-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  padding: 8px;
  background: #1E293B;
  border-radius: 10px;
}
.intent-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.intent-card-desc {
  font-size: 0.84rem;
  color: #94A3B8;
  line-height: 1.35;
}

/* Stage 3: Question Adaptive Form */
.question-card-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.question-badge {
  color: #10B981;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.question-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 10px;
}
.question-hint {
  font-size: 0.9rem;
  color: #94A3B8;
  margin-bottom: 24px;
}
.quick-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 540px) {
  .quick-options-grid {
    grid-template-columns: 1fr;
  }
}
.quick-opt-btn {
  background: #0F172A;
  border: 1.5px solid #1E293B;
  border-radius: 10px;
  padding: 14px 16px;
  color: #E2E8F0;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quick-opt-btn:hover {
  border-color: #10B981;
  background: #152238;
  color: #FFFFFF;
}
.quick-opt-btn.selected {
  background: #064E3B;
  border-color: #10B981;
  color: #34D399;
}

.custom-input-box {
  background: #0F172A;
  border: 1.5px solid #1E293B;
  border-radius: 10px;
  padding: 14px 16px;
  color: #FFFFFF;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.custom-input-box:focus {
  outline: none;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn-continue-step {
  background: #10B981;
  color: #022C22;
  font-weight: 900;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-continue-step:hover {
  background: #34D399;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Stage 4: Processing Animation */
.processing-box {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}
.processing-spinner {
  width: 54px;
  height: 54px;
  border: 4px solid #1E293B;
  border-top-color: #10B981;
  border-radius: 50%;
  animation: spinRes 0.8s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spinRes {
  to { transform: rotate(360deg); }
}

/* Stage 5: Output - La Tua Mappa 81PLUS */
.diagnosis-container {
  max-width: 960px;
  margin: 0 auto;
}

/* Score Strip Asseverato */
.magic-score-card {
  background: #0F172A;
  border: 2px solid #1E293B;
  border-radius: 14px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
@media (max-width: 700px) {
  .magic-score-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.magic-score-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #10B981;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}
.magic-score-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #34D399;
  line-height: 1;
}
.magic-score-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
}
.magic-score-info-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.magic-score-info-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.45;
}

/* 5 Diagnostic Areas Grid */
.diagnostic-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .diagnostic-areas-grid {
    grid-template-columns: 1fr;
  }
}
.diag-area-block {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 20px;
}
.diag-area-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid #1E293B;
  padding-bottom: 10px;
}
.diag-area-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #F1F5F9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.priority-pill {
  font-size: 0.7rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.priority-pill.red {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.priority-pill.orange {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.priority-pill.yellow {
  background: rgba(234, 179, 8, 0.15);
  color: #FACC15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.priority-pill.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.diag-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.diag-item-li {
  font-size: 0.85rem;
  color: #CBD5E1;
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}

/* Offerta Asseverata Stack */
.offer-stack-section {
  margin: 36px 0;
}
.offer-stack-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}
@media (max-width: 860px) {
  .offer-stack-grid {
    grid-template-columns: 1fr;
  }
}
.offer-card {
  background: #0F172A;
  border: 1.5px solid #1E293B;
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.offer-card.featured {
  border-color: #10B981;
  background: #0A192F;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.offer-featured-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: #10B981;
  color: #022C22;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.offer-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #10B981;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.offer-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.25;
}
.offer-price-row {
  margin: 14px 0 18px;
}
.offer-price-val {
  font-size: 2rem;
  font-weight: 900;
  color: #10B981;
}
.offer-price-billing {
  font-size: 0.8rem;
  color: #94A3B8;
  display: block;
}
.offer-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.offer-feature-li {
  font-size: 0.86rem;
  color: #CBD5E1;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.offer-feature-li svg {
  color: #10B981;
  flex-shrink: 0;
}

/* Call to Actions in Offer */
.btn-offer-primary {
  background: #10B981;
  color: #022C22;
  font-weight: 900;
  padding: 14px 20px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  display: block;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-offer-primary:hover {
  background: #34D399;
  transform: translateY(-1px);
}
.btn-offer-secondary {
  background: #1E293B;
  color: #FFFFFF;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  display: block;
  font-size: 0.95rem;
  border: 1px solid #334155;
  transition: all 0.2s;
}
.btn-offer-secondary:hover {
  background: #28374D;
  border-color: #10B981;
}

/* Frigo Box & Test Domani */
.frigo-callout-box {
  background: #090E1A;
  border-left: 4px solid #10B981;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}
.frigo-callout-title {
  font-weight: 900;
  font-size: 1.05rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.frigo-callout-desc {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.45;
}

/* Lead Capture & WhatsApp Bar */
.lead-capture-strip {
  background: #070B14;
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
}
.lead-capture-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.lead-capture-sub {
  font-size: 0.84rem;
  color: #94A3B8;
  margin-bottom: 16px;
}
.lead-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
}
@media (max-width: 768px) {
  .lead-inputs-grid {
    grid-template-columns: 1fr;
  }
}
.lead-input {
  background: #0F172A;
  border: 1px solid #334155;
  color: #FFFFFF;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
}
.lead-input:focus {
  outline: none;
  border-color: #10B981;
}
.btn-send-map {
  background: #10B981;
  color: #022C22;
  font-weight: 800;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-send-map:hover {
  background: #34D399;
}

/* Legal Disclaimer */
.resolver-legal-note {
  font-size: 0.75rem;
  color: #64748B;
  line-height: 1.4;
  margin-top: 24px;
  text-align: center;
  border-top: 1px solid #1E293B;
  padding-top: 16px;
}
