/* New file for course purchase styles */
.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1200;
}

.purchase-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.close-purchase {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.close-purchase:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.course-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.purchase-course-image {
    width: 120px;
    height: auto;
    border-radius: 8px;
}

.course-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.price-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price-info .original {
    text-decoration: line-through;
    color: var(--light-text);
}

.price-info .discounted {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.purchase-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

.coupon-input {
    display: flex;
    gap: 0.5rem;
}

.coupon-input input {
    flex: 1;
}

.apply-coupon {
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-coupon:hover {
    background: #1976d2;
}

.coupon-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.price-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-row.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-weight: 600;
}

.dm-order-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dm-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.purchase-success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    z-index: 1300;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: popup-slide 0.5s forwards;
}

.success-content i {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .purchase-container {
        padding: 1rem;
    }
    
    .course-summary {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .purchase-course-image {
        width: 200px;
    }
}

