/* Security ROI Calculator Styles - Onward Theme */

/* Base calculator styles */
.security-roi-calculator {
    background-color: transparent;
    position: relative;
}

.security-roi-calculator .container .calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #fefdfb 100%);
    border: 1px solid #e5d4a1;
    box-shadow: 0 4px 20px rgba(198, 156, 63, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect for calculator wrapper */
.security-roi-calculator .calculator-wrapper::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(198, 156, 63, 0.03) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

/* Typography - Onward theme */
.security-roi-calculator .calculator-wrapper h2 {
    color: #1f2937;
    font-weight: 600;
    position: relative;
}

.security-roi-calculator .calculator-wrapper h3 {
    color: #374151;
    font-weight: 600;
}

.security-roi-calculator .calculator-wrapper h4 {
    color: #4b5563;
}

.security-roi-calculator .calculator-wrapper .lead {
    color: #6b7280;
}

.security-roi-calculator .calculator-wrapper .text-muted {
    color: #9ca3af;
}

/* Form controls - Onward theme */
.security-roi-calculator .calculator-wrapper .form-select,
.security-roi-calculator .calculator-wrapper .form-control {
    background-color: #fffbf5;
    border: 1px solid #e5d4a1;
    color: #111827;
    transition: all 0.2s ease-in-out;
}

.security-roi-calculator .calculator-wrapper .form-select:hover,
.security-roi-calculator .calculator-wrapper .form-control:hover {
    background-color: #ffffff;
    border-color: #C69C3F;
    box-shadow: 0 0 0 2px rgba(198, 156, 63, 0.05);
}

.security-roi-calculator .calculator-wrapper .form-select:focus,
.security-roi-calculator .calculator-wrapper .form-control:focus {
    border-color: #C69C3F;
    box-shadow: 0 0 0 3px rgba(198, 156, 63, 0.15);
    background-color: #ffffff;
    color: #111827;
}

.security-roi-calculator .calculator-wrapper .form-select option {
    background-color: #fff;
    color: #111827;
}

/* Input group - Onward theme */
.security-roi-calculator .calculator-wrapper .input-group-text {
    background: linear-gradient(135deg, #fef9f0 0%, #fdf6eb 100%);
    border: 1px solid #e5d4a1;
    color: #B88A37;
    font-weight: 600;
}

/* Checkboxes */
.compliance-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.compliance-checkboxes .form-check {
    min-width: 80px;
}

/* Result cards */
.security-roi-calculator .roi-results .result-card {
    transition: transform 0.3s ease;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e5e7eb;
}

.security-roi-calculator .roi-results .result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Result card color schemes - Onward theme */
.security-roi-calculator .roi-results .result-card.bg-danger.bg-opacity-10 {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 1px solid #fecaca;
    border-top: 3px solid #dc2626;
}

.security-roi-calculator .roi-results .result-card.bg-success.bg-opacity-10 {
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fef9 100%);
    border: 1px solid #bbf7d0;
    border-top: 3px solid #16a34a;
}

.security-roi-calculator .roi-results .result-card.bg-info.bg-opacity-10 {
    background: linear-gradient(135deg, #fef9f0 0%, #fffbf5 100%);
    border: 1px solid #e5d4a1;
    border-top: 3px solid #C69C3F;
}

/* Result card text colors */
.security-roi-calculator .roi-results .result-card h4.text-danger {
    color: #dc2626;
}

.security-roi-calculator .roi-results .result-card .text-danger {
    color: #dc2626;
}

.security-roi-calculator .roi-results .result-card h4.text-success {
    color: #16a34a;
}

.security-roi-calculator .roi-results .result-card .text-success {
    color: #16a34a;
}

.security-roi-calculator .roi-results .result-card h4.text-info {
    color: #C69C3F;
}

.security-roi-calculator .roi-results .result-card .text-info {
    color: #C69C3F;
}

.result-value {
    font-size: 1.7rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.security-roi-calculator .roi-results .result-card small {
    color: #6b7280;
    font-weight: 500;
}

/* Form labels and text */
.security-roi-calculator .calculator-wrapper .form-label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.security-roi-calculator .calculator-wrapper small.text-muted {
    color: #9ca3af;
}

/* Checkbox styling - Onward theme */
.security-roi-calculator .calculator-wrapper .form-check-input {
    background-color: #fffbf5;
    border: 1px solid #e5d4a1;
    transition: all 0.2s ease-in-out;
}

.security-roi-calculator .calculator-wrapper .form-check-input:checked {
    background-color: #C69C3F;
    border-color: #B88A37;
    box-shadow: 0 0 0 2px rgba(198, 156, 63, 0.1);
}

.security-roi-calculator .calculator-wrapper .form-check-input:focus {
    border-color: #C69C3F;
    box-shadow: 0 0 0 3px rgba(198, 156, 63, 0.15);
}

.security-roi-calculator .calculator-wrapper .form-check-label {
    color: #4b5563;
}

/* Button styling - Onward gold theme */
.security-roi-calculator .calculator-wrapper .btn-primary {
    background: linear-gradient(135deg, #C69C3F 0%, #B88A37 100%);
    border: 1px solid #B88A37;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.security-roi-calculator .calculator-wrapper .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.security-roi-calculator .calculator-wrapper .btn-primary:hover {
    background: linear-gradient(135deg, #d4aa47 0%, #C69C3F 100%);
    border-color: #C69C3F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 156, 63, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.security-roi-calculator .calculator-wrapper .btn-primary:hover::before {
    left: 100%;
}

/* Breakdown table - ensure white background */
.security-roi-calculator .breakdown table.table {
    font-size: 1.1rem;
    background-color: #ffffff;
    color: #374151;
}

.security-roi-calculator .breakdown table.table tbody {
    background-color: #ffffff;
}

.security-roi-calculator .breakdown table.table tbody tr {
    background-color: transparent;
}

.security-roi-calculator .breakdown table.table tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    background-color: transparent;
    color: #374151;
}

/* Table primary row (total) */
.security-roi-calculator .breakdown table.table tbody tr.table-primary {
    background: linear-gradient(90deg, #fef9f0 0%, #fdf6eb 100%);
    border-left: 3px solid #C69C3F;
}

.security-roi-calculator .breakdown table.table tbody tr.table-primary td {
    background: transparent;
    color: #1f2937;
    font-weight: bold;
}

/* Methodology section styling */
.security-roi-calculator .methodology {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.security-roi-calculator .methodology h5 {
    color: #374151;
}

.security-roi-calculator .methodology ul {
    margin-bottom: 0;
}

.security-roi-calculator .methodology a {
    color: #0d6efd;
    text-decoration: none;
}

.security-roi-calculator .methodology a:hover {
    text-decoration: underline;
}

/* ROI Results section animation */
.roi-results {
    animation: fadeIn 0.5s ease-in;
}

.security-roi-calculator .roi-results hr {
    border-color: #e5e7eb;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Striped table rows */
.security-roi-calculator .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #fffbf5;
}

/* Alert styling */
.security-roi-calculator .alert {
    background: linear-gradient(135deg, #fef9f0 0%, #fdf6eb 100%);
    border: 1px solid #e5d4a1;
    border-left: 3px solid #C69C3F;
    color: #92400e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .result-value {
        font-size: 1.3rem;
    }
    
    .security-roi-calculator .calculator-wrapper {
        padding: 1rem;
    }
    
    .security-roi-calculator .result-card {
        min-height: 150px;
    }
}

/* Print styles */
@media print {
    .security-roi-calculator .btn {
        display: none;
    }
    
    .security-roi-calculator .calculator-wrapper {
        box-shadow: none;
    }
    
    .security-roi-calculator {
        page-break-inside: avoid;
    }
    
    .roi-results {
        page-break-before: auto;
    }
}

/* Override any dark mode styles that might leak in */
@media (prefers-color-scheme: dark) {
    .security-roi-calculator .calculator-wrapper,
    .security-roi-calculator .calculator-wrapper .bg-white,
    .security-roi-calculator .breakdown table.table,
    .security-roi-calculator .breakdown table.table tbody,
    .security-roi-calculator .breakdown table.table tbody tr,
    .security-roi-calculator .breakdown table.table tbody td {
        background-color: #ffffff;
        color: #374151;
    }
}