/**
 * JDS Filings — Formation Wizard Styles
 *
 * Multi-step LLC formation flow with progress bar, step panels,
 * tier cards, form fields, and order summary sidebar.
 *
 * Brand: #16a34a (green), Inter font
 *
 * @package JDS_Filings
 */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');

/* ═══════════════════════════════════════════
   Root & Wizard Container
   ═══════════════════════════════════════════ */
.jds-wizard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.jds-wizard *,
.jds-wizard *::before,
.jds-wizard *::after {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════
   Progress Bar
   ═══════════════════════════════════════════ */
.jds-wiz-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 6px 10px;
    overflow-x: auto;
}

.jds-wiz-prog-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 52px;
    cursor: default;
}

.jds-wiz-prog-step.completed {
    cursor: pointer;
}

.jds-wiz-prog-step.completed:hover .jds-wiz-prog-dot {
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
    transform: scale(1.1);
}

.jds-wiz-prog-step.completed:hover .jds-wiz-prog-label {
    color: #15803d;
}

.jds-wiz-prog-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    position: relative;
}

.jds-wiz-prog-check {
    display: none;
    width: 16px;
    height: 16px;
    color: #fff;
}

.jds-wiz-prog-step.active .jds-wiz-prog-dot {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.jds-wiz-prog-step.completed .jds-wiz-prog-dot {
    background: #16a34a;
    color: #fff;
}

.jds-wiz-prog-step.completed .jds-wiz-prog-num {
    display: none;
}

.jds-wiz-prog-step.completed .jds-wiz-prog-check {
    display: block;
}

.jds-wiz-prog-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.jds-wiz-prog-step.active .jds-wiz-prog-label,
.jds-wiz-prog-step.completed .jds-wiz-prog-label {
    color: #16a34a;
}

.jds-wiz-prog-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    min-width: 12px;
    max-width: 36px;
    margin: 0 2px;
    margin-bottom: 22px;
    transition: background 0.3s;
}

.jds-wiz-prog-line.active {
    background: #16a34a;
}

/* ═══════════════════════════════════════════
   Wizard Body (Main + Sidebar)
   ═══════════════════════════════════════════ */
.jds-wizard-body {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.jds-wizard-main {
    flex: 1;
    min-width: 0;
}

.jds-wizard-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

/* ═══════════════════════════════════════════
   Step Panels
   ═══════════════════════════════════════════ */
.jds-wiz-panel {
    display: none;
}

.jds-wiz-panel.active {
    display: block;
    animation: jds-wiz-fadeIn 0.3s ease;
}

@keyframes jds-wiz-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.jds-wiz-panel h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.jds-wiz-desc {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 28px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   Form Elements (shared)
   ═══════════════════════════════════════════ */
.jds-wiz-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.jds-wiz-label .required {
    color: #dc2626;
}

.jds-wiz-input,
.jds-wiz-select,
.jds-wiz-textarea {
    display: block;
    width: 100%;
    padding: 13px 16px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 48px;
    height: 48px;
    box-sizing: border-box;
    line-height: 1.4;
}

.jds-wiz-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0L6 4.59 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 38px !important;
    cursor: pointer;
}

.jds-wizard select.jds-wiz-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border-radius: 12px !important;
    padding: 13px 38px 13px 16px !important;
    height: 48px !important;
    min-height: 48px !important;
}

.jds-wiz-input:focus,
.jds-wiz-select:focus,
.jds-wiz-textarea:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12) !important;
    outline: none !important;
}

.jds-wiz-input.error,
.jds-wiz-select.error,
.jds-wiz-textarea.error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.jds-wiz-textarea {
    resize: vertical;
    min-height: 80px;
    height: auto;
}

.jds-wiz-help {
    font-size: 0.82rem;
    color: #9ca3af;
    margin: 6px 0 0;
    line-height: 1.4;
}

.jds-wiz-field-group {
    margin-bottom: 20px;
}

.jds-wiz-field-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.jds-wiz-field-grow {
    flex: 1;
}

.jds-wiz-field-sm {
    width: 160px;
    flex-shrink: 0;
}

.jds-wiz-field-xs {
    width: 110px;
    flex-shrink: 0;
}

.jds-wiz-fieldset {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin: 0 0 24px;
}

.jds-wiz-fieldset legend {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    padding: 0 8px;
}

