/* Checkout Page Styles */

.checkout-container {
    max-width: 1200px; /* Wider for two-column layout */
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 3; 
}

.order-summary {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    height: fit-content;
}

.checkout-header h1, .course-selection-header h1 { /* MINTRA Style */
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em; 
    font-weight: normal;
}

.header {
    margin: 0;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: normal;
    font-size: 0.9em;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

.checkout-button { /* MINTRA Style */
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #5cb85c; /* Mintra Green */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
}



.checkout-button:hover {
    background-color: #4cae4c;
}

.checkout-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.checkout-button i {
    margin-left: 8px;
}

.payment-error-display {
    color: #fa755a;
    font-size: 0.9em;
    margin-top: 10px;
    padding: 10px;
    background-color: #ffe0e0;
    border: 1px solid #fa755a;
    border-radius: 4px;
}

.payment-error-display:empty {
    display: none;
}

.order-summary h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.order-summary-item {

        border-bottom: 1px solid #b8b8b8;
        margin-bottom: 10px;
        padding-bottom: 10px;

}

.order-summary-item, .order-summary-total p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.order-summary-item .course-name {

    flex-grow: 1;
    margin-right: 10px;
    font-size: 14pt;
    text-transform: none;

}

.order-summary-item .course-qty, .order-summary-item .course-price-line {
     min-width: 60px; text-align: right; 
}

.order-summary .total {
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.secure-checkout-info {
    text-align: center;
    margin-top: 20px;
}

.secure-checkout-info img {
    margin-top: 5px;
}

.secure-checkout-info p {
    font-size: 0.85em;
    color: #555;
    justify-content: center;
}

.secure-checkout-info p i {
    margin-right: 5px;
}

.course-list {
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.course-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.course-item:last-child {
    border-bottom: none;
}

.course-item-name {
    flex-grow: 1;
    font-size: 1.05em;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.quantity-btn {
    background-color: #005689; /* Mintra Blue */
    color: white;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #004065; /* Darker Mintra Blue */
}

.quantity-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.course-quantity {
    min-width: 30px;
    text-align: center;
    font-size: 1.1em;
    padding: 0 10px;
    color: #333;
}

.empty-basket-message {
    padding: 15px;
    text-align: center;
    color: #777;
}

.footer-icons-checkout {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.footer-icon-item {
    text-align: center;
    flex: 1;
}

.footer-icon-item i {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #005689;
}

.footer-icon-item p {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 0;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .checkout-container {
        flex-direction: column;
        margin: 20px;
        padding: 20px;
    }
    .order-summary {
        margin-top: 20px;
    }
}


/* Breadcrumb Styles */
.breadcrumbs .breadcrumb-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ccc;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
    padding-top: 2px;
}

.breadcrumbs li.active .breadcrumb-number {
    background-color: #5cb85c;
}

.breadcrumbs a .breadcrumb-number {
    background-color: #5cb85c; /* Green for completed steps */
}


@media (max-width: 768px) {

    .header {
        margin: 0;
        margin-bottom: 10px;
    }


    .checkout-header h1, .course-selection-header h1 {
        font-size: 1.5em;
    }
    .course-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .quantity-controls {
        margin-left: 0;
        align-self: flex-end;
    }
    .footer-icons-checkout {
        flex-direction: column;
        gap: 20px;
    }

    ul.breadcrumbs {

        display: flex;
        padding: 0;
        align-items: center;
        justify-content: center;
        width: 80%;
        margin: auto;
        font-size: 10pt;
    }


    .course-item {

        display: flex;
        flex-direction: row;
    }

    h1 {
        font-size: 18pt;
    }

}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .checkout-container {
        margin: 10px;
        padding: 15px;
    }
    .course-item-name {
        font-size: 1em; /* Adjust if needed */
    }
}
