/* ── CCC SS Member – Form Styles ── */
.ccc-ss-wrap {
    max-width: 720px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: #1a1a2e;
    position: relative;
}

/* Header */
.ccc-ss-header { text-align: center; margin-bottom: 32px; }
.ccc-ss-header h2 { font-size: 2rem; margin-bottom: 8px; font-weight: 700; }
.ccc-ss-subtitle { color: #666; font-size: 1rem; }

/* Step indicator */
.ccc-ss-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    gap: 0;
}
.ccc-ss-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.3s;
}
.ccc-ss-step span {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
    transition: all 0.3s;
}
.ccc-ss-step.active { color: #0070ba; }
.ccc-ss-step.active span { background: #0070ba; color: #fff; }
.ccc-ss-step.completed span { background: #00a86b; color: #fff; }
.ccc-ss-step-divider {
    flex: 1; height: 2px; background: #e0e0e0; max-width: 48px;
}

/* Notices */
.ccc-ss-notices { margin-bottom: 16px; }
.ccc-ss-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.ccc-ss-notice.error   { background: #fef2f2; color: #b91c1c; border-left: 4px solid #ef4444; }
.ccc-ss-notice.success { background: #f0fdf4; color: #15803d; border-left: 4px solid #22c55e; }

/* Step content */
.ccc-ss-step-content { display: none; animation: ccc-fadein 0.3s ease; }
.ccc-ss-step-content.active { display: block; }
@keyframes ccc-fadein { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* Fields */
.ccc-ss-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}
.ccc-ss-field-group { display: flex; flex-direction: column; gap: 6px; }
.ccc-ss-field-group.full { grid-column: 1 / -1; }
.ccc-ss-field-group label { font-size: 0.85rem; font-weight: 600; color: #374151; }
.ccc-ss-field-group .req { color: #ef4444; }
.ccc-ss-field-group input {
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
}
.ccc-ss-field-group input:focus { border-color: #0070ba; background: #fff; box-shadow: 0 0 0 3px rgba(0,112,186,.12); }

/* Buttons */
.ccc-ss-btn {
    display: inline-block;
    padding: 13px 32px;
    background: #0070ba;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}
.ccc-ss-btn:hover { background: #005ea6; }
.ccc-ss-btn:active { transform: scale(0.98); }
.ccc-ss-btn-back {
    background: transparent;
    color: #0070ba;
    border: 2px solid #0070ba;
    margin-top: 12px;
}
.ccc-ss-btn-back:hover { background: #f0f8ff; }

/* Plans */
.ccc-ss-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.ccc-ss-plan-card {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    background: #fff;
}
.ccc-ss-plan-card:hover, .ccc-ss-plan-card.selected {
    border-color: #0070ba;
    box-shadow: 0 4px 20px rgba(0,112,186,.15);
    transform: translateY(-2px);
}
.ccc-ss-plan-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.ccc-ss-plan-price { font-size: 1.6rem; margin-bottom: 4px; }
.ccc-ss-plan-price strong { font-size: 2rem; color: #0070ba; }
.ccc-ss-plan-duration { font-size: 0.8rem; color: #888; margin-bottom: 12px; }
.ccc-ss-plan-desc { font-size: 0.82rem; color: #555; margin-bottom: 16px; }
.ccc-ss-plan-card .ccc-ss-btn { width: 100%; padding: 10px 16px; font-size: 0.85rem; }

/* Order summary */
.ccc-ss-order-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.ccc-ss-order-summary h3 { margin: 0 0 12px; font-size: 1rem; }
#ccc-ss-summary-details { font-size: 0.95rem; color: #374151; }
#ccc-ss-summary-details .ccc-row { display: flex; justify-content: space-between; padding: 4px 0; }
#ccc-ss-summary-details .ccc-total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid #e2e8f0; margin-top: 8px; padding-top: 8px; }

/* PayPal button container */
#paypal-button-container { margin-bottom: 16px; }
.ccc-ss-paypal-label { font-size: 0.85rem; color: #555; font-weight: 600; margin-bottom: 8px; }

/* Secure badge */
.ccc-ss-secure-badge {
    text-align: center;
    font-size: 0.78rem;
    color: #888;
    margin-top: 8px;
    margin-bottom: 16px;
}

/* Spinner */
.ccc-ss-spinner {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 100;
}
.ccc-ss-spinner-ring {
    width: 44px; height: 44px;
    border: 4px solid #e5e7eb;
    border-top-color: #0070ba;
    border-radius: 50%;
    animation: ccc-spin 0.7s linear infinite;
}
@keyframes ccc-spin { to { transform: rotate(360deg); } }

/* Success */
.ccc-ss-success { text-align: center; padding: 48px 20px; }
.ccc-ss-success-icon {
    font-size: 3.5rem; color: #22c55e;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: #f0fdf4;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.ccc-ss-success h2 { font-size: 1.8rem; margin-bottom: 10px; }
.ccc-ss-success p  { color: #555; }

/* PayPal pay button */
.ccc-ss-paypal-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #ffc439;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #003087;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 8px;
}
.ccc-ss-paypal-pay-btn:hover  { background: #f0b429; }
.ccc-ss-paypal-pay-btn:active { transform: scale(0.98); }
.ccc-ss-paypal-pay-btn img    { height: 22px; }
@media (max-width: 600px) {
    .ccc-ss-fields { grid-template-columns: 1fr; }
    .ccc-ss-step { font-size: 0.75rem; padding: 6px 8px; }
    .ccc-ss-step span { width: 22px; height: 22px; font-size: 0.7rem; }
}