/* ============================================
   ATTORNEY911 SIMULATOR — SCOPED CSS
   All selectors prefixed with .a911sim- to avoid
   conflicts with WordPress themes
   ============================================ */

/* Scope everything inside the simulator wrapper */
.a911sim-wrap {
  --brand-maroon: #8B2323;
  --brand-maroon-dark: #6B1A1A;
  --brand-maroon-light: #A52D2D;
  --brand-gold: #D4AF37;
  --brand-gold-dark: #B8961F;
  --brand-gold-light: #E8C84A;
  --dark-bg: #1A1A1A;
  --dark-bg-light: #2A2A2A;
  --white: #FFFFFF;
  --off-white: #F8F8F8;
  --light-gray: #F5F5F5;
  --medium-gray: #E0E0E0;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  --danger-critical: #C62828;
  --danger-high: #E65100;
  --danger-moderate: #F9A825;
  --danger-low: #2E7D32;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1140px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --transition: 0.3s ease;

  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.a911sim-wrap *, .a911sim-wrap *::before, .a911sim-wrap *::after {
  box-sizing: border-box;
}

/* Container */
.a911sim-wrap .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.a911sim-wrap .hero {
  background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.88)),
              url('') center/cover;
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 80px 0 70px;
  text-align: center;
}
.a911sim-wrap .hero-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 16px;
}
.a911sim-wrap .hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}
.a911sim-wrap .hero h1 em {
  font-style: italic;
  color: var(--brand-gold);
}
.a911sim-wrap .hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.a911sim-wrap .hero-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 20px;
}
.a911sim-wrap .hero-disclaimer a {
  color: var(--brand-gold);
  text-decoration: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.a911sim-wrap .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.4;
}
.a911sim-wrap .btn-gold {
  background: var(--brand-gold);
  color: var(--dark-bg);
  border: 2px solid var(--brand-gold);
}
.a911sim-wrap .btn-gold:hover {
  background: var(--brand-gold-dark);
  border-color: var(--brand-gold-dark);
}
.a911sim-wrap .btn-maroon {
  background: var(--brand-maroon);
  color: var(--white);
  border: 2px solid var(--brand-maroon);
}
.a911sim-wrap .btn-maroon:hover {
  background: var(--brand-maroon-dark);
  border-color: var(--brand-maroon-dark);
}
.a911sim-wrap .btn-outline {
  background: transparent;
  color: var(--brand-gold);
  border: 2px solid var(--brand-gold);
}
.a911sim-wrap .btn-outline:hover {
  background: var(--brand-gold);
  color: var(--dark-bg);
}
.a911sim-wrap .btn-sm { padding: 10px 24px; font-size: 0.82rem; }
.a911sim-wrap .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================
   SETUP SECTION
   ============================================ */
.a911sim-wrap .setup-section {
  padding: 60px 0;
  background: var(--white);
}
.a911sim-wrap .setup-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}
.a911sim-wrap .setup-subtitle {
  text-align: center;
  color: var(--text-medium);
  margin-bottom: 40px;
  font-size: 1.05rem;
}
.a911sim-wrap .setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.a911sim-wrap .setup-field label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.a911sim-wrap .setup-field select,
.a911sim-wrap .setup-field input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--light-gray);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.a911sim-wrap .setup-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.a911sim-wrap .setup-field select:focus,
.a911sim-wrap .setup-field input:focus {
  outline: none;
  border-color: var(--brand-maroon);
  box-shadow: 0 0 0 3px rgba(139,35,35,0.1);
}

/* ============================================
   CARRIER BRIEFING
   ============================================ */
.a911sim-wrap .carrier-briefing {
  background: var(--off-white);
  border-left: 4px solid var(--brand-maroon);
  padding: 24px 28px;
  margin: 32px auto;
  max-width: 700px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.a911sim-wrap .carrier-briefing h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-maroon);
  margin-bottom: 12px;
}
.a911sim-wrap .carrier-briefing p {
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================
   SIMULATION SECTION
   ============================================ */
.a911sim-wrap .sim-section {
  padding: 40px 0 60px;
  background: var(--white);
  min-height: 60vh;
}

/* Progress Bar */
.a911sim-wrap .progress-container {
  max-width: 700px;
  margin: 0 auto 40px;
}
.a911sim-wrap .progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.a911sim-wrap .progress-phase {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-maroon);
}
.a911sim-wrap .progress-count {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-light);
}
.a911sim-wrap .progress-bar-track {
  height: 6px;
  background: var(--light-gray);
  border-radius: 3px;
  overflow: hidden;
}
.a911sim-wrap .progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-maroon), var(--brand-gold));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Question Card */
.a911sim-wrap .question-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Adjuster Bubble */
.a911sim-wrap .adjuster-bubble {
  background: var(--dark-bg);
  color: var(--white);
  padding: 28px 32px;
}
.a911sim-wrap .adjuster-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-gold);
  margin-bottom: 12px;
}
.a911sim-wrap .adjuster-question {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
}

