/* Course Payment Page Styles */

/* Payment Process Container */
.payment-process-container {
    margin: 10px 0;
}

.payment-step-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #b4235c;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #b4235c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-description {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-details {
    margin-top: auto;
}

.step-details h5 {
    color: #b4235c;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.advance-note,
.balance-note {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    margin-top: 10px;
    line-height: 1.5;
}

.payment-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-details-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.payment-details-list li:last-child {
    border-bottom: none;
}

.payment-details-list li strong {
    color: #b4235c;
    font-weight: 600;
}

.payment-info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #b4235c;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.payment-info-icon:before {
    content: "i";
    font-style: normal;
    font-weight: bold;
}

.payment-info-icon:hover {
    background: #9a1e4a;
    transform: scale(1.1);
}

/* Section Titles */
.section-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* Pricing Table Section */
.pricing-table-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 4px solid #b4235c;
}

.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pricing-table thead {
    background: #b4235c;
    color: white;
}

.pricing-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border: none;
    position: relative;
}

.pricing-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.pricing-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 14px;
    position: relative;
}

.pricing-table td:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: #f5f5f5;
}

.pricing-table tbody tr:hover {
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table td[rowspan] {
    vertical-align: middle;
    font-weight: 600;
    background: #f8f9fa;
    border-right: 2px solid #b4235c;
}

.pricing-table td[rowspan]:hover {
    background: #e9ecef;
}

/* Price Styling */
.total-price {
    color: #2c3e50;
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
}

.advance-amount {
    color: #b4235c;
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}

.balance-amount {
    color: #28a745;
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}

/* Payment Methods */
.payment-methods-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 4px solid #b4235c;
}

.payment-method-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.payment-method-card h5 {
    color: #b4235c;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.bank-details p {
    margin-bottom: 8px;
    font-size: 16px;
    color: #495057;
    line-height: 1.5;
}

/* Important Notice */
.important-notice {
    background: #b4235c;
    color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(180, 35, 92, 0.3);
    border-left: 4px solid #fff;
}

.important-notice h4 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.important-notice p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

.important-notice p:last-child {
    margin-bottom: 0;
}

.important-notice a {
    color: #fff !important;
    text-decoration: underline !important;
    font-weight: 600;
}

.important-notice a:hover {
    color: #f8f9fa !important;
    text-decoration: none !important;
}

/* Refund Policy */
.refund-policy-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 4px solid #b4235c;
}

.refund-content p {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
    border: 1px solid #e9ecef;
}

.refund-content p:last-child {
    margin-bottom: 0;
}

/* Payment Notes Section */
.payment-notes-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 4px solid #b4235c;
}

.payment-note-box {
    margin-bottom: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.payment-note-box h4 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.advance-notes h4 {
    color: #b4235c;
}

.balance-notes h4 {
    color: #28a745;
}

.payment-note-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-note-box li {
    padding: 8px 0;
    font-size: 16px;
    color: #495057;
    line-height: 1.6;
}

.payment-note-box li:before {
    content: "•";
    color: #b4235c;
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}

.balance-notes li:before {
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-step-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 15px;
    }
    
    .step-details h5 {
        font-size: 16px;
    }
    
    .advance-note,
    .balance-note {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .pricing-table-section,
    .payment-methods-section,
    .refund-policy-section,
    .payment-notes-section {
        padding: 20px;
    }
    
    .payment-note-box h4 {
        font-size: 18px;
    }
    
    .payment-note-box li {
        font-size: 14px;
    }
    
    /* Mobile Table Responsiveness */
    .pricing-table {
        font-size: 12px;
        min-width: 600px; /* Ensure table doesn't get too compressed */
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 8px 4px;
        font-size: 11px;
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    .pricing-table th {
        font-size: 12px;
        font-weight: 600;
    }
    
    .total-price,
    .advance-amount,
    .balance-amount {
        font-size: 11px !important;
        font-weight: 600;
    }
    
    /* Make table horizontally scrollable on mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Hide vertical lines on mobile for cleaner look */
    .pricing-table th:not(:last-child)::after,
    .pricing-table td:not(:last-child)::after {
        display: none;
    }
    
    .important-notice {
        padding: 15px;
        margin-top: 15px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .advance-amount,
    .balance-amount,
    .total-price {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .pricing-table {
        font-size: 11px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 8px 3px;
    }
    
    .note-box {
        padding: 12px;
    }
}
