.calculator-header {
    margin-bottom: 2rem;
}

.calculator-title {
    color: #E02B20;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.calculator-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.section-title {
    color: #E02B20;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* Organization Cards and SFEC Cards */
.org-card, .sfec-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
}

.org-card:hover, .sfec-card:hover {
    border-color: #E02B20;
    box-shadow: 0 4px 8px rgba(224, 43, 32, 0.1);
}

.org-card.selected, .sfec-card.selected {
    border-color: #E02B20;
    background-color: #fef5f5;
}

/* Participant Sections */
.participant-section .card {
    transition: all 0.3s ease;
}

.participant-section .card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Course Info Card */
.course-info .card {
    background-color: #fef5f5;
    border-left: 4px solid #E02B20;
}

/* Cost Display */
.cost-display {
    text-align: center;
}

.cost-breakdown {
    font-size: 0.95rem;
}

.final-summary {
    font-size: 1.05rem;
}

/* General Utilities */
.cursor-pointer {
    cursor: pointer;
}

/* Custom Colors */
.text-success {
    color: #28a745 !important;
}

#final-cost.text-primary {
    color: #E02B20 !important;
}

.bg-primary {
    background-color: #E02B20 !important;
}

.border-primary {
    border-color: #E02B20 !important;
}

.btn-primary {
    background-color: #E02B20 !important;
    border-color: #E02B20 !important;
}

.btn-primary:hover {
    background-color: #c4251c !important;
    border-color: #c4251c !important;
}

/* Course Tier Badge */
#course-tier {
    font-size: 0.8rem;
}

/* Loading Indicator */
.loading-courses {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Negative Cost Styling */
.negative-cost {
    color: #dc3545 !important;
    font-weight: bold;
}

/* WSQ Dual Results */
#wsq-dual-results .card {
    min-height: 135px;
}

#wsq-dual-results .final-summary {
    font-size: 0.95rem;
}

/* Additional Color Classes */
.text-info {
    color: #17a2b8 !important;
}

.text-warning {
    color: #856404 !important;
}

.border-info {
    border-color: #17a2b8 !important;
}

.border-warning {
    border-color: #ffc107 !important;
}

/* Form Controls */
.form-select:focus,
.form-control:focus {
    border-color: #E02B20;
    box-shadow: 0 0 0 0.2rem rgba(224, 43, 32, 0.25);
}

/* Badge Styling */
.badge {
    font-size: 0.75em;
}

.badge.fs-6 {
    font-size: 0.875rem !important;
}

.hide-hrp {
    display: none !important;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Results Section Styling */
.results-section .card {
    border: 1px solid #dee2e6 !important;
}

.results-section .card-title {
    color: #E02B20 !important;
    font-weight: 600;
}

/* Alert Styling */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Input Group Styling */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* SFEC Input Styling */
#sfec-amount-input .input-group-text {
    background-color: #E02B20;
    color: white;
    border-color: #E02B20;
}

#sfec-amount-input .form-control {
    border-left: none;
}

#sfec-amount-input .form-control:focus {
    border-color: #E02B20;
    box-shadow: none;
}

/* SFEC Benefit Display */
#sfec-benefit {
    background-color: #f8f9fa;
    padding: 0.75rem;
    margin-top: 1em;
    border-left: 4px solid #E02B20;
}

/* Spinner Animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Button Styling */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Additional Supports Section Styling */
#additional-supports .card-title {
    color: #E02B20;
    font-weight: 600;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* SFEC Question Styling */
#sfec-question {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #E02B20;
}

#sfec-question .form-label {
    color: #E02B20;
    font-weight: 600;
}