.jds-wiz-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.92rem;
}

.jds-wiz-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #16a34a;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   Step 1: State Selection
   ═══════════════════════════════════════════ */
.jds-wiz-popular-states {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
    align-items: center;
}

.jds-wiz-popular-label {
    font-size: 0.82rem;
    color: #9ca3af;
    font-weight: 500;
}

.jds-wiz-popular-btn {
    padding: 6px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.jds-wiz-popular-btn:hover {
    border-color: #16a34a;
    color: #16a34a;
    background: #f0fdf4;
}

.jds-wiz-popular-btn.active {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}

.jds-wiz-state-fee {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 20px;
    max-width: 480px;
}

.jds-wiz-fee-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.jds-wiz-fee-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #166534;
}

.jds-wiz-fee-amount {
    font-size: 1.15rem;
    color: #15803d;
}

.jds-wiz-fee-note {
    font-size: 0.8rem;
    color: #4ade80;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════
   Step 2: Package / Tier Selection
   ═══════════════════════════════════════════ */
.jds-wiz-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.jds-wiz-tier-card {
    position: relative;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 20px;
    cursor: pointer;
    transition: all 0.25s;
}

.jds-wiz-tier-card:hover {
    border-color: #86efac;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.jds-wiz-tier-card.selected {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.jds-wiz-tier-popular {
    border-color: #16a34a;
}

.jds-wiz-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #16a34a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 16px;
    border-radius: 99px;
    white-space: nowrap;
}

.jds-wiz-tier-card h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
}

.jds-wiz-tier-price {
    margin-bottom: 18px;
}

.jds-wiz-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #16a34a;
}

.jds-wiz-price-note {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-left: 4px;
}

.jds-wiz-tier-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
}

.jds-wiz-tier-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.85rem;
    line-height: 1.4;
    list-style: none !important;
}

.jds-wiz-tier-features li::before,
.jds-wiz-tier-features li::marker {
    display: none !important;
    content: none !important;
}

.jds-wiz-tier-features li.included {
    color: #374151;
}

.jds-wiz-tier-features li.not-included {
    color: #d1d5db;
}

.jds-wiz-feat-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.jds-wiz-feat-icon.check {
    color: #16a34a;
}

.jds-wiz-feat-icon.cross {
    color: #d1d5db;
}

.jds-wiz-tier-select-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.jds-wiz-tier-select-btn:hover {
    background: #15803d;
}

.jds-wiz-tier-card.selected .jds-wiz-tier-select-btn {
    background: #15803d;
}

/* Savings callout */
.jds-wiz-savings-callout {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 0.9rem;
    color: #92400e;
    margin-bottom: 24px;
}

/* Feature comparison table */
.jds-wiz-compare-toggle {
    text-align: center;
    margin-bottom: 16px;
}

.jds-wiz-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #16a34a;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: inherit;
    transition: background 0.15s;
}

.jds-wiz-compare-btn:hover {
    background: #f0fdf4;
    color: #16a34a !important;
}

.jds-wiz-compare-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.jds-wiz-compare-arrow.open {
    transform: rotate(180deg);
}

