/* 
 * Studies Learning Premium - Checkout (Elite Aurora)
 * Isolated styles with .lp-checkout and custom .studies-p-checkout classes
 */

:root {
    --sp-checkout-primary: #0047ff;
    --sp-checkout-secondary: #00d4aa;
    --sp-checkout-accent: #711900;
    --sp-checkout-bg: #f8faff;
    --sp-checkout-surface: #ffffff;
}

#learn-press-checkout,
.studies-p-checkout-wrapper {
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1e293b;
}

.studies-p-checkout-header {
    text-align: center;
    margin-bottom: 4rem;
}

.studies-p-checkout-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--sp-checkout-primary);
    margin-bottom: 1rem;
}

.studies-p-checkout-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* --- Form Sections --- */
.lp-checkout-form__before,
.lp-checkout-form__after,
.lp-checkout-form #checkout-form {
    background: white;
    padding: 3.5rem;
    border-radius: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.lp-checkout-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lp-checkout-section-title i {
    color: var(--sp-checkout-primary);
}

.lp-form-field {
    margin-bottom: 1.5rem;
}

.lp-form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #64748b;
}

.lp-form-field input[type="text"],
.lp-form-field input[type="email"],
.lp-form-field input[type="tel"],
.lp-form-field select,
.lp-form-field textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fcfdfe;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.lp-form-field input:focus,
.lp-form-field textarea:focus {
    outline: none;
    border-color: var(--sp-checkout-primary);
    box-shadow: 0 0 0 4px rgba(0, 71, 255, 0.1);
    background: white;
}

/* --- Coupon Highlight --- */
.lp-checkout-coupon {
    background: linear-gradient(135deg, rgba(0, 71, 255, 0.05) 0%, rgba(0, 212, 170, 0.05) 100%);
    padding: 2rem;
    border-radius: 2rem;
    border: 2px dashed var(--sp-checkout-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.lp-checkout-coupon h4 {
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--sp-checkout-primary);
}

/* --- Order Review (Right Column) --- */
.lp-order-review {
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.lp-order-review-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 1rem;
}

.lp-review-order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.lp-review-order-item__name {
    font-weight: 700;
    color: #334155;
}

.lp-review-order-item__total {
    font-weight: 800;
    color: var(--sp-checkout-primary);
}

.lp-order-total {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--sp-checkout-primary);
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--sp-checkout-primary);
}

/* --- Payment Methods --- */
.lp-payment-methods {
    list-style: none;
    padding: 0;
    margin: 3rem 0;
}

.lp-payment-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lp-payment-method:hover {
    background: #f8faff;
    border-color: var(--sp-checkout-primary);
}

.lp-payment-method input {
    width: 20px;
    height: 20px;
    accent-color: var(--sp-checkout-primary);
}

/* --- Place Order Button --- */
#learn-press-checkout #lp-checkout-place-order {
    width: 100%;
    padding: 1.5rem;
    background: var(--sp-checkout-secondary);
    color: #00124b;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.3);
}

#learn-press-checkout #lp-checkout-place-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 60px rgba(0, 212, 170, 0.4);
}

/* Trust Badges */
.studies-p-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    color: #94a3b8;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.trust-badge i {
    color: #22c55e;
    font-size: 1.2rem;
}

/* --- Summary Review Details --- */
.summary-formation {
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.summary-formation:hover {
    transform: translateX(5px);
}

.summary-thumb {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.summary-title {
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.summary-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.summary-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.summary-details {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #64748b;
    font-weight: 600;
}

.summary-line.coupon {
    color: #22c55e;
    font-weight: 700;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 2px solid var(--sp-checkout-primary);
    font-size: 1.8rem;
    font-weight: 950;
    color: var(--sp-checkout-primary);
    letter-spacing: -0.03em;
}

/* Specific LP Place Order Fix */
.lp-checkout-place-order {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .studies-p-checkout-header h1 {
        font-size: 2.2rem;
    }
    .lp-checkout-form #checkout-form {
        padding: 2rem;
        border-radius: 2rem;
    }
    .studies-p-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}