/* Input Group Focus States */
.input-group:focus-within .input-group-text {
    border-color: #E02B20;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subsidy-calculator-container {
        padding: 15px;
    }
    
    .row > div {
        margin-bottom: 1rem;
    }
    
    #wsq-dual-results .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .calculator-title {
        font-size: 1.5rem;
    }
    
    .calculator-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .final-summary {
        font-size: 1rem;
    }
    
    #wsq-dual-results .final-summary {
        font-size: 0.9rem;
    }

    /* SFEC responsive adjustments */
    #sfec-benefit span:first-child {
        font-size: 0.9rem;
    }
    
    .org-card .card-body,
    .sfec-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .subsidy-calculator-container {
        padding: 10px;
    }
    
    .org-card .card-body,
    .sfec-card .card-body {
        padding: 0.75rem;
    }
    
    .participant-section .card-body {
        padding: 1rem;
    }
    
    .cost-display {
        margin-top: 1rem;
        text-align: left;
    }
    
    .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }

    /* SFEC mobile adjustments */
    #sfec-question {
        padding: 0.75rem;
    }
    
    #sfec-amount-input .input-group {
        margin-bottom: 0.5rem;
    }
    
    #sfec-benefit span:first-child {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

.icon-circle {
    width: 30px;
    height: 30px;
    background: #E02B20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.icon-circle-warning {
    width: 30px;
    height: 30px;
    background: #856404;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.steps-list {
    padding-left: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.step-number {
    background: #E02B20;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-section {
    border-top: 2px solid rgba(224, 43, 32, 0.2);
    padding-top: 15px;
}

.tip-box {
    background: #ffffff;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #E02B20;
    display: flex;
    align-items: center;
}

.notes-disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #fef3e2 100%);
    border: 1px solid #ffeaa7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.disclaimer-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #856404;
    line-height: 1.6;
    font-size: 0.95em;
}

.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb;
}

@media (max-width: 768px) {
    .icon-circle, .icon-circle-warning {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .steps-list {
        padding-left: 10px;
    }
    
    .step-item {
        gap: 8px;
        margin-bottom: 10px;
    }
}

/* Multiple Courses Subsidy Calculator Styles */

.multiple-subsidy-calculator-container {
    padding: 1rem;
}

.calculator-header {
    margin-bottom: 2rem;
}

.calculator-title {
    color: #E02B20;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.calculator-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.section-title {
    color: #E02B20;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* Compact Layout Styles */
.setup-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.compact-card {
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    min-height: 50px;
}

.compact-card .card-body {
    padding: 0.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}

.compact-card:hover {
    border-color: #E02B20;
    box-shadow: 0 2px 4px rgba(224, 43, 32, 0.1);
}

.compact-card.selected {
    border-color: #E02B20;
    background-color: #fef5f5;
}

/* Organization and SFEC Cards */
.org-card, .sfec-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Course Groups */
.courses-section {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
}

.course-group {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.course-group:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.course-group-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-group-summary:hover {
    color: #E02B20;
}

.course-group-actions {
    display: flex;
    gap: 0.25rem;
}

.collapse-toggle {
    transition: transform 0.3s ease;
}

.collapse-toggle[aria-expanded="false"] i {
    transform: rotate(180deg);
}

/* Course Selection and Details */
.course-details .card {
    background-color: #fef5f5;
    border-left: 4px solid #E02B20;
}

.duplicate-warning {
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.alert-sm {
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Participants Section */
.participants-section .form-label-sm {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
    line-height: 1.2;
}

.participants-section .form-control-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.participant-subsidy-rate {
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
    text-align: center;
}

.participant-validation {
    margin-top: 0.5rem;
}

/* Form Controls */
.form-select:focus,
.form-control:focus {
    border-color: #E02B20;
    box-shadow: 0 0 0 0.2rem rgba(224, 43, 32, 0.25);
}

.form-select-sm,
.form-control-sm {
    font-size: 0.875rem;
}

/* Results Section */
.results-section .card {
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.results-section .card-title {
    color: #E02B20;
    font-weight: 600;
}

.course-fees-list {
    max-height: 200px;
    overflow-y: auto;
}

.course-fee-item {
    padding: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.course-fee-item:last-child {
    border-bottom: none;
}

.course-fee-item .course-name {
    font-weight: 600;
    color: #495057;
}

.course-fee-item .fee-calculation {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Cost Breakdown */
.cost-breakdown {
    font-size: 0.95rem;
}

.final-summary {
    font-size: 1.05rem;
}

/* WSQ Dual Results */
#wsq-dual-results .card {
    min-height: 135px;
}

#wsq-dual-results .final-summary {
    font-size: 0.95rem;
}

/* Badges and Indicators */
.badge {
    font-size: 0.75em;
}

.badge.fs-6 {
    font-size: 0.875rem !important;
}

.wsq-indicator {
    font-size: 0.7rem;
}

/* Button Styling */
.btn-primary {
    background-color: #E02B20;
    border-color: #E02B20;
}

.btn-primary:hover {
    background-color: #c4251c;
    border-color: #c4251c;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom Colors */
.text-success {
    color: #28a745 !important;
}

.text-primary {
    color: #E02B20 !important;
}

.bg-primary {
    background-color: #E02B20 !important;
}

.border-primary {
    border-color: #E02B20 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-warning {
    color: #856404 !important;
}

.border-info {
    border-color: #17a2b8 !important;
}

.border-warning {
    border-color: #ffc107 !important;
}

/* SFEC Styling */
#sfec-question {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #E02B20;
}

#sfec-question .form-label {
    color: #E02B20;
    font-weight: 600;
}

#sfec-amount-input .input-group-text {
    background-color: #E02B20;
    color: white;
    border-color: #E02B20;
}

#sfec-amount-input .form-control {
    border-left: none;
}

#sfec-amount-input .form-control:focus {
    border-color: #E02B20;
    box-shadow: none;
}

#sfec-benefit {
    background-color: #f8f9fa;
    padding: 0.75rem;
    margin-top: 1em;
    border-left: 4px solid #E02B20;
}

/* Alert Styling */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb;
}

