/* ============================================
     PRIME STRENGTH WIZARD — Scoped Styles
     ============================================ */

  /* CSS Custom Properties */
  #ps-wizard {
    --ps-bg: #FAF9F6;
    --ps-accent: var(--brand-accent);
    --ps-text: #000000;
    --ps-text-inverse: #FFFFFF;
    --ps-border: #E5E3DE;
    --ps-border-light: #EEECE7;
    --ps-error: #C53030;
    --ps-font-heading: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
    --ps-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ps-radius: 8px;
    --ps-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --ps-transition: 0.2s ease;
  }

  /* Base Container */
  #ps-wizard {
    font-family: var(--ps-font-body);
    background-color: var(--ps-bg);
    color: var(--ps-text);
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 24px;
    box-sizing: border-box;
  }

  #ps-wizard *,
  #ps-wizard *::before,
  #ps-wizard *::after {
    box-sizing: border-box;
  }

  /* Screen Reader Only */
  #ps-wizard .ps-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Progress Bar */
  #ps-wizard .ps-progress-container {
    margin-bottom: 40px;
  }

  #ps-wizard .ps-step-indicator {
    font-size: 14px;
    color: var(--ps-text);
    opacity: 0.6;
    margin-bottom: 12px;
    text-align: center;
  }

  #ps-wizard .ps-progress-bar {
    height: 4px;
    background-color: var(--ps-border);
    border-radius: 2px;
    overflow: hidden;
  }

  #ps-wizard .ps-progress-fill {
    height: 100%;
    background-color: var(--ps-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 33.33%;
  }

  /* Steps */
  #ps-wizard .ps-step {
    display: none;
    animation: psFadeIn 0.3s ease;
  }

  #ps-wizard .ps-step-active {
    display: block;
  }

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

  #ps-wizard .ps-content {
    text-align: center;
  }

  /* Typography */
  #ps-wizard .ps-headline {
    font-family: var(--ps-font-heading);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 12px 0;
    color: var(--ps-text);
  }

  #ps-wizard .ps-headline-sm {
    font-family: var(--ps-font-heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 24px 0;
    color: var(--ps-text);
  }

  #ps-wizard .ps-subheadline {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ps-text);
    opacity: 0.8;
    margin: 0 0 32px 0;
  }

  /* Form */
  #ps-wizard .ps-form {
    max-width: 400px;
    margin: 0 auto;
  }

  #ps-wizard .ps-input-group {
    margin-bottom: 16px;
  }

  #ps-wizard input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: var(--ps-font-body);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    background-color: #FFFFFF;
    color: var(--ps-text);
    transition: border-color var(--ps-transition), box-shadow var(--ps-transition);
  }

  #ps-wizard input[type="email"]:focus {
    outline: none;
    border-color: var(--ps-accent);
    box-shadow: 0 0 0 3px rgba(127, 95, 12, 0.1);
  }

  #ps-wizard input[type="email"].ps-input-error {
    border-color: var(--ps-error);
  }

  #ps-wizard .ps-error {
    font-size: 14px;
    color: var(--ps-error);
    text-align: left;
    margin-top: 8px;
    min-height: 20px;
  }

  /* Buttons */
  #ps-wizard .ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--ps-font-body);
    border: none;
    border-radius: var(--ps-radius);
    cursor: pointer;
    transition: all var(--ps-transition);
  }

  #ps-wizard .ps-btn-primary {
    width: 100%;
    background-color: var(--ps-accent);
    color: var(--ps-text-inverse);
  }

  #ps-wizard .ps-btn-primary:hover:not(:disabled) {
    background-color: var(--brand-accent-hover);
  }

  #ps-wizard .ps-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  #ps-wizard .ps-btn-back {
    background: transparent;
    color: var(--ps-text);
    opacity: 0.7;
    padding: 12px 20px;
  }

  #ps-wizard .ps-btn-back:hover {
    opacity: 1;
  }

  #ps-wizard .ps-btn-checkout {
    padding: 18px 36px;
    font-size: 17px;
  }

  /* Plan Cards */
  #ps-wizard .ps-plans {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
  }

  @media (min-width: 520px) {
    #ps-wizard .ps-plans {
      flex-direction: row;
      align-items: stretch;
    }
  }

  #ps-wizard .ps-plan-card {
    flex: 1;
    position: relative;
    background: #FFFFFF;
    border: 2px solid var(--ps-border);
    border-radius: var(--ps-radius);
    padding: 24px;
    text-align: left;
    cursor: pointer;
    transition: all var(--ps-transition);
  }

  #ps-wizard .ps-plan-card:hover {
    border-color: var(--ps-accent);
    box-shadow: var(--ps-shadow);
  }

  #ps-wizard .ps-plan-card:focus {
    outline: none;
    border-color: var(--ps-accent);
    box-shadow: 0 0 0 3px rgba(127, 95, 12, 0.2);
  }

  #ps-wizard .ps-plan-card.ps-plan-selected {
    border-color: var(--ps-accent);
    box-shadow: 0 0 0 2px var(--ps-accent);
  }

  #ps-wizard .ps-plan-featured {
    border-color: var(--ps-accent);
    border-width: 2px;
  }

  #ps-wizard .ps-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background-color: var(--ps-accent);
    color: var(--ps-text-inverse);
    padding: 6px 14px 8px;
    border-radius: 4px;
    text-align: center;
    line-height: 1.2;
  }

  #ps-wizard .ps-badge-main {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  #ps-wizard .ps-badge-sub {
    display: block;
    font-size: 10px;
    font-style: italic;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
  }

  #ps-wizard .ps-plan-header {
    margin-bottom: 16px;
  }

  #ps-wizard .ps-plan-title {
    font-family: var(--ps-font-heading);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--ps-text);
  }

  #ps-wizard .ps-plan-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--ps-text);
  }

  #ps-wizard .ps-plan-period {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.7;
  }

  #ps-wizard .ps-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #ps-wizard .ps-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    padding: 6px 0;
    color: var(--ps-text);
  }

  #ps-wizard .ps-check {
    color: var(--ps-accent);
    font-weight: 600;
    flex-shrink: 0;
  }

  /* Navigation Buttons */
  #ps-wizard .ps-nav-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
  }

  #ps-wizard .ps-nav-buttons .ps-btn-primary {
    flex: 1;
  }

  #ps-wizard .ps-nav-stacked {
    flex-direction: column;
    text-align: center;
  }

  #ps-wizard .ps-nav-stacked .ps-btn-primary {
    width: 100%;
  }

  /* Summary */
  #ps-wizard .ps-summary {
    background: #FFFFFF;
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: left;
  }

  #ps-wizard .ps-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--ps-border-light);
  }

  #ps-wizard .ps-summary-row:last-child {
    border-bottom: none;
  }

  #ps-wizard .ps-summary-label {
    font-size: 14px;
    opacity: 0.7;
  }

  #ps-wizard .ps-summary-value {
    font-size: 14px;
    font-weight: 600;
  }

  /* Benefits */
  #ps-wizard .ps-benefits {
    text-align: left;
    margin-bottom: 32px;
  }

  #ps-wizard .ps-benefits-title {
    font-family: var(--ps-font-heading);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
  }

  #ps-wizard .ps-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #ps-wizard .ps-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    padding: 6px 0;
  }

  /* Trust Line */
  #ps-wizard .ps-trust-line {
    font-size: 13px;
    opacity: 0.6;
    margin: 16px 0;
  }

  /* Mobile Adjustments */
  @media (max-width: 480px) {
    #ps-wizard {
      padding: 32px 16px;
    }

    #ps-wizard .ps-headline {
      font-size: 28px;
    }

    #ps-wizard .ps-headline-sm {
      font-size: 24px;
    }

    #ps-wizard .ps-subheadline {
      font-size: 16px;
    }

    #ps-wizard .ps-plan-price {
      font-size: 24px;
    }

    #ps-wizard .ps-nav-buttons {
      flex-direction: column-reverse;
    }

    #ps-wizard .ps-nav-buttons .ps-btn-back {
      width: 100%;
    }
  }
