.ps-embed {
    --ps-accent: #667eea;
    --ps-accent2: #764ba2;
    --ps-accent-soft: #f0f4ff;
    --ps-accent-border: #667eea;
    --ps-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ps-success: #10b981;
    --ps-text: #2d3748;
    --ps-muted: #64748b;
}

.ps-embed.theme-venue {
    --ps-accent: #1e3a5f;
    --ps-accent2: #4a6fa5;
    --ps-accent-soft: #eff6ff;
    --ps-accent-border: #4a6fa5;
    --ps-gradient: linear-gradient(135deg, #1e3a5f, #4a6fa5);
}

.ps-embed .signup-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 8px;
}

.ps-embed .progress-step {
    flex: 1;
    text-align: center;
}

.ps-embed .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.ps-embed .progress-step.active .step-number {
    background: var(--ps-accent);
    color: #fff;
}

.ps-embed .progress-step.completed .step-number {
    background: var(--ps-success);
    color: #fff;
}

.ps-embed .step-label {
    font-size: 0.78rem;
    color: var(--ps-muted);
}

.ps-embed .progress-step.active .step-label {
    color: var(--ps-accent);
    font-weight: 600;
}

.ps-embed .form-section { display: none; }
.ps-embed .form-section.active { display: block; }

.ps-embed .form-group { margin-bottom: 16px; }
.ps-embed .form-group label {
    display: block;
    color: var(--ps-text);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.92rem;
}
.ps-embed .form-group small {
    color: var(--ps-muted);
    font-size: 0.85em;
}

.ps-embed .form-group input,
.ps-embed .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 0;
}
.ps-embed .form-group input:focus,
.ps-embed .form-group select:focus {
    outline: none;
    border-color: var(--ps-accent-border);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.12);
}

.ps-embed .radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
}

.ps-embed .radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.ps-embed .radio-item:hover {
    border-color: var(--ps-accent-border);
    background: var(--ps-accent-soft);
}
.ps-embed .radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.ps-embed .radio-item label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.88rem;
}

.ps-embed .pricing-section-kicker {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    text-align: center;
    color: var(--ps-text);
}
.ps-embed .pricing-section-note {
    color: var(--ps-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-align: center;
}

.ps-embed .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ps-embed .pricing-col { min-width: 0; position: relative; }
.ps-embed .pricing-col--highlight .pricing-card {
    border-color: var(--ps-accent-border);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.12);
}

.ps-embed .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;
}

.ps-embed .pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin: 0;
}
.ps-embed .pricing-radio:checked + .pricing-card {
    border-color: var(--ps-accent-border);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.14);
    background: linear-gradient(180deg, var(--ps-accent-soft) 0%, #fff 60%);
}

.ps-embed .pricing-card-badge {
    align-self: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.ps-embed .pricing-card-badge--muted { background: #f1f5f9; color: #475569; }
.ps-embed .pricing-card-badge--popular { background: var(--ps-gradient); color: #fff; }
.ps-embed .pricing-card-badge--pro { background: linear-gradient(135deg, #f59e0b, #eab308); color: #422006; }

.ps-embed .pricing-title {
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 4px;
    color: #0f172a;
}
.ps-embed .pricing-tagline {
    font-size: 0.75rem;
    color: var(--ps-muted);
    text-align: center;
    margin: 0 0 10px;
    line-height: 1.35;
    min-height: 2.4em;
}
.ps-embed .pricing-price { text-align: center; margin-bottom: 4px; direction: ltr; }
.ps-embed .pricing-amount { font-size: 1.25rem; font-weight: 800; color: var(--ps-accent); }
.ps-embed .pricing-period { font-size: 0.85rem; color: var(--ps-muted); font-weight: 600; }
.ps-embed .pricing-range-note { display: block; font-size: 0.72rem; color: var(--ps-muted); margin-top: 2px; }
.ps-embed .pricing-footnote {
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    margin: 0 0 8px;
    min-height: 2em;
}
.ps-embed .pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    font-size: 0.76rem;
    color: #475569;
    line-height: 1.4;
}
.ps-embed .pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 4px 0;
    border-top: 1px solid #f1f5f9;
}
.ps-embed .pricing-features li:first-child { border-top: none; }
.ps-embed .pricing-features li::before {
    content: "✓";
    flex-shrink: 0;
    color: var(--ps-success);
    font-weight: 800;
    font-size: 0.7rem;
    line-height: 1.45;
    margin-top: 0.05rem;
}
.ps-embed .pricing-trust-line {
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 12px;
    line-height: 1.4;
}

.ps-embed .btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--ps-gradient);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}
.ps-embed .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.ps-embed .btn-secondary {
    width: 100%;
    padding: 14px;
    background: #e2e8f0;
    color: var(--ps-text);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.ps-embed .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.ps-embed .form-actions .btn-primary,
.ps-embed .form-actions .btn-secondary {
    flex: 1;
    margin: 0;
}

.ps-embed .payment-info {
    background: var(--ps-accent-soft);
    border: 2px solid var(--ps-accent-border);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}
.ps-embed .payment-info h4 {
    color: var(--ps-accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}
.ps-embed .payment-info p {
    color: var(--ps-muted);
    font-size: 0.88rem;
    margin: 4px 0;
}

.ps-embed .promo-box {
    margin: 16px 0;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.ps-embed .promo-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ps-embed .promo-row input {
    flex: 1;
    min-width: 140px;
}
.ps-embed .btn-promo-check {
    padding: 12px 14px;
    background: #fff;
    border: 2px solid var(--ps-accent-border);
    color: var(--ps-accent);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.ps-embed .btn-promo-check:hover:not(:disabled) {
    background: var(--ps-accent);
    color: #fff;
}
.ps-embed .promo-feedback {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    display: none;
}
.ps-embed .promo-feedback.is-visible { display: block; }
.ps-embed .promo-feedback.success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #047857; }
.ps-embed .promo-feedback.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

.ps-embed #ps-card-errors {
    color: #dc2626;
    font-size: 0.88rem;
    margin-top: 8px;
    min-height: 18px;
}

.ps-embed .terms-row {
    margin: 16px 0;
    font-size: 0.85rem;
    color: var(--ps-muted);
    line-height: 1.45;
}
.ps-embed .terms-row label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}
.ps-embed .terms-row a { color: var(--ps-accent); }

.ps-embed .mobile-plan-sticky {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.12);
}
.ps-embed .mobile-plan-sticky.is-visible { display: flex; }
.ps-embed .mobile-plan-sticky-inner {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ps-embed .btn-sticky-next {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    background: var(--ps-gradient);
    color: #fff;
    font-family: inherit;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .ps-embed .pricing-grid { grid-template-columns: 1fr; }
    .ps-embed.has-sticky { padding-bottom: 72px; }
}

@media (max-width: 640px) {
    .ps-embed .radio-grid { grid-template-columns: 1fr; }
    .ps-embed .form-actions { flex-direction: column; }
}
