/* Professional Legal Calculator Styles */
.professional-calculator {
    font-family: 'Roboto', 'Helvetica', Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    color: #333;
    line-height: 1.6;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.calculator-header h2 {
    color: #1a3e6e;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: 18px;
}

.form-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
    color: #1a3e6e;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

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

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: #1a3e6e;
    outline: none;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input {
    margin-right: 8px;
}

.injury-search {
    position: relative;
    margin-bottom: 10px;
}

#injury-suggestions {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #d1d1d1;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.injury-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.injury-suggestion:hover {
    background-color: #f0f7ff;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.selected-injury {
    background: #1a3e6e;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.remove-injury {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}

.pain-slider-container {
    position: relative;
    margin-top: 15px;
}

.pain-slider-container input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
}

.pain-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a3e6e;
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.pain-value {
    position: absolute;
    top: -35px;
    left: 0;
    width: 40px;
    text-align: center;
    background: #1a3e6e;
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-weight: bold;
    transform: translateX(-50%);
}

.pain-value:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1a3e6e;
}

.disclaimer {
    background: #f8f9fa;
    border-left: 4px solid #1a3e6e;
    padding: 15px;
    margin: 20px 0;
    font-size: 14px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: #1a3e6e;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #0d2a4d;
}

.professional-results {
    display: none;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.result-value {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #1a3e6e;
    margin: 20px 0 30px;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
}

.result-breakdown {
    margin-bottom: 30px;
}

.result-breakdown h4, .result-comparison h4 {
    color: #1a3e6e;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    background: #f8f9fa;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
}

tr:last-child td {
    border-bottom: none;
}

.comparison-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.case-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.case-injury {
    font-weight: 700;
    font-size: 18px;
    color: #1a3e6e;
    margin-bottom: 10px;
}

.case-details {
    display: flex;
    justify-content: space-between;
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.case-compensation {
    font-size: 20px;
    font-weight: 700;
    color: #2e7d32;
    text-align: center;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.pdf-btn, .contact-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.pdf-btn {
    background: #1a3e6e;
    color: white;
}

.contact-btn {
    background: #2e7d32;
    color: white;
}

.pdf-btn:hover {
    background: #0d2a4d;
}

.contact-btn:hover {
    background: #1b5e20;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .pdf-btn, .contact-btn {
        width: 100%;
    }
}