/**
 * Stripe Payment Form Styles
 *
 * @package PlusEvents
 * @since 1.1.0
 */

.pe-payment-step {
    margin-bottom: 30px;
}

.pe-payment-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.pe-payment-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
}

.pe-stripe-card-element {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.pe-stripe-card-element:focus-within {
    border-color: #0073e6;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1);
}

.pe-stripe-card-errors {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 20px;
    display: none;
}

.pe-stripe-card-errors.visible {
    display: block;
}

.pe-stripe-card-errors:not(:empty) {
    display: block;
}

.pe-secure-payment-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    border-radius: 4px;
}

.pe-secure-payment-notice .dashicons {
    color: #4caf50;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.pe-secure-payment-notice span {
    font-size: 14px;
    color: #2e7d32;
    line-height: 1.5;
}

.pe-stripe-powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.pe-stripe-powered-by span {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

.pe-accepted-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pe-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 26px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

.pe-card-icon.visa {
    color: #1a1f71;
    border-color: #1a1f71;
}

.pe-card-icon.mastercard {
    color: #eb001b;
    border-color: #eb001b;
}

.pe-card-icon.amex {
    color: #006fcf;
    border-color: #006fcf;
}

.pe-payment-button {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #0073e6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.pe-payment-button:hover {
    background: #005bb5;
}

.pe-payment-button:active {
    transform: scale(0.98);
}

.pe-payment-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.pe-payment-button .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: pe-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes pe-spin {
    to {
        transform: rotate(360deg);
    }
}

.pe-fee-breakdown {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.pe-fee-breakdown h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333;
}

.pe-fee-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pe-fee-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pe-fee-label {
    color: #666;
    font-size: 14px;
}

.pe-fee-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.pe-fee-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #e0e0e0;
}

.pe-fee-total .pe-fee-label {
    font-weight: 600;
    font-size: 16px;
}

.pe-fee-total .pe-fee-value {
    font-size: 18px;
    color: #0073e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pe-payment-section {
        padding: 20px;
    }

    .pe-payment-button {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .pe-payment-section {
        background: #2d2d2d;
        border-color: #444;
    }

    .pe-payment-section h3 {
        color: #fff;
    }

    .pe-stripe-card-element {
        background: #1a1a1a;
        border-color: #444;
    }
}