/* Diagnosis Tool Styles - Integrated with Morrill's Motors main site */

:root {
  /* Using main website colors */
  --primary: #0f2733;
  --accent: #345361;
  --accent-soft: #58676e;
  --text: #ffffff;
  --muted: #c6d2d9;
  --panel: rgba(21, 54, 69, 0.92);
  --panel-strong: rgba(16, 43, 55, 0.96);
  
  /* Diagnosis-specific colors */
  --danger-color: #c94a4a;
  --warning-color: #d4a84b;
  --success-color: #4a8c6a;
  --info-color: #5a9bb8;
  --light-bg: #f5f7f8;
  --dark-text: #0f2733;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow: 0 16px 40px rgba(6, 16, 22, 0.25);
}

/* Main wrapper for diagnosis tool */
.diagnosis-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 6vw;
}

#diagnosis-container {
  background: var(--panel-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Screens */
.screen {
  display: none;
  padding: 2.5rem;
  animation: fadeIn 0.3s ease;
  color: var(--text);
}

.screen.active {
  display: block;
}

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

/* Welcome Screen */
#welcome-screen {
  text-align: center;
  padding: 3rem 2rem;
}

#welcome-screen h2 {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

#welcome-screen p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(130deg, #345361, #58676e);
  color: var(--text);
  box-shadow: 0 16px 30px rgba(15, 39, 51, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 39, 51, 0.55);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
  margin-top: 1.5rem;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

/* Equipment Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.equipment-btn {
  background: rgba(17, 45, 58, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.equipment-btn:hover {
  background: rgba(52, 83, 97, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 16, 22, 0.3);
}

.equipment-btn .icon {
  font-size: 2.5rem;
}

/* Options List */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.option-btn {
  background: rgba(17, 45, 58, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
}

.option-btn:hover {
  background: rgba(52, 83, 97, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(6, 16, 22, 0.2);
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(8, 22, 30, 0.6);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #345361, #58676e);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}

/* Question Screen */
#question-screen h2 {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

/* Results Screen */
#results-screen {
  padding: 2rem;
}

.result-header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px 12px 0 0;
  margin: -2rem -2rem 0 -2rem;
}

.result-header h2 {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.result-severity {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.severity-low {
  background: rgba(74, 140, 106, 0.35);
  color: #7fd7b0;
}

.severity-medium {
  background: rgba(212, 168, 75, 0.35);
  color: #f4d580;
}

.severity-high {
  background: rgba(201, 74, 74, 0.35);
  color: #ff9b8a;
}

.result-description {
  padding: 1.5rem 2rem;
  background: rgba(13, 35, 45, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.result-description p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.diy-steps {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.diy-steps h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  letter-spacing: 0.03em;
}

.diy-steps ol {
  margin-left: 1.5rem;
  color: var(--muted);
}

.diy-steps li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.result-note {
  padding: 1rem 2rem;
  background: rgba(212, 168, 75, 0.15);
  border-left: 4px solid var(--warning-color);
  margin: 0;
  color: var(--muted);
}

.result-note strong {
  color: var(--text);
}

.bring-in-section {
  padding: 1.5rem 2rem;
  background: rgba(8, 22, 30, 0.4);
}

.bring-in-section h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  letter-spacing: 0.03em;
}

.bring-in-section > p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.contact-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.contact-cta p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-cta .cta-phone {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1rem 0;
  color: white;
}

.btn-contact {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-contact:hover {
  background: var(--muted);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.success-section {
  padding: 1.5rem 2rem;
  background: rgba(74, 140, 106, 0.15);
  border-left: 4px solid var(--success-color);
}

.success-section p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.success-section strong {
  color: #7fd7b0;
}

/* Responsive */
@media (max-width: 600px) {
  .diagnosis-wrapper {
    padding: 2rem 5vw;
  }

  .screen {
    padding: 1.5rem;
  }

  #welcome-screen {
    padding: 2rem 1rem;
  }

  .equipment-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  .equipment-btn {
    padding: 1.2rem 0.8rem;
  }

  .equipment-btn .icon {
    font-size: 2rem;
  }

  .result-header {
    margin: -1.5rem -1.5rem 0 -1.5rem;
  }
}