.jds-wiz-compare-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.jds-wiz-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.jds-wiz-compare-table th,
.jds-wiz-compare-table td {
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

.jds-wiz-compare-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.jds-wiz-compare-table th small {
    display: block;
    color: #16a34a;
    font-weight: 700;
}

.jds-wiz-compare-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.jds-wiz-compare-table .highlight {
    background: rgba(22, 163, 74, 0.04);
}

.jds-wiz-cmp-yes {
    color: #16a34a;
    font-weight: 700;
    font-size: 1rem;
}

.jds-wiz-cmp-no {
    color: #d1d5db;
    font-size: 1rem;
}

.jds-wiz-cmp-note {
    font-size: 0.78rem;
    color: #16a34a;
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   Step 3: Company Name
   ═══════════════════════════════════════════ */
.jds-wiz-name-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.jds-wiz-name-input {
    flex: 1;
}

.jds-wiz-designator-select {
    width: 240px;
    flex-shrink: 0;
}

.jds-wiz-name-preview {
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #166534;
    margin-bottom: 24px;
}

.jds-wiz-name-preview strong {
    font-size: 1rem;
}

/* ═══════════════════════════════════════════
   Step 3: EIN / SSN Section
   ═══════════════════════════════════════════ */
.jds-wiz-ein-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.jds-wiz-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.jds-wiz-ssn-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.jds-wiz-ssn-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.jds-wiz-ssn-option:hover {
    border-color: #86efac;
}

.jds-wiz-ssn-option.selected {
    border-color: #16a34a;
    background: #f0fdf4;
}

.jds-wiz-ssn-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #16a34a;
    margin-top: 2px;
    flex-shrink: 0;
}

.jds-wiz-ssn-option-content {
    flex: 1;
}

.jds-wiz-ssn-option-content strong {
    display: block;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.jds-wiz-ssn-price {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 4px;
}

.jds-wiz-ssn-price-extra {
    color: #b45309;
    background: #fffbeb;
    padding: 2px 10px;
    border-radius: 99px;
    font-weight: 700;
}

.jds-wiz-ssn-desc {
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.4;
    margin: 0;
}

.jds-wiz-ssn-notice {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    margin-top: 12px;
}

.jds-wiz-ssn-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.jds-wiz-ssn-notice strong {
    display: block;
    font-size: 0.92rem;
    color: #92400e;
    margin-bottom: 4px;
}

.jds-wiz-ssn-notice p {
    font-size: 0.82rem;
    color: #92400e;
    line-height: 1.5;
    margin: 0;
}

/* ═══════════════════════════════════════════
   Step 4: Address (mail toggle)
   ═══════════════════════════════════════════ */
.jds-wiz-mail-toggle {
    margin: 8px 0 20px;
}

/* ═══════════════════════════════════════════
   Step 5: Registered Agent
   ═══════════════════════════════════════════ */
.jds-wiz-ra-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jds-wiz-ra-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
    overflow: hidden;
}

.jds-wiz-ra-card.selected {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.jds-wiz-ra-card-header {
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f3f4f6;
}

.jds-wiz-ra-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.jds-wiz-ra-radio {
    width: 20px;
    height: 20px;
    accent-color: #16a34a;
}

.jds-wiz-ra-recommended {
    background: #16a34a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 99px;
    margin-left: auto;
}

.jds-wiz-ra-card-body {
    padding: 20px;
}

.jds-wiz-ra-pricing {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0 16px;
}

.jds-wiz-ra-free {
    margin-bottom: 6px;
    font-size: 0.92rem;
    color: #166534;
}

.jds-wiz-ra-free-badge {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 99px;
    margin-right: 4px;
    text-transform: uppercase;
}

.jds-wiz-ra-then {
    font-size: 0.85rem;
    color: #6b7280;
}

.jds-wiz-ra-commit {
    font-size: 0.78rem;
    color: #9ca3af;
}

.jds-wiz-ra-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jds-wiz-ra-benefits li {
    padding: 3px 0;
    font-size: 0.88rem;
    color: #374151;
}

.jds-wiz-ra-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #92400e;
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   Step 6: Members & Management
   ═══════════════════════════════════════════ */
.jds-wiz-mgmt-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.jds-wiz-mgmt-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.jds-wiz-mgmt-option:hover {
    border-color: #86efac;
}

.jds-wiz-mgmt-option.selected {
    border-color: #16a34a;
    background: #f0fdf4;
}

.jds-wiz-mgmt-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #16a34a;
    margin-top: 2px;
    flex-shrink: 0;
}

.jds-wiz-mgmt-option-content strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.jds-wiz-mgmt-option-content span {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.4;
}

.jds-wiz-mgmt-option-content em {
    font-style: italic;
    color: #16a34a;
    font-weight: 500;
}

.jds-wiz-members-section h3,
.jds-wiz-managers-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.jds-wiz-member-card,
.jds-wiz-manager-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.jds-wiz-member-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

.jds-wiz-member-remove {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 0.82rem;
    cursor: pointer;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: inherit;
}

.jds-wiz-member-remove:hover {
    background: #fef2f2;
}

.jds-wiz-member-fields {
    padding: 18px;
}

.jds-wiz-member-fields .jds-wiz-field-group:last-child,
.jds-wiz-member-fields .jds-wiz-field-row:last-child {
    margin-bottom: 0;
}

.jds-wiz-member-ownership-total {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.jds-wiz-ownership-status {
    font-weight: 700;
}

.jds-wiz-ownership-status.valid {
    color: #16a34a;
}

.jds-wiz-ownership-status.invalid {
    color: #dc2626;
}

.jds-wiz-add-member-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 8px;
    color: #16a34a;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.jds-wiz-add-member-btn:hover {
    border-color: #16a34a;
    background: #f0fdf4;
}

/* ═══════════════════════════════════════════
   Step 7: Add-on Services
   ═══════════════════════════════════════════ */
.jds-wiz-addons-list {
    margin-bottom: 24px;
}

.jds-wiz-addon-item {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
    overflow: hidden;
}

.jds-wiz-addon-item:hover {
    border-color: #86efac;
}

.jds-wiz-addon-item.checked {
    border-color: #16a34a;
    background: #f0fdf4;
}

.jds-wiz-addon-item.included {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.jds-wiz-addon-item.included .jds-wiz-addon-label {
    cursor: default;
    align-items: center;
}

.jds-wiz-addon-item.included .jds-wiz-addon-cb {
    display: none;
}

.jds-wiz-addon-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
}

.jds-wiz-addon-cb {
    width: 20px;
    height: 20px;
    accent-color: #16a34a;
    margin-top: 2px;
    flex-shrink: 0;
}

.jds-wiz-addon-info {
    flex: 1;
}

.jds-wiz-addon-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.jds-wiz-addon-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1a1a1a;
}

