/**
 * Payment Page Styles
 */

.aggiudicato-payment-wrapper {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.aggiudicato-payment-header {
    text-align: center;
    margin-bottom: 50px;
}

.aggiudicato-payment-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.aggiudicato-payment-header p {
    font-size: 18px;
    color: #777;
}

/* Plans Grid */
.aggiudicato-payment-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.aggiudicato-plan-card {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.aggiudicato-plan-card:hover {
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.aggiudicato-plan-featured {
    border-color: var(--majorelle-blue, #5956e9);
    border-width: 3px;
}

.aggiudicato-plan-featured:hover {
    border-color: var(--majorelle-blue, #5956e9);
    box-shadow: 0 4px 20px rgba(89, 86, 233, 0.3);
}

/* Plan Badge */
.plan-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4caf50;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.plan-badge-featured {
    background: var(--majorelle-blue, #5956e9);
}

/* Plan Title */
.aggiudicato-plan-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* Plan Price */
.plan-price {
    margin-bottom: 10px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #333;
}

.price-period {
    font-size: 18px;
    color: #777;
    font-weight: 400;
}

.plan-savings {
    font-size: 14px;
    color: var(--majorelle-blue, #5956e9);
    font-weight: 600;
    margin-bottom: 25px;
}

/* Plan Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 25px 0 30px;
    flex-grow: 1;
}

.plan-features li {
    padding: 10px 0;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.plan-features li:first-child {
    padding-top: 0;
}

/* Plan Button */
.aggiudicato-plan-card button {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.aggiudicato-plan-card button:disabled,
.aggiudicato-plan-card button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.aggiudicato-plan-card button .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Payment Info */
.aggiudicato-payment-info {
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.aggiudicato-payment-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Loading Overlay */
#aggiudicato-payment-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#aggiudicato-payment-loading .loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--majorelle-blue, #5956e9);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#aggiudicato-payment-loading p {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* Error Message */
.aggiudicato-payment-error {
    max-width: 600px;
    margin: 100px auto;
    padding: 40px;
    text-align: center;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
}

.aggiudicato-payment-error p {
    font-size: 16px;
    color: #856404;
    margin-bottom: 20px;
}

.aggiudicato-payment-error .btn {
    display: inline-block;
    margin-top: 10px;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .aggiudicato-payment-wrapper {
        margin: 40px auto;
    }

    .aggiudicato-payment-header h1 {
        font-size: 28px;
    }

    .aggiudicato-payment-header p {
        font-size: 16px;
    }

    .aggiudicato-payment-plans {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .aggiudicato-plan-card {
        padding: 30px 25px;
    }

    .price-amount {
        font-size: 40px;
    }

    .plan-features li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .aggiudicato-payment-wrapper {
        margin: 30px auto;
        padding: 0 15px;
    }

    .aggiudicato-payment-header h1 {
        font-size: 24px;
    }

    .aggiudicato-plan-card {
        padding: 25px 20px;
    }

    .price-amount {
        font-size: 36px;
    }

    .aggiudicato-plan-card button {
        padding: 12px 25px;
        font-size: 15px;
    }
}
