/* BioTechBuilder Cost Calculator - scoped to .btb-cost-calculator to avoid WordPress theme conflicts */

.btb-cost-calculator,
.btb-cost-calculator *,
.btb-cost-calculator *::before,
.btb-cost-calculator *::after {
    box-sizing: border-box;
}

.btb-cost-calculator {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #def5fd 0%, #f9f2f8 100%);
    padding: 20px;
    line-height: 1.6;
}

.btb-cost-calculator .container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.btb-cost-calculator .header {
    background: #1d6fde;
    color: white;
    padding: 30px;
    text-align: center;
}

.btb-cost-calculator .header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.btb-cost-calculator .header p {
    font-size: 1.1em;
    opacity: 0.95;
}

.btb-cost-calculator .content {
    padding: 30px;
}

.btb-cost-calculator .section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1d6fde;
}

.btb-cost-calculator .section h2 {
    color: #1d6fde;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.btb-cost-calculator .section > p {
    color: #000;
}

.btb-cost-calculator .section#equipment-section {
    background: #1d6fde;
    border-left: 4px solid #1557b8;
}

.btb-cost-calculator .section#equipment-section h2 {
    color: white;
}

.btb-cost-calculator .section#equipment-section > p {
    color: white;
}

.btb-cost-calculator .intro-text {
    background: #fff8eb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #faa21b;
}

.btb-cost-calculator .curriculum-option {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.btb-cost-calculator .curriculum-option:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btb-cost-calculator #full-curriculum-option {
    border-color: #6cc065;
}

.btb-cost-calculator #full-curriculum-option:hover {
    box-shadow: 0 4px 12px rgba(108, 192, 101, 0.15);
}

.btb-cost-calculator #full-curriculum-option.selected {
    border-color: #6cc065;
    background: #f0f9ef;
}

.btb-cost-calculator #module1-option {
    border-color: #00aeef;
}

.btb-cost-calculator #module1-option:hover {
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.15);
}

.btb-cost-calculator #module1-option.selected {
    border-color: #00aeef;
    background: #def5fd;
}

.btb-cost-calculator #module2-option {
    border-color: #97268f;
}

.btb-cost-calculator #module2-option:hover {
    box-shadow: 0 4px 12px rgba(151, 38, 143, 0.15);
}

.btb-cost-calculator #module2-option.selected {
    border-color: #97268f;
    background: #f9f2f8;
}

.btb-cost-calculator #module3-option {
    border-color: #faa21b;
}

.btb-cost-calculator #module3-option:hover {
    box-shadow: 0 4px 12px rgba(250, 162, 27, 0.15);
}

.btb-cost-calculator #module3-option.selected {
    border-color: #faa21b;
    background: #fff8eb;
}

.btb-cost-calculator .curriculum-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
}

.btb-cost-calculator .curriculum-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.btb-cost-calculator .topic-checkboxes {
    margin-left: 35px;
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.btb-cost-calculator .topic-checkboxes label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btb-cost-calculator .topic-checkboxes label:hover {
    background: white;
}

.btb-cost-calculator .topic-checkboxes input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btb-cost-calculator .pricing-options {
    margin-left: 35px;
    margin-top: 15px;
    display: grid;
    gap: 10px;
}

.btb-cost-calculator .pricing-option {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.btb-cost-calculator .pricing-option:hover {
    background: #f0f0f0;
}

.btb-cost-calculator .pricing-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btb-cost-calculator .pricing-option label {
    cursor: pointer;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btb-cost-calculator .price-tag {
    font-weight: bold;
    color: #97268f;
    font-size: 1.1em;
}

.btb-cost-calculator .training-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.btb-cost-calculator .training-option {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.btb-cost-calculator .training-option:hover {
    border-color: #97268f;
    box-shadow: 0 4px 12px rgba(151, 38, 143, 0.15);
}

.btb-cost-calculator .training-option input[type="checkbox"]:checked + label {
    color: #97268f;
    font-weight: 600;
}

.btb-cost-calculator .training-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.btb-cost-calculator .training-option input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btb-cost-calculator .equipment-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btb-cost-calculator .equipment-table table {
    width: 100%;
    border-collapse: collapse;
}

.btb-cost-calculator .equipment-table thead {
    background: #1d6fde;
    color: white;
}

.btb-cost-calculator .equipment-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.btb-cost-calculator .equipment-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.btb-cost-calculator .equipment-table tbody tr:hover {
    background: #f8f9fa;
}

.btb-cost-calculator .equipment-table td {
    padding: 15px 10px;
    vertical-align: middle;
}

.btb-cost-calculator .item-name {
    font-weight: 500;
    color: #333;
}

.btb-cost-calculator .item-link {
    color: #00aeef;
    text-decoration: none;
    transition: color 0.2s;
}

.btb-cost-calculator .item-link:hover {
    color: #97268f;
    text-decoration: underline;
}

.btb-cost-calculator .budget-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.btb-cost-calculator .budget-option input[type="radio"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.btb-cost-calculator .budget-option label {
    cursor: pointer;
    font-size: 0.9em;
    line-height: 1.4;
}

.btb-cost-calculator .quantity-input {
    width: 80px;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    text-align: center;
    transition: border-color 0.2s;
}

.btb-cost-calculator .quantity-input:focus {
    outline: none;
    border-color: #00aeef;
}

.btb-cost-calculator .price-cell {
    font-weight: 600;
    color: #97268f;
    font-size: 1.05em;
}

.btb-cost-calculator .total-section {
    background: #1d6fde;
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: center;
}

.btb-cost-calculator .total-section h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: white;
}

.btb-cost-calculator .total-amount {
    font-size: 3em;
    font-weight: bold;
    margin: 20px 0;
}

.btb-cost-calculator .breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
    text-align: center;
}

.btb-cost-calculator .breakdown-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
}

.btb-cost-calculator .breakdown-item h4 {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 8px;
}

.btb-cost-calculator .breakdown-item .amount {
    font-size: 1.5em;
    font-weight: bold;
}

.btb-cost-calculator .action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btb-cost-calculator .btn {
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btb-cost-calculator .btn-primary {
    background: white;
    color: #1d6fde;
}

.btb-cost-calculator .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btb-cost-calculator .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btb-cost-calculator .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btb-cost-calculator .warning-message {
    background: #fff3cd;
    border: 2px solid #faa21b;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.btb-cost-calculator .warning-message.show {
    display: block;
}

.btb-cost-calculator .recommended-qty {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

@media print {
    .btb-cost-calculator {
        background: white;
        padding: 0;
    }
    .btb-cost-calculator .action-buttons,
    .no-print {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .btb-cost-calculator .header h1 {
        font-size: 1.8em;
    }

    .btb-cost-calculator .equipment-table {
        overflow-x: auto;
    }

    .btb-cost-calculator .total-amount {
        font-size: 2em;
    }

    .btb-cost-calculator .breakdown {
        grid-template-columns: 1fr;
    }
}
