/* Checkout Flow Accordion Styles */
.yij-checkout-accordion {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Login Required */
.yij-checkout-login-required {
    text-align: center;
    padding: 40px 20px;
}
.yij-checkout-login-required p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

/* Already Registered / Pending Order */
.yij-checkout-already-registered {
    text-align: center;
    padding: 40px 20px;
}
.yij-checkout-already-registered p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}
.yij-checkout-already-registered .fa {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}
.yij-checkout-already-registered .fa-check-circle {
    color: #46b450;
}
.yij-checkout-already-registered .fa-info-circle {
    color: #0073aa;
}

/* Header */
.checkout-header {
    text-align: center;
    margin-bottom: 30px;
}
.checkout-header h2 {
    margin-bottom: 5px;
    font-size: 24px;
}
.checkout-course-title {
    color: #666;
    font-size: 16px;
}

/* Progress Bar */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 20px;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.progress-step span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}
.progress-step small {
    margin-top: 5px;
    font-size: 11px;
    color: #999;
}
.progress-step.active span {
    background: #0073aa;
    color: #fff;
}
.progress-step.active small {
    color: #0073aa;
    font-weight: 600;
}
.progress-step.completed span {
    background: #46b450;
    color: #fff;
}
.progress-step.completed small {
    color: #46b450;
}
.progress-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px;
    margin-bottom: 20px;
}

/* Accordion Steps */
.accordion-step {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.accordion-step .step-content {
    display: none;
    padding: 20px 25px;
}
.accordion-step.active .step-content {
    display: block;
}
.accordion-step.completed {
    border-color: #46b450;
}

/* Step Header */
.step-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    cursor: pointer;
    transition: background 0.2s;
}
.step-header:hover {
    background: #f0f0f0;
}
.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0073aa;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    margin-right: 12px;
    flex-shrink: 0;
}
.accordion-step.completed .step-number {
    background: #46b450;
}
.step-header h3 {
    margin: 0;
    font-size: 16px;
    flex: 1;
}
.step-status {
    color: #46b450;
    font-size: 18px;
}

/* Review Order */
.course-info-box {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 20px;
}
.course-thumb img {
    border-radius: 6px;
    max-width: 200px;
}
.course-details h3 {
    margin-top: 0;
}
.course-program-badge {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.course-price {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Sub-sections (Step 2) */
.sub-section {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}
.sub-section-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f5f5f5;
}
.sub-section-header h4 {
    margin: 0;
    font-size: 15px;
    flex: 1;
}
.subsection-status {
    color: #46b450;
}
.sub-section-content {
    padding: 15px;
}
.sub-section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Form Fields (reuse LP styles) */
.form-fields {
    list-style: none;
    padding: 0;
    margin: 0;
}
.form-field {
    margin-bottom: 15px;
}
.form-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}
.form-field .required {
    color: #e74c3c;
}
.form-field-input input,
.form-field-input select,
.form-field-input textarea {
    width: 100%;
    max-width: 100%;
}
.form-field__50 {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
    vertical-align: top;
}
.form-field__33 {
    display: inline-block;
    width: 31%;
    margin-right: 2%;
    vertical-align: top;
}
.form-field__clear {
    display: block;
    width: 100%;
}
.section-title-primary {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    margin-bottom: 15px;
}
.section-title-secondary {
    color: #555;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin: 20px 0 15px;
}

/* Payment */
.payment-info-box {
    background: #e8f4fd;
    border: 1px solid #b3d9f2;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 15px;
}
.payment-info-box p {
    margin: 0;
    color: #31708f;
}
.bank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.bank-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.bank-option:hover {
    border-color: #0073aa;
    background: #f7fbfe;
}
.bank-option input[type="radio"]:checked + .bank-info {
    color: #0073aa;
}
.bank-option:has(input:checked) {
    border-color: #0073aa;
    background: #f7fbfe;
}
.bank-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bank-name {
    font-size: 14px;
}
.account-number {
    font-family: monospace;
    font-size: 14px;
}
.account-name {
    font-size: 12px;
    color: #666;
}
.bank-branch {
    font-size: 11px;
    color: #999;
}

/* Review Summary */
.review-submit-content h4 {
    color: #333;
    margin-bottom: 20px;
}
.summary-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.summary-section {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}
.summary-section h5 {
    margin: 0;
    padding: 10px 15px;
    background: #f5f5f5;
    font-size: 14px;
}
.summary-body {
    padding: 12px 15px;
}
.summary-body p {
    margin: 3px 0;
    font-size: 14px;
}

/* Confirm Section */
.confirm-section {
    padding: 15px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    margin-bottom: 15px;
}
.confirm-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.confirm-checkbox input {
    width: 18px;
    height: 18px;
}

/* Info/Warning Boxes */
.info-box-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 5px;
}
.info-box-warning p {
    margin: 0;
    color: #856404;
    font-size: 13px;
}
.info-box-warning .fa {
    margin-right: 5px;
}
.info-box-light-blue {
    background: #e8f4fd;
    border: 1px solid #b3d9f2;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.info-box-light-blue p {
    margin: 0;
    color: #31708f;
    font-size: 13px;
}

/* Submit Bar */
.checkout-submit-bar {
    text-align: center;
    padding: 20px;
    margin-top: 10px;
}
.checkout-submit-bar .lp-button {
    font-size: 16px;
    padding: 12px 40px;
}
.checkout-submit-message {
    margin-top: 10px;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Form Messages */
.form-message {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 10px;
}
.form-message.success {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}
.form-message.error {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}
.form-message-hidden {
    display: none;
}

/* Radio options */
.radio-option {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}
.radio-option input {
    margin-right: 8px;
}

/* File Preview */
.file-preview {
    margin-top: 5px;
}
.file-preview img {
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* STK Review Step */
.stk-review-section {
    padding: 10px 0;
}
.review-info-box {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.review-info-box h4 {
    margin: 0 0 10px 0;
}
.review-info-box p {
    margin: 5px 0;
    font-size: 14px;
}
.info-pending {
    background: #fff3cd;
    border: 1px solid #ffc107;
}
.info-pending h4 { color: #856404; }
.info-pending p { color: #856404; }
.info-approved {
    background: #d4edda;
    border: 1px solid #28a745;
}
.info-approved h4 { color: #155724; }
.info-approved p { color: #155724; }
.review-note {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.review-note small {
    color: #555;
}
.review-note .fa {
    margin-right: 4px;
}
.info-rejected {
    background: #f8d7da;
    border: 1px solid #dc3545;
}
.info-rejected h4 { color: #721c24; }
.info-rejected p { color: #721c24; }
.reviewer-comment {
    background: white;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 3px solid #dc3545;
}
.reviewer-comment p {
    margin: 5px 0 0 0;
}
.review-timestamp {
    margin-top: 10px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .yij-checkout-accordion {
        padding: 10px;
    }
    .course-info-box {
        flex-direction: column;
    }
    .course-thumb img {
        max-width: 100%;
    }
    .form-field__50,
    .form-field__33 {
        display: block;
        width: 100%;
        margin-right: 0;
    }
    .progress-step small {
        display: none;
    }
    .step-actions {
        flex-direction: column;
        gap: 10px;
    }
    .step-actions .button,
    .step-actions .lp-button {
        width: 100%;
        text-align: center;
    }
}
