/* Payment Page Styles - Clean Version */

.payment-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    padding: 140px 20px 60px;
    color: white;
}

.payment-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.payment-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
}

/* Card Styles */
.order-summary-card,
.payment-form-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
}

.order-summary-card h2,
.payment-form-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Order Summary */
.order-summary-card {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-label {
    color: rgba(255, 255, 255, 0.8);
}

.summary-value {
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.qty-btn {
    background: var(--accent);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #5aa5e6;
    transform: scale(1.1);
}

.quantity {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 35px;
    text-align: center;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 1.5rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.2rem;
}

.total-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.features-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.features-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.features-section ul {
    list-style: none;
}

.features-section li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Payment Form */
.section-title {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1.5rem;
}

.section-title:first-child {
    margin-top: 0;
}

.input-wrapper {
    margin-bottom: 1.5rem;
}

.input-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.1);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.card-input {
    position: relative;
}

.card-input input {
    padding-right: 3rem;
}

.card-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.7;
    pointer-events: none;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(100, 181, 246, 0.2);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 10px;
    margin: 2rem 0 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
}

.lock-icon {
    font-size: 1.3rem;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, #5aa5e6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 181, 246, 0.4);
}

/* Success Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.modal-btn {
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, #5aa5e6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(100, 181, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .order-summary-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .payment-section {
        padding: 120px 15px 40px;
    }

    .order-summary-card,
    .payment-form-card {
        padding: 1.5rem;
    }

    .order-summary-card h2,
    .payment-form-card h2 {
        font-size: 1.5rem;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-box {
        padding: 2rem 1.5rem;
    }

    .total-price {
        font-size: 1.5rem;
    }
}
