/* ============================================
   OVERTIME PAY USA - Component Styles
   Centralized CSS for all calculator components
   ============================================ */

/* -------- STATE AUTO DETECTION -------- */
.state-detection-banner {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.state-detection-banner h3 {
    margin: 0;
    color: #155ba8;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.state-detection-banner .buttons {
    display: flex;
    gap: 12px;
}

.state-detection-banner button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.state-detection-banner .btn-accept {
    background: #28a745;
    color: white;
}

.state-detection-banner .btn-accept:hover {
    background: #218838;
}

.state-detection-banner .btn-change {
    background: white;
    color: #155eef;
    border: 1px solid #155eef;
}

.state-detection-banner .btn-change:hover {
    background: #f0f8ff;
}

@media (max-width: 768px) {
    .state-detection-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .state-detection-banner .buttons {
        justify-content: stretch;
    }

    .state-detection-banner button {
        flex: 1;
    }
}

/* -------- ENHANCED CALCULATOR FORM -------- */
.enhanced-form {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    margin-bottom: 24px;
}

.enhanced-form h2 {
    margin: 0 0 24px 0;
    color: #333;
    font-size: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #155eef;
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.1);
}

.slider-container {
    margin-top: 8px;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #e6f2ff, #155eef);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #155eef;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    width: 32px;
    height: 32px;
    box-shadow: 0 4px 12px rgba(21, 94, 239, 0.4);
}

.slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #155eef;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.slider::-moz-range-thumb:hover {
    width: 32px;
    height: 32px;
    box-shadow: 0 4px 12px rgba(21, 94, 239, 0.4);
}

