/* Payment Page Styles */
.payment-page {
    padding: 40px 0;
}

.payment-section {
    background: #f8f9fa;
    padding: 40px 0;
}

.payment-details {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.payment-details h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
}

.course-info h3 {
    color: #3498db;
    margin-bottom: 20px;
}

.enrollment-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-item .label {
    font-weight: 600;
    color: #495057;
}

.detail-item .value {
    color: #6c757d;
}

.payment-amount {
    text-align: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.payment-amount h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.amount-display {
    font-size: 2.5rem;
    font-weight: bold;
}

.amount-display .currency {
    font-size: 1.8rem;
    margin-right: 5px;
}

#paystack-button {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#paystack-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.payment-security {
    margin-top: 25px;
    text-align: center;
    color: #6c757d;
}

.payment-security p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.payment-security i {
    margin-right: 8px;
    color: #28a745;
}

/* Payment Sidebar */
.payment-sidebar {
    position: sticky;
    top: 20px;
}

.course-summary, .payment-benefits {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.course-summary h4, .payment-benefits h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.summary-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.summary-item i {
    color: #3498db;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.payment-benefits ul {
    list-style: none;
    padding: 0;
}

.payment-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.payment-benefits i {
    color: #28a745;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px 25px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ecf0f1;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.course-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.course-summary h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.course-summary p {
    margin: 8px 0;
    color: #495057;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Verification Page Styles */
.verification-page {
    padding: 60px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.verification-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.verification-state {
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.success-icon i, .error-icon i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.enrollment-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Enrollment Page Styles */
.enrollment-page {
    padding: 40px 0;
}

.enrollment-section {
    background: #f8f9fa;
    padding: 40px 0;
}

.enrollment-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.enrollment-form-container h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
}

.course-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.course-summary h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.summary-item i {
    color: #3498db;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.price-display {
    text-align: center;
    margin-top: 20px;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    padding: 15px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 10px;
    display: inline-block;
}

.price.free {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.enrollment-form {
    margin-top: 30px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Additional enrollment form styles */
.enrollment-form .form-group {
    margin-bottom: 25px;
}

.enrollment-form .form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.enrollment-form .form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.enrollment-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-details, .modal-content {
        margin: 10px;
        width: auto;
    }
    
    .modal-content {
        margin: 10% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .amount-display {
        font-size: 2rem;
    }
    
    .amount-display .currency {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .payment-details {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .verification-content {
        padding: 30px 20px;
    }
}