/**
 * Onboarding Common Styles
 * Shared styles for all onboarding pages (role-select, children, payment)
 */

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.progress-dot.active {
    background: var(--iw-primary);
}

.progress-dot.completed {
    background: var(--iw-teal);
}

/* Role Selection Cards (role-select page) */
.role-card {
    padding: 20px 24px;
    background-color: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 16px;
}

.role-card:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
}

.role-card.selected {
    border-color: var(--iw-primary);
    background-color: rgba(255, 184, 140, 0.1);
}

.role-card.selected .role-icon {
    color: var(--iw-primary);
}

.role-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.role-icon {
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
    transition: color 0.25s ease;
}

.role-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.role-text p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.4;
}

.role-check {
    margin-left: auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.role-card.selected .role-check {
    background-color: var(--iw-primary);
    border-color: var(--iw-primary);
}

.role-check svg {
    width: 14px;
    height: 14px;
    color: var(--iw-cocoa);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.role-card.selected .role-check svg {
    opacity: 1;
}

/* Pricing Card (payment page) */
.pricing-card {
    background: linear-gradient(135deg, rgba(255, 184, 140, 0.15) 0%, rgba(76, 181, 174, 0.1) 100%);
    border: 1px solid rgba(255, 184, 140, 0.3);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.pricing-label {
    font-size: 0.875rem;
    color: var(--iw-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.pricing-badge {
    background: rgba(76, 181, 174, 0.2);
    color: var(--iw-teal);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.pricing-features li:last-child {
    margin-bottom: 0;
}

.feature-check {
    width: 18px;
    height: 18px;
    color: var(--iw-teal);
    flex-shrink: 0;
}

/* Payment Method Cards */
.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-card {
    padding: 16px 20px;
    background-color: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.payment-card:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
}

.payment-card.selected {
    border-color: var(--iw-primary);
    background-color: rgba(255, 184, 140, 0.1);
}

.payment-logo {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.payment-logo.paystack {
    color: #00C3F7;
}

.payment-logo.flutterwave {
    color: #F5A623;
}

.payment-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Checkboxes */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--iw-primary);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-item label {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-item label a {
    color: var(--iw-primary);
    text-decoration: underline;
}

.checkbox-item label strong {
    color: white;
}

/* Security Note */
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

.security-note svg {
    width: 14px;
    height: 14px;
}

/* Premium Upsell */
.upsell-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.upsell-label {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.upsell-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px 20px;
}

.upsell-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.upsell-title {
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.upsell-price {
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.upsell-price span {
    font-weight: 400;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.upsell-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.upsell-note {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    margin: 0;
}

/* Error text */
.error-text {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 6px;
}

/* Interest Tags (children page) */
.interest-tag {
    transition: all 0.2s ease;
}

.interest-tag:hover {
    background: rgba(255, 184, 140, 0.1) !important;
}

.interest-tag.selected {
    background: rgba(255, 184, 140, 0.15) !important;
    border-color: var(--iw-primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-indicator {
        margin-top: 20px;
    }

    .role-card {
        padding: 16px 20px;
    }

    .role-icon {
        width: 40px;
        height: 40px;
    }

    .pricing-card {
        padding: 16px 18px;
    }

    .pricing-amount {
        font-size: 1.5rem;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
}