.notes-disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #fef3e2 100%);
    border: 1px solid #ffeaa7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.disclaimer-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #856404;
    line-height: 1.6;
    font-size: 0.95em;
}

/* Icon Styling */
.icon-circle {
    width: 30px;
    height: 30px;
    background: #E02B20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.icon-circle-warning {
    width: 30px;
    height: 30px;
    background: #856404;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.steps-list {
    padding-left: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.step-number {
    background: #E02B20;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

.negative-cost {
    color: #dc3545 !important;
    font-weight: bold;
}

/* Loading and Empty States */
.loading-courses {
    color: #6c757d;
    font-size: 0.9rem;
}

#no-courses-message {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 2px dashed #dee2e6;
}

/* Scrollbar Styling */
.input-section::-webkit-scrollbar,
.course-fees-list::-webkit-scrollbar {
    width: 6px;
}

.input-section::-webkit-scrollbar-track,
.course-fees-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.input-section::-webkit-scrollbar-thumb,
.course-fees-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.input-section::-webkit-scrollbar-thumb:hover,
.course-fees-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .multiple-subsidy-calculator-container {
        padding: 10px;
    }
    
    .input-section {
        max-height: none;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .setup-section {
        padding: 0.75rem;
    }
    
    .courses-section {
        padding: 0.75rem;
    }
    
    .course-group .card-body {
        padding: 1rem !important;
    }
    
    .participants-section .col-4 {
        margin-bottom: 1rem;
    }
    
    .participants-section .form-label-sm {
        font-size: 0.75rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
    
    #wsq-dual-results .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .calculator-title {
        font-size: 1.5rem;
    }
    
    .calculator-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .final-summary {
        font-size: 1rem;
    }
    
    #wsq-dual-results .final-summary {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .compact-card .card-body {
        padding: 0.25rem !important;
        min-height: 32px;
    }
    
    .course-group-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .course-group-actions {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .participants-section .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .icon-circle, .icon-circle-warning {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .steps-list {
        padding-left: 10px;
    }
    
    .step-item {
        gap: 8px;
        margin-bottom: 10px;
    }
}

/* Animation for course group collapse */
.course-group .collapse {
    transition: height 0.3s ease;
}

/* Hide template */
template {
    display: none;
}