/* WP SEO Agent — Signup Form (matches homepage pricing section) */

.wpsa-signup-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Billing Toggle ── */
.wpsa-billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 60px;
}

.wpsa-billing-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s;
}

.wpsa-billing-label.wpsa-billing-active {
    color: #1e293b;
}

.wpsa-toggle-switch {
    width: 52px;
    height: 28px;
    background: #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.wpsa-toggle-switch.active {
    background: #0ea5e9;
}

.wpsa-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wpsa-toggle-switch.active::after {
    transform: translateX(24px);
}

.wpsa-save-badge {
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
}

/* ── Pricing Grid ── */
.wpsa-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

/* ── Pricing Card ── */
.wpsa-pricing-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.wpsa-pricing-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.wpsa-pricing-card.wpsa-popular {
    border: 2px solid #f97316;
    transform: scale(1.04);
    box-shadow: 0 8px 40px rgba(249, 115, 22, 0.1);
}

.wpsa-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #f97316;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Pricing Header ── */
.wpsa-pricing-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.wpsa-pricing-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
    color: #0891b2;
}

.wpsa-pricing-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.wpsa-price {
    font-size: 4rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

.wpsa-price span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #94a3b8;
}

.wpsa-price-annual {
    display: none;
}

.wpsa-annual-active .wpsa-price-monthly {
    display: none;
}

.wpsa-annual-active .wpsa-price-annual {
    display: block;
}

/* ── Features List ── */
.wpsa-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
    flex-grow: 1;
}

.wpsa-pricing-features li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    color: #374151;
}

.wpsa-pricing-features li:last-child {
    border-bottom: none;
}

.wpsa-pricing-features li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Buttons ── */
.wpsa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 32px;
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.wpsa-btn-cta {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.wpsa-btn-cta:hover {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.wpsa-btn-outline {
    background: transparent;
    color: #f97316;
    border-color: #f97316;
}

.wpsa-btn-outline:hover {
    background: #f97316;
    color: #fff;
    transform: translateY(-2px);
}

.wpsa-btn-block {
    display: block;
    width: 100%;
}

.wpsa-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Guarantee Badge ── */
.wpsa-guarantee-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 500px;
    margin: 30px auto 0;
    padding: 20px 28px;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    text-align: left;
}

.wpsa-guarantee-badge svg {
    flex-shrink: 0;
    color: #16a34a;
}

.wpsa-guarantee-badge p {
    font-size: 0.92rem;
    color: #166534;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

/* ── Payment Trust ── */
.wpsa-payment-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
}

.wpsa-payment-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpsa-payment-logo {
    height: 45px;
    width: auto;
    border-radius: 6px;
}

.wpsa-payment-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 400;
}

.wpsa-payment-label strong {
    color: #635bff;
    font-weight: 700;
}

.wpsa-pricing-note {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    font-size: 0.9rem;
}

/* ── Modal Overlay ── */
.wpsa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wpsa-modal {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: wpsa-modal-in 0.3s ease;
}

@keyframes wpsa-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wpsa-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.wpsa-modal-close:hover {
    color: #1e293b;
}

.wpsa-modal h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 16px 0;
    text-align: center;
}

.wpsa-modal-plan-summary {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 14px 20px;
    text-align: center;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 24px;
    font-weight: 500;
}

.wpsa-modal-plan-summary strong {
    color: #0891b2;
}

/* ── Form Fields ── */
.wpsa-modal-fields {
    margin-bottom: 24px;
}

.wpsa-field {
    margin-bottom: 18px;
}

.wpsa-field label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.wpsa-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    color: #1e293b;
}

.wpsa-field input:focus {
    border-color: #0ea5e9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.wpsa-field-help {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

.wpsa-modal-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 16px 0 0 0;
    text-align: center;
}

.wpsa-modal-secure svg {
    flex-shrink: 0;
}

/* ── Error ── */
.wpsa-error {
    margin: 16px 0 0;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.9rem;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .wpsa-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto 30px;
    }

    .wpsa-pricing-card.wpsa-popular {
        transform: none;
    }

    .wpsa-billing-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wpsa-price {
        font-size: 2.6rem;
    }

    .wpsa-modal {
        padding: 28px 20px;
    }

    .wpsa-guarantee-badge {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}