.form-divider {
    margin: 24px 0;
    padding: 24px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.form-divider h3 {
    margin: -24px 0 16px 0;
    padding: 0 8px;
    background: white;
    color: #155eef;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.toggle-group {
    display: flex;
    gap: 12px;
}

.toggle-button {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.toggle-button.active {
    border-color: #155eef;
    background: #f0f8ff;
    color: #155eef;
}

.btn-calculate {
    width: 100%;
    padding: 14px;
    background: #155eef;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-calculate:hover {
    background: #0d3aa8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 94, 239, 0.3);
}

/* -------- RESULT DISPLAY (HERO CARD) -------- */
.hero-result {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.hero-result .amount {
    margin-bottom: 40px;
}

.hero-result .label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-result .gross {
    font-size: 72px;
    font-weight: 800;
    margin: 20px 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
    line-height: 1;
}

.hero-result .period {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
}

.hero-result .breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-result .breakdown-item {
    background: rgba(255,255,255,0.15);
    padding: 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-result .breakdown-item .type {
    display: block;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-result .breakdown-item .value {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .hero-result {
        padding: 40px 24px;
    }

    .hero-result .gross {
        font-size: 48px;
    }

    .hero-result .breakdown {
        grid-template-columns: 1fr;
    }
}

/* -------- RESULTS BREAKDOWN TABLE -------- */
.results-breakdown {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
}

.breakdown-section {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.breakdown-section:last-child {
    border-bottom: none;
}

.breakdown-section h3 {
    margin: 0 0 16px 0;
    color: #155eef;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-item-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 12px 0;
    align-items: center;
}

.breakdown-item-row label {
    color: #666;
    font-size: 14px;
}

.breakdown-item-row .value {
    font-weight: 600;
    color: #155eef;
    font-size: 16px;
}

.breakdown-total {
    background: #f0f8ff;
    padding: 16px 20px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    margin-top: 12px;
}

.breakdown-total label {
    font-weight: 700;
    color: #155eef;
}

.breakdown-total .value {
    font-size: 20px;
    font-weight: 700;
    color: #155eef;
}

.tax-section {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.tax-section h3 {
    color: #e65100;
}

.take-home {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
}

.take-home h3 {
    color: #155ba8;
}

.take-home .value {
    color: #28a745;
}

/* -------- CALCULATION BREAKDOWN -------- */
.calculation-breakdown {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    margin: 24px 0;
}

.calculation-breakdown h3 {
    margin: 0 0 20px 0;
    color: #155eef;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.calculation-breakdown h3::before {
    content: "🧮";
    font-size: 20px;
}

.breakdown-top-border {
    height: 4px;
    background: linear-gradient(to right, #155eef, #4CAF50);
    margin-bottom: 16px;
    border-radius: 2px;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.breakdown-step {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid #155eef;
}

.breakdown-step h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.breakdown-step p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* -------- WHY EXPLANATION -------- */
.why-explanation {
    background: linear-gradient(135deg, #f5f7fa 0%, #f9fafb 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    margin: 24px 0;
}

.why-explanation h3 {
    margin: 0 0 16px 0;
    color: #155eef;
    font-size: 16px;
    font-weight: 600;
}

.why-explanation p {
    margin: 12px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.why-explanation strong {
    color: #155eef;
    font-weight: 600;
}

/* -------- AI EXPLANATION -------- */
.ai-explanation-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    margin: 24px 0;
}

.ai-explanation-button {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.ai-explanation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-explanation-panel {
    background: linear-gradient(135deg, #f5f7ff 0%, #faf9ff 100%);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e6e8ff;
    animation: slideDown 0.3s ease-out;
}

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

.ai-explanation-panel h4 {
    margin: 0 0 12px 0;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-explanation-panel p {
    margin: 12px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.ai-explanation-panel ul {
    margin: 12px 0;
    padding-left: 20px;
}

.ai-explanation-panel li {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.ai-explanation-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.ai-explanation-actions button {
    flex: 1;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s;
}

.ai-explanation-actions button:hover {
    background: #f0f8ff;
    border-color: #155eef;
    color: #155eef;
}

/* -------- WHAT IF SIMULATOR -------- */
.what-if-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid #e8e8e8;
}

.what-if-section h3 {
    margin: 0 0 20px 0;
    color: #155eef;
    font-weight: 700;
    display: flex;
    gap: 8px;
    align-items: center;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.scenario-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #f5f9ff 100%);
    border: 1px solid #e6f2ff;
    border-radius: 8px;
    padding: 16px;
}

.scenario-title {
    font-size: 13px;
    font-weight: 600;
    color: #155eef;
    margin-bottom: 12px;
}

.scenario-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #e6f2ff, #155eef);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.scenario-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #155eef;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.scenario-slider::-webkit-slider-thumb:hover {
    width: 28px;
    height: 28px;
    box-shadow: 0 3px 10px rgba(21, 94, 239, 0.4);
}

.scenario-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #155eef;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.scenario-slider::-moz-range-thumb:hover {
    width: 28px;
    height: 28px;
    box-shadow: 0 3px 10px rgba(21, 94, 239, 0.4);
}

.scenario-comparison {
    background: linear-gradient(135deg, #f0f8f4 0%, #f5fdf9 100%);
    border: 2px solid #28a745;
    padding: 20px;
    border-radius: 8px;
    margin-top: 24px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.comparison-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.comparison-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.comparison-value {
    font-size: 16px;
    font-weight: 700;
    color: #155eef;
}

.btn-apply-scenario {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-apply-scenario:hover {
    background: #218838;
}

/* -------- WAGE THEFT CALCULATOR -------- */
.wage-theft-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.wage-theft-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #ff9800;
    padding-bottom: 16px;
}

.wage-theft-header h3 {
    margin: 0;
    color: #f44336;
    display: flex;
    gap: 10px;
    align-items: center;
}

.wage-theft-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wage-theft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.wage-theft-results {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.results-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.result-box {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.result-box.total-owed {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe8b6 100%);
    border: 2px solid #ff9800;
}

.result-box.penalty-box {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #f44336;
}

.result-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.result-value {
    font-size: 22px;
    font-weight: 700;
    color: #f44336;
    margin-bottom: 6px;
}

.result-box small {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.legal-box {
    background: #fff3e0;
    border: 1px solid #ff9800;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 12px;
}

.warning-box {
    background: #fff3e0;
    border: 1px solid #ff9800;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #555;
}

/* -------- REVERSE CALCULATOR -------- */
.reverse-calc-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid #e8e8e8;
}

.reverse-form {
    background: linear-gradient(135deg, #f0f8ff 0%, #f5f9ff 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.reverse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.reverse-results {
    background: linear-gradient(135deg, #f0f8ff 0%, #f5f9ff 100%);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e6f2ff;
}

.results-header {
    border-bottom: 2px solid #155eef;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.result-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.verification-box {
    background: white;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.btn-use-result {
    width: 100%;
    padding: 10px;
    background: #155eef;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

/* -------- AUTHORITY SECTION -------- */
.authority-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    margin: 24px 0;
}

.authority-section h3 {
    margin: 0 0 20px 0;
    color: #155eef;
    font-size: 16px;
    font-weight: 600;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.authority-card {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.authority-card-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.authority-card-value {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.editorial-policy {
    background: #f0f8ff;
    border: 1px solid #e6f2ff;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.editorial-policy summary {
    cursor: pointer;
    font-weight: 600;
    color: #155eef;
    font-size: 14px;
}

.editorial-policy p {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* -------- CALCULATION HISTORY -------- */
.calculation-history {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    margin: 24px 0;
}

.calculation-history h3 {
    margin: 0 0 16px 0;
    color: #155eef;
    font-size: 16px;
    font-weight: 600;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #155eef;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: #f0f8ff;
    transform: translateX(4px);
}

.history-item-date {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
}

.history-item-amount {
    font-weight: 700;
    color: #155eef;
    font-size: 14px;
}

.history-item-details {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.btn-clear-history {
    width: 100%;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    margin-top: 12px;
    transition: all 0.2s;
}

.btn-clear-history:hover {
    background: #f0f0f0;
}

/* -------- RELATED CALCULATORS -------- */
.related-calculators {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    margin: 24px 0;
}

.related-calculators h3 {
    margin: 0 0 20px 0;
    color: #155eef;
    font-size: 16px;
    font-weight: 600;
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.calculator-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #155eef;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.calculator-card:hover::before {
    transform: scaleX(1);
}

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

.calculator-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.calculator-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.calculator-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.calculator-arrow {
    color: #155eef;
    font-size: 16px;
}

/* -------- CALCULATION ID SYSTEM -------- */
.calculation-id-box {
    background: linear-gradient(135deg, #f0f8ff 0%, #f5f9ff 100%);
    border: 2px solid #155eef;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.calculation-id-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.calculation-id-value {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #155eef;
    margin-bottom: 12px;
    word-break: break-all;
}

.calculation-id-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #155eef;
    color: white;
    border-color: #155eef;
}

/* -------- TRUST SIGNALS -------- */
.trust-signals {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    margin: 24px 0;
}

.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.signal-item {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #155eef;
}

.signal-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.signal-value {
    font-weight: 600;
    color: #333;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-divider {
        margin: 20px 0;
        padding: 20px 0;
    }

    .toggle-group {
        flex-direction: column;
    }

    .scenario-grid {
        grid-template-columns: 1fr;
    }

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

    .results-boxes {
        grid-template-columns: 1fr;
    }

    .authority-grid {
        grid-template-columns: 1fr;
    }

    .calculators-grid {
        grid-template-columns: 1fr;
    }
}