.jds-wiz-addon-price {
    font-weight: 700;
    font-size: 0.92rem;
    color: #16a34a;
    white-space: nowrap;
}

.jds-wiz-addon-desc {
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.4;
}

.jds-wiz-addon-included-badge {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 99px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Upgrade prompt */
.jds-wiz-upgrade-prompt {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
}

.jds-wiz-upgrade-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.jds-wiz-upgrade-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #92400e;
}

.jds-wiz-upgrade-text p {
    font-size: 0.85rem;
    color: #a16207;
    margin: 0 0 10px;
    line-height: 1.4;
}

.jds-wiz-upgrade-btn {
    display: inline-flex;
    padding: 8px 20px;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.jds-wiz-upgrade-btn:hover {
    background: #d97706;
}

/* ═══════════════════════════════════════════
   Step 8: Account
   ═══════════════════════════════════════════ */
.jds-wiz-account-loggedin {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    margin-bottom: 24px;
}

.jds-wiz-account-avatar img {
    border-radius: 50%;
    width: 56px;
    height: 56px;
}

.jds-wiz-account-greeting {
    font-size: 1rem;
    margin: 0 0 2px;
    color: #1a1a1a;
}

.jds-wiz-account-email {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0;
}

.jds-wiz-login-link {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
}

.jds-wiz-login-link:hover {
    text-decoration: underline;
}

.jds-wiz-password-wrap {
    position: relative;
}

.jds-wiz-password-wrap .jds-wiz-input {
    padding-right: 48px;
}

.jds-wiz-pass-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
}

.jds-wiz-pass-toggle:hover {
    color: #6b7280;
}

.jds-wiz-pass-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    min-height: 18px;
}

.jds-wiz-strength-bar {
    flex: 1;
    max-width: 160px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.jds-wiz-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}

