/**
 * Course Delivery Tabs - Frontend Styles
 * @package RTOGrow
 * @since 2.4.0
 */

/* Container */
.rto-delivery-tabs {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    margin: 30px 0;
}

/* Tab Navigation */
.rto-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 3px solid #e0e0e0;
    margin-bottom: 0;
}

.rto-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
    margin-right: -2px;
    position: relative;
    top: 3px;
}

.rto-tab-btn:hover {
    background: #eaeaea;
    color: #333;
}

.rto-tab-btn.active {
    background: #fff;
    color: #0073aa;
    border-color: #0073aa;
    border-bottom: 3px solid #fff;
    margin-bottom: -3px;
}

.rto-tab-btn .tab-icon {
    font-size: 18px;
}

.rto-tab-btn .tab-label {
    white-space: nowrap;
}

/* Tab Panels */
.rto-tabs-content {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.rto-tab-panel {
    display: none;
    padding: 30px;
}

.rto-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Tab Inner Content */
.rto-tab-inner {
    max-width: 900px;
}

/* Tab Header - Price & Duration */
.rto-tab-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.rto-tab-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.rto-tab-price .price-amount {
    font-size: 42px;
    font-weight: 700;
    color: #0073aa;
    line-height: 1;
}

.rto-tab-price .price-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.rto-tab-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f6fc;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    color: #0073aa;
}

.rto-tab-duration .duration-icon {
    font-size: 18px;
}

/* Description */
.rto-tab-description {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
}

.rto-tab-description p {
    margin-bottom: 15px;
}

/* What's Included */
.rto-tab-includes {
    background: #f9fafb;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.rto-tab-includes h4 {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.rto-tab-includes .includes-list {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.rto-tab-includes .includes-list p {
    margin-bottom: 8px;
}

/* Disclaimer Notice */
.rto-tab-disclaimer {
    background: var(--rto-primary-light, rgba(37, 99, 235, 0.08));
    border: 1px solid var(--rto-primary, #2563eb);
    border-left: 3px solid var(--rto-primary, #2563eb);
    border-radius: 0 6px 6px 0;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--rto-primary-dark, #1e40af);
}

.rto-tab-disclaimer p {
    margin: 0 0 5px;
}

.rto-tab-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Action Buttons */
.rto-tab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.rto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.rto-btn-primary {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.rto-btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.rto-btn-secondary {
    background: #fff;
    color: #0073aa;
    border-color: #0073aa;
}

.rto-btn-secondary:hover {
    background: #f0f6fc;
    color: #005a87;
}

/* ======================= */
/* Government Funding Tab */
/* ======================= */

.rto-funding-tab .rto-funding-prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.funding-price-box {
    text-align: center;
    padding: 25px 20px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.funding-price-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.funding-price-box.funded {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.funding-price-box.funded .price-amount {
    color: #155724;
}

.funding-price-box.concession {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-color: #ffc107;
}

.funding-price-box.concession .price-amount {
    color: #856404;
}

.funding-price-box.full {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.funding-price-box.full .price-amount {
    color: #495057;
}

.funding-price-box .price-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.funding-price-box .price-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.funding-price-box .price-note {
    font-size: 13px;
    color: #777;
}

/* Eligibility Section */
.rto-funding-eligibility {
    background: #f0f6fc;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #0073aa;
}

.rto-funding-eligibility h4 {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
}

.rto-funding-eligibility .eligibility-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

/* Fee Calculator */
.rto-funding-calculator {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.rto-funding-calculator h4 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.calculator-form .calc-question {
    margin-bottom: 15px;
}

.calculator-form .calc-question label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 15px;
    transition: background 0.2s;
}

.calculator-form .calc-question label:hover {
    background: #e9ecef;
}

.calculator-form .calc-question input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.calc-result {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.calc-result .result-funded {
    background: #d4edda;
    padding: 20px;
    border-radius: 8px;
    color: #155724;
}

.calc-result .result-concession {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    color: #856404;
}

.calc-result .result-full {
    background: #f8d7da;
    padding: 20px;
    border-radius: 8px;
    color: #721c24;
}

.calc-result strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

.calc-result .est-fee {
    font-size: 24px;
    font-weight: 700;
}

.calc-disclaimer {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

/* ======================= */
/* Responsive Design */
/* ======================= */

@media (max-width: 768px) {
    .rto-tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }
    
    .rto-tab-btn {
        border-radius: 0;
        border-bottom: 1px solid #e0e0e0;
        top: 0;
        margin-right: 0;
    }
    
    .rto-tab-btn:first-child {
        border-radius: 8px 8px 0 0;
    }
    
    .rto-tab-btn.active {
        background: #0073aa;
        color: #fff;
        border-bottom: 1px solid #0073aa;
        margin-bottom: 0;
    }
    
    .rto-tabs-content {
        border-top: 2px solid #e0e0e0;
        border-radius: 0 0 8px 8px;
    }
    
    .rto-tab-panel {
        padding: 20px;
    }
    
    .rto-tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .rto-tab-price .price-amount {
        font-size: 32px;
    }
    
    .rto-funding-prices {
        grid-template-columns: 1fr;
    }
    
    .funding-price-box .price-amount {
        font-size: 28px;
    }
    
    .rto-tab-actions {
        flex-direction: column;
    }
    
    .rto-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rto-tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .rto-tab-btn .tab-icon {
        font-size: 16px;
    }
}
