/* Signup Page - Subscription Plan Selection Styles */

/* Subscription Section */
.subscription-section {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.subscription-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.subscription-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 24px 0;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 0.95rem;
}

/* Plan Cards */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.plan-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer !important;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.plan-card:hover {
    border-color: #00BCD4;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
    transform: translateY(-2px);
}

.plan-card.selected {
    border-color: #00BCD4 !important;
    border-width: 3px !important;
    background-color: #ebfdff !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2) !important;
}

.plan-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: #00BCD4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00BCD4;
    margin: 0 0 4px 0;
}

.plan-period {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 16px 0;
}

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

.plan-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #555;
    position: relative;
    padding-left: 24px;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Coupon Section */
.coupon-section {
    margin: 20px 0;
}

.coupon-toggle {
    text-align: center;
    margin-bottom: 12px;
}

.coupon-toggle a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.9rem;
}

.coupon-toggle a:hover {
    text-decoration: underline;
}

.coupon-input-group {
    margin-top: 12px;
}

.coupon-input-wrapper {
    display: flex;
    gap: 8px;
}

.coupon-input-wrapper input {
    flex: 1;
}

.coupon-input-wrapper .btn {
    white-space: nowrap;
}

#coupon-message {
    margin-top: 8px;
    min-height: 20px;
}

#coupon-message.success {
    color: #4caf50;
}

#coupon-message.error {
    color: #f44336;
}

/* Coupon Tag Display */
.coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #2e7d32;
    margin-top: 12px;
}

.coupon-tag-code {
    font-weight: 600;
}

.coupon-tag-remove {
    cursor: pointer;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s ease;
}

.coupon-tag-remove:hover {
    background: #388e3c;
}

.coupon-tag.disabled {
    background: #f5f5f5;
    border-color: #ccc;
    color: #999;
    opacity: 0.7;
}

.coupon-tag.disabled .coupon-tag-code {
    color: #999;
    font-weight: 400;
}

.coupon-tag.disabled .coupon-tag-remove {
    background: #ccc;
    cursor: pointer;
}

.coupon-tag.disabled .coupon-tag-remove:hover {
    background: #999;
}

.coupon-tag.validating {
    opacity: 0.6;
    pointer-events: none;
}

/* Apply Button Active State */
#apply-coupon-btn {
    padding: 6px 16px;
    font-size: 0.875rem;
}

#apply-coupon-btn:not(:disabled) {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

#apply-coupon-btn:not(:disabled):hover {
    background: #0056b3;
    border-color: #0056b3;
}

#apply-coupon-btn:disabled {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Renewal Amount Message */
.renewal-message {
    margin-top: 12px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #856404;
}

/* Price Summary */
.price-summary {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #555;
}

.price-row.discount-row {
    color: #4caf50;
    font-weight: 500;
}

.discount-amount {
    color: #4caf50;
}

.price-row.tax-row {
    color: #666;
    font-weight: 500;
}

.tax-amount {
    color: #666;
    font-weight: 500;
}

.price-row.total-row {
    border-top: 2px solid #e0e0e0;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.total-price {
    font-size: 1.3rem;
    color: #4a90e2;
    font-weight: 700;
}

.billing-period {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #666;
}

/* Button States */
#signup-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

#signup-submit-btn:disabled:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .plan-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .plan-card {
        padding: 16px;
    }
    
    .subscription-title {
        font-size: 1.3rem;
    }
    
    .plan-price {
        font-size: 1.5rem;
    }
    
    .coupon-input-wrapper {
        flex-direction: column;
    }
    
    .coupon-input-wrapper .btn {
        width: 100%;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-cards {
    animation: fadeIn 0.3s ease-in-out;
}

.price-summary {
    animation: fadeIn 0.3s ease-in-out;
}