.strength-1 .jds-wiz-strength-fill { width: 20%; background: #dc2626; }
.strength-2 .jds-wiz-strength-fill { width: 40%; background: #f97316; }
.strength-3 .jds-wiz-strength-fill { width: 60%; background: #eab308; }
.strength-4 .jds-wiz-strength-fill { width: 80%; background: #22c55e; }
.strength-5 .jds-wiz-strength-fill { width: 100%; background: #16a34a; }

.jds-wiz-strength-text {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

.jds-wiz-account-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #4b5563;
    margin-top: 20px;
}

.jds-wiz-account-note svg {
    flex-shrink: 0;
}

.jds-wiz-email-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    font-size: 0.84rem;
    color: #92400e;
    margin-top: 8px;
}

.jds-wiz-email-notice svg {
    flex-shrink: 0;
}

.jds-wiz-email-notice a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: underline;
}

.jds-wiz-field-half {
    flex: 1;
    min-width: 0;
}

/* ═══════════════════════════════════════════
   Step 9: Review
   ═══════════════════════════════════════════ */
.jds-wiz-review {
    margin-bottom: 28px;
}

.jds-wiz-review-section {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.jds-wiz-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}

.jds-wiz-review-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.jds-wiz-review-edit {
    background: none;
    border: none;
    color: #16a34a;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 2px 8px;
    border-radius: 4px;
}

.jds-wiz-review-edit:hover {
    background: #f0fdf4;
}

.jds-wiz-review-content {
    padding: 14px 20px;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
}

.jds-wiz-review-content p {
    margin: 4px 0;
}

.jds-wiz-review-content strong {
    color: #1a1a1a;
}

.jds-wiz-review-pricing {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.jds-wiz-review-pricing .jds-wiz-review-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.jds-wiz-review-pricing .jds-wiz-review-line.total {
    border-top: 2px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.1rem;
    font-weight: 700;
}

.jds-wiz-review-pricing .jds-wiz-review-line.total .amount {
    color: #16a34a;
}

.jds-wiz-review-pricing .jds-wiz-review-ra-note {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════
   Service Agreement
   ═══════════════════════════════════════════ */
.jds-wiz-agreement {
    margin-top: 32px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    background: #fff;
}

.jds-wiz-agreement h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.jds-wiz-agreement .jds-wiz-desc {
    margin: 0 0 16px;
    font-size: 0.88rem;
    color: #6b7280;
}

.jds-wiz-agreement-scroll {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    background: #fafafa;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 20px;
}

.jds-wiz-agreement-scroll h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
    text-align: center;
}

.jds-wiz-agreement-scroll h5 {
    font-size: 0.84rem;
    font-weight: 700;
    margin: 16px 0 4px;
    color: #1a1a1a;
}

.jds-wiz-agreement-scroll p {
    margin: 0 0 8px;
}

.jds-wiz-agreement-scroll ul {
    margin: 4px 0 12px 20px !important;
    padding: 0 !important;
    list-style: disc !important;
}

.jds-wiz-agreement-scroll ul li {
    margin: 0 0 2px !important;
    padding: 0 !important;
    list-style: disc !important;
}

.jds-wiz-agreement-scroll ul li::before,
.jds-wiz-agreement-scroll ul li::marker {
    content: none !important;
    display: none !important;
}

.jds-wiz-agreement-scroll::-webkit-scrollbar {
    width: 6px;
}

.jds-wiz-agreement-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.jds-wiz-agreement-sign {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jds-wiz-sig-input {
    font-family: 'Dancing Script', 'Brush Script MT', cursive !important;
    font-size: 1.35rem !important;
    color: #1a1a1a !important;
    padding: 12px 16px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #fff !important;
    max-width: 420px;
}

.jds-wiz-sig-input:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12) !important;
    outline: none !important;
}

.jds-wiz-sig-input::placeholder {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    color: #9ca3af !important;
}

.jds-wiz-agreement-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #374151;
}

.jds-wiz-agreement-check input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #16a34a;
    cursor: pointer;
}

.jds-wiz-agreement.jds-wiz-agreement--error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.jds-wiz-agreement-err-msg {
    color: #dc2626;
    font-size: 0.82rem;
    margin-top: 4px;
    display: none;
}

.jds-wiz-agreement--error .jds-wiz-agreement-err-msg {
    display: block;
}

.jds-wiz-checkout-action {
    text-align: center;
}

.jds-wiz-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.jds-wiz-checkout-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.jds-wiz-checkout-btn:active {
    transform: translateY(0);
}

.jds-wiz-checkout-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.jds-wiz-checkout-secure {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 10px;
}

.jds-wiz-checkout-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    color: #dc2626;
    font-size: 0.88rem;
    margin-top: 16px;
}

/* ═══════════════════════════════════════════
   Sidebar: Order Summary
   ═══════════════════════════════════════════ */
.jds-wiz-summary-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.jds-wiz-summary-card h3 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
}

.jds-wiz-summary-items {
    min-height: 40px;
}

.jds-wiz-summary-empty {
    color: #9ca3af;
    font-size: 0.85rem;
    padding: 8px 0;
}

.jds-wiz-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    font-size: 0.88rem;
}

.jds-wiz-summary-line .label {
    color: #374151;
}

.jds-wiz-summary-line .amount {
    font-weight: 600;
    color: #1a1a1a;
}

.jds-wiz-summary-line.free .amount {
    color: #16a34a;
    font-weight: 700;
}

.jds-wiz-summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}

.jds-wiz-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 4px 0;
}

.jds-wiz-summary-total strong {
    color: #16a34a;
    font-size: 1.2rem;
}

