/* IT Cost Calculator Styles */

.it-cost-calculator {
    /* Remove white background to inherit from parent */
}

.calculator-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(198, 156, 63, 0.2);
}

/* Form styling */
.it-cost-calculator .form-select,
.it-cost-calculator .form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(198, 156, 63, 0.3);
    color: #212529;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.it-cost-calculator .form-select:focus,
.it-cost-calculator .form-control:focus {
    border-color: #C69C3F;
    box-shadow: 0 0 0 0.25rem rgba(198, 156, 63, 0.25);
    background-color: rgba(255, 255, 255, 0.95);
    color: #212529;
}

.it-cost-calculator .form-select option {
    background-color: #fff;
    color: #212529;
}

/* Input group styling */
.it-cost-calculator .input-group-text {
    background-color: rgba(198, 156, 63, 0.1);
    border: 2px solid rgba(198, 156, 63, 0.3);
    border-right: none;
    color: #C69C3F;
    font-weight: 600;
}

.it-cost-calculator .input-group .form-control:focus ~ .input-group-text,
.it-cost-calculator .input-group .form-control:focus + .input-group-text {
    border-color: #C69C3F;
}

/* Result cards */
.result-card {
    transition: transform 0.3s ease;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(198, 156, 63, 0.2);
}

/* Ensure text is visible on colored backgrounds */
.result-card h4,
.result-card .result-value,
.result-card small {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Override for specific background opacity classes - darker for better contrast */
.result-card.bg-primary.bg-opacity-10 {
    background-color: rgba(198, 156, 63, 0.9) !important;
}

.result-card.bg-danger.bg-opacity-10 {
    background-color: rgba(220, 53, 69, 0.85) !important;
}

.result-card.bg-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.85) !important;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
}

/* Color scheme using brand colors */
.it-cost-calculator .btn-primary {
    background-color: #C69C3F;
    border-color: #C69C3F;
}

.it-cost-calculator .btn-primary:hover {
    background-color: #B88A37;
    border-color: #B88A37;
}

.it-cost-calculator .text-primary {
    color: #C69C3F !important;
}

.it-cost-calculator .bg-primary {
    background-color: #C69C3F !important;
}

/* Result section styling */
.result-card small {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

.breakdown table {
    font-size: 1.1rem;
}

.breakdown td {
    padding: 0.75rem;
    vertical-align: middle;
}

.breakdown .table-active {
    background-color: rgba(198, 156, 63, 0.1);
}

/* Included services section */
.included-services {
    border: 2px dashed rgba(198, 156, 63, 0.3);
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.included-services h4 {
    color: #C69C3F;
}

.included-services .bi-check-circle-fill {
    color: #C69C3F;
}

/* Results animation */
.cost-results {
    animation: fadeIn 0.5s ease-in;
}

/* Advanced options styling */
#advancedOptions {
    background-color: rgba(198, 156, 63, 0.05);
    border: 1px solid rgba(198, 156, 63, 0.2);
}

.form-range {
    height: 8px;
    background-color: rgba(198, 156, 63, 0.2);
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    background: #C69C3F;
}

.form-range::-moz-range-thumb {
    background: #C69C3F;
}

/* Methodology section */
.methodology-section {
    border-top-color: rgba(198, 156, 63, 0.3) !important;
}

.methodology-section .bg-light {
    background-color: rgba(198, 156, 63, 0.05) !important;
}

.methodology-section h6 {
    color: #C69C3F;
    font-weight: 600;
}

.methodology-section a {
    color: #C69C3F;
    text-decoration: none;
}

.methodology-section a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .result-value {
        font-size: 1.3rem;
    }
    
    .calculator-wrapper {
        padding: 1rem;
    }
    
    .result-card {
        min-height: 150px;
        margin-bottom: 1rem;
    }
    
    .breakdown table {
        font-size: 1rem;
    }
}

/* For very large numbers, scale down further */
@media (min-width: 769px) {
    .result-value:has-text(length > 10) {
        font-size: 1.3rem;
    }
}

/* Print styles */
@media print {
    .btn {
        display: none !important;
    }
    
    .calculator-wrapper {
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .it-cost-calculator {
        page-break-inside: avoid;
    }
    
    .cost-results {
        page-break-before: auto;
    }
}