/* Danger Badge */
.a911sim-wrap .danger-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-top: 14px;
}
.a911sim-wrap .danger-critical { background: rgba(198,40,40,0.15); color: #EF5350; border: 1px solid rgba(198,40,40,0.3); }
.a911sim-wrap .danger-high { background: rgba(230,81,0,0.15); color: #FF7043; border: 1px solid rgba(230,81,0,0.3); }
.a911sim-wrap .danger-moderate { background: rgba(249,168,37,0.15); color: #FFB300; border: 1px solid rgba(249,168,37,0.3); }
.a911sim-wrap .danger-low { background: rgba(46,125,50,0.15); color: #66BB6A; border: 1px solid rgba(46,125,50,0.3); }

/* Notorious Badges */
.a911sim-wrap .notorious-bar {
  padding: 14px 32px;
  background: var(--off-white);
  border-bottom: 1px solid var(--medium-gray);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.a911sim-wrap .notorious-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-medium);
}
.a911sim-wrap .carrier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--medium-gray);
  color: var(--text-dark);
}
.a911sim-wrap .carrier-badge.user-carrier {
  background: var(--brand-maroon);
  color: var(--white);
  border-color: var(--brand-maroon);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.5);
}
.a911sim-wrap .carrier-badge.all-carriers {
  background: var(--danger-critical);
  color: var(--white);
  border-color: var(--danger-critical);
}

/* Response Area */
.a911sim-wrap .response-area { padding: 28px 32px; }
.a911sim-wrap .response-prompt {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.a911sim-wrap .response-input {
  width: 100%;
  min-height: 80px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--light-gray);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-sm);
  resize: vertical;
  transition: border-color var(--transition);
  line-height: 1.5;
}
.a911sim-wrap .response-input:focus {
  outline: none;
  border-color: var(--brand-maroon);
  box-shadow: 0 0 0 3px rgba(139,35,35,0.1);
}
.a911sim-wrap .response-input::placeholder { color: var(--text-light); }
.a911sim-wrap .response-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Coaching Panel */
.a911sim-wrap .coaching-panel {
  padding: 0 32px 28px;
  display: none;
}
.a911sim-wrap .coaching-panel.visible { display: block; }
.a911sim-wrap .coaching-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--light-gray);
}
.a911sim-wrap .coaching-section:last-child { border-bottom: none; }
.a911sim-wrap .coaching-icon { font-size: 1.1rem; margin-right: 6px; }
.a911sim-wrap .coaching-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.a911sim-wrap .coaching-title.risk { color: var(--danger-critical); }
.a911sim-wrap .coaching-title.notes { color: var(--text-medium); }
.a911sim-wrap .coaching-title.problems { color: var(--danger-high); }
.a911sim-wrap .coaching-title.safe { color: var(--danger-low); }
.a911sim-wrap .coaching-title.lesson { color: var(--brand-maroon); }
.a911sim-wrap .coaching-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dark);
}
.a911sim-wrap .coaching-text strong { color: var(--danger-critical); }

/* Safe Response Box */
.a911sim-wrap .safe-response-box {
  background: rgba(46,125,50,0.06);
  border: 1px solid rgba(46,125,50,0.2);
  border-left: 4px solid var(--danger-low);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  line-height: 1.7;
}

/* AI Loading */
.a911sim-wrap .ai-loading {
  display: none;
  padding: 24px 32px;
  text-align: center;
}
.a911sim-wrap .ai-loading.visible { display: block; }
.a911sim-wrap .ai-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--light-gray);
  border-top-color: var(--brand-maroon);
  border-radius: 50%;
  animation: a911sim-spin 0.8s linear infinite;
}
@keyframes a911sim-spin { to { transform: rotate(360deg); } }
.a911sim-wrap .ai-loading-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-medium);
  margin-top: 10px;
}

/* Navigation */
.a911sim-wrap .question-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-top: 1px solid var(--medium-gray);
  background: var(--off-white);
}
.a911sim-wrap .nav-encouragement {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--danger-low);
  font-weight: 600;
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.a911sim-wrap .results-section {
  padding: 60px 0;
  background: var(--white);
}
.a911sim-wrap .results-header {
  text-align: center;
  margin-bottom: 48px;
}
.a911sim-wrap .results-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.a911sim-wrap .results-header p {
  color: var(--text-medium);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Lead Capture */
.a911sim-wrap .lead-capture {
  max-width: 500px;
  margin: 40px auto 0;
  background: var(--off-white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}
.a911sim-wrap .lead-capture h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.a911sim-wrap .lead-capture p {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.a911sim-wrap .lead-capture input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.a911sim-wrap .lead-capture input[type="email"]:focus {
  outline: none;
  border-color: var(--brand-maroon);
}
.a911sim-wrap .lead-feedback {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.a911sim-wrap .lead-feedback-success {
  background: rgba(46,125,50,0.08);
  border: 1px solid rgba(46,125,50,0.25);
  color: #2E7D32;
}
.a911sim-wrap .lead-feedback-error {
  background: rgba(198,40,40,0.08);
  border: 1px solid rgba(198,40,40,0.25);
  color: #C62828;
}

/* CTA Section */
.a911sim-wrap .cta-section {
  background: var(--dark-bg);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.a911sim-wrap .cta-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--white);
}
.a911sim-wrap .cta-section p {
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Screen Management */
.a911sim-wrap .screen { display: none; }
.a911sim-wrap .screen.active { display: block; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .a911sim-wrap .hero { padding: 50px 0 40px; }
  .a911sim-wrap .hero h1 { font-size: 1.8rem; }
  .a911sim-wrap .adjuster-question { font-size: 1.15rem; }
  .a911sim-wrap .adjuster-bubble,
  .a911sim-wrap .response-area,
  .a911sim-wrap .coaching-panel,
  .a911sim-wrap .question-nav { padding-left: 20px; padding-right: 20px; }
  .a911sim-wrap .notorious-bar { padding-left: 20px; padding-right: 20px; }
  .a911sim-wrap .response-actions { flex-direction: column; }
  .a911sim-wrap .response-actions .btn { width: 100%; }
}