.jds-wiz-summary-ra-note {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 10px;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════ */
.jds-wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 0;
    max-width: calc(1200px - 320px - 32px); /* match main width */
}

.jds-wiz-nav-spacer {
    flex: 1;
}

.jds-wiz-nav-back,
.jds-wiz-nav-next {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.jds-wiz-nav-back {
    background: #fff;
    border: 1.5px solid #d1d5db;
    color: #6b7280;
}

.jds-wiz-nav-back:hover {
    border-color: #9ca3af;
    color: #374151;
}

.jds-wiz-nav-next {
    background: #16a34a;
    border: none;
    color: #fff;
}

.jds-wiz-nav-next:hover {
    background: #15803d;
}

.jds-wiz-nav-next:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════
   Error Toast
   ═══════════════════════════════════════════ */
.jds-wiz-error-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: jds-wiz-toastIn 0.3s ease;
}

@keyframes jds-wiz-toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .jds-wizard-body {
        flex-direction: column;
    }

    .jds-wizard-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }

    .jds-wiz-summary-card {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
    }

    .jds-wiz-summary-card h3 {
        margin: 0;
        font-size: 0.95rem;
    }

    .jds-wiz-summary-items {
        display: none;
    }

    .jds-wiz-summary-divider {
        display: none;
    }

    .jds-wiz-summary-total {
        margin-left: auto;
        font-size: 0.95rem;
        gap: 8px;
    }

    .jds-wiz-summary-ra-note {
        width: 100%;
        margin-top: 4px;
    }

    .jds-wizard-nav {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .jds-wizard {
        padding: 20px 16px 60px;
    }

    /* ── Mobile progress bar: compact scrollable strip ── */
    .jds-wiz-progress {
        margin-bottom: 20px;
        justify-content: flex-start;
        padding: 8px 4px;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;          /* Firefox */
    }
    .jds-wiz-progress::-webkit-scrollbar {
        display: none;                  /* Chrome/Safari */
    }

    .jds-wiz-prog-label {
        display: none;
    }

    .jds-wiz-prog-dot {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    .jds-wiz-prog-step {
        min-width: 26px;
        gap: 0;
    }

    .jds-wiz-prog-line {
        margin-bottom: 0;
        min-width: 8px;
        max-width: 16px;
    }

    .jds-wiz-prog-check {
        width: 12px;
        height: 12px;
    }

    .jds-wiz-prog-step.active .jds-wiz-prog-dot {
        box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
    }

    .jds-wiz-tier-grid {
        grid-template-columns: 1fr;
    }

    .jds-wiz-name-row {
        flex-direction: column;
    }

    .jds-wiz-designator-select {
        width: 100%;
    }

    .jds-wiz-field-row {
        flex-direction: column;
    }

    .jds-wiz-field-sm,
    .jds-wiz-field-xs {
        width: 100%;
    }

    .jds-wiz-panel h2 {
        font-size: 1.3rem;
    }

    .jds-wiz-nav-back,
    .jds-wiz-nav-next {
        padding: 12px 20px;
        font-size: 0.88rem;
    }

    .jds-wiz-compare-table {
        font-size: 0.75rem;
    }

    .jds-wiz-compare-table th,
    .jds-wiz-compare-table td {
        padding: 8px 8px;
    }
}

/* ── Extra-small phones ── */
@media (max-width: 420px) {
    .jds-wiz-prog-dot {
        width: 22px;
        height: 22px;
        font-size: 0.62rem;
    }
    .jds-wiz-prog-step {
        min-width: 22px;
    }
    .jds-wiz-prog-line {
        min-width: 6px;
        max-width: 12px;
    }
    .jds-wiz-prog-check {
        width: 10px;
        height: 10px;
    }
    .jds-wiz-panel h2 {
        font-size: 1.15rem;
    }
    .jds-wiz-nav-back,
    .jds-wiz-nav-next {
        padding: 10px 16px;
        font-size: 0.82rem;
    }
}

/* ── Google Places autocomplete dropdown ── */
.jds-places-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    max-height: 220px;
    overflow-y: auto;
    list-style: none;
    margin: 2px 0 0;
    padding: 4px 0;
}
.jds-places-item {
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: background 0.1s;
}
.jds-places-item:hover,
.jds-places-item.active {
    background: #f0fdf4;
    color: #16a34a;
}
