/**
 * Mind2Way - Subscription Page Styles
 */

.subscription-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--brand-500);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: var(--brand-600);
}

.subscription-header {
    text-align: center;
    margin-bottom: 40px;
}

.subscription-header img {
    max-width: 200px;
    height: auto;
    margin: 0 auto 24px;
}

.subscription-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.subscription-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Plan Cards */
.plans-container {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.plan-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.plan-card:hover {
    border-color: var(--brand-500);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.1);
}

.plan-card.selected {
    border-color: var(--brand-500);
    background-color: var(--brand-50);
}

.plan-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-500);
    margin-bottom: 4px;
}

.plan-period {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.plan-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li::before {
    content: "✓";
    color: var(--brand-500);
    font-weight: 700;
}

.best-value-badge {
    position: absolute;
    top: -12px;
    right: 48px;
    background: #4ade80;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
}

/* Billing Address Section */
.address-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.address-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.address-section p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.address-grid .full-width {
    grid-column: 1 / -1;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    padding: 16px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover {
    border-color: var(--brand-500);
    background-color: var(--brand-50);
}

.payment-method.selected {
    border-color: var(--brand-500);
    background-color: var(--brand-50);
}

.payment-method-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.payment-method-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Contract Checkboxes */
.contract-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
    border-top: 2px solid #F3F4F6;
}

.contract-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group span {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Card Element */
#card-element {
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    background: white;
}

#card-element.StripeElement--focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-50);
}

/* Responsive */
@media (max-width: 640px) {
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .address-grid {
        grid-template-columns: 1fr;
    }
}
