/**
 * FSBO Lawyer Cost Estimator Styles
 */

.fsbo-lce-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.fsbo-lce-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 20px;
}

.fsbo-lce-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
}

.fsbo-lce-description {
    margin: 0;
    font-size: 16px;
    color: #5a6c7d;
    line-height: 1.5;
}

.fsbo-lce-form {
    margin-bottom: 30px;
}

.fsbo-lce-form-group {
    margin-bottom: 25px;
}

.fsbo-lce-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.fsbo-lce-form-group input[type="number"],
.fsbo-lce-form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    color: #2c3e50;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.fsbo-lce-form-group input[type="number"]:focus,
.fsbo-lce-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fsbo-lce-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fsbo-lce-checkbox {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-weight: 400;
    color: #374151;
}

.fsbo-lce-checkbox:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.fsbo-lce-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.fsbo-lce-submit-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2c3e50;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.fsbo-lce-submit-btn:hover {
    background-color: #1a252f;
}

.fsbo-lce-submit-btn:active {
    transform: scale(0.98);
}

.fsbo-lce-submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.fsbo-lce-results {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.fsbo-lce-results-header h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.fsbo-lce-cost-breakdown {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.fsbo-lce-cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.fsbo-lce-cost-item:last-child {
    border-bottom: none;
}

.fsbo-lce-cost-label {
    font-size: 15px;
    color: #4b5563;
    font-weight: 500;
}

.fsbo-lce-cost-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.fsbo-lce-cost-total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #2c3e50;
}

.fsbo-lce-cost-total .fsbo-lce-cost-label {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
}

.fsbo-lce-cost-total .fsbo-lce-cost-value {
    font-size: 20px;
    color: #2c3e50;
}

.fsbo-lce-disclaimer {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
}

.fsbo-lce-disclaimer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #856404;
}

.fsbo-lce-disclaimer strong {
    font-weight: 600;
}

.fsbo-lce-error {
    margin-top: 20px;
    padding: 15px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    font-size: 14px;
}

/* Loading state */
.fsbo-lce-loading .fsbo-lce-submit-btn {
    position: relative;
    color: transparent;
}

.fsbo-lce-loading .fsbo-lce-submit-btn::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: fsbo-lce-spinner 0.6s linear infinite;
}

@keyframes fsbo-lce-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .fsbo-lce-container {
        padding: 20px;
    }
    
    .fsbo-lce-header h2 {
        font-size: 24px;
    }
    
    .fsbo-lce-description {
        font-size: 14px;
    }
}

/* Flat Fee Styles */
.fsbo-lce-flat-fee-description {
    padding: 20px;
    background: #f0f9ff;
    border-left: 4px solid #2c3e50;
    border-radius: 6px;
    margin-bottom: 20px;
}

.fsbo-lce-flat-fee-description p {
    margin: 0 0 15px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.fsbo-lce-flat-fee-description ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.fsbo-lce-flat-fee-description li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.fsbo-lce-flat-fee-description li:last-child {
    margin-bottom: 0;
}

/* Service List Styles */
.fsbo-lce-service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fsbo-lce-service-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fsbo-lce-service-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.fsbo-lce-service-item input[type="checkbox"] {
    display: none;
}

.fsbo-lce-service-item input[type="checkbox"]:checked + .fsbo-lce-service-details {
    color: #2c3e50;
}

.fsbo-lce-service-item input[type="checkbox"]:checked ~ .fsbo-lce-service-details .fsbo-lce-service-name {
    font-weight: 700;
}

.fsbo-lce-service-item input[type="checkbox"]:checked ~ * {
    opacity: 1;
}

.fsbo-lce-service-item:has(input[type="checkbox"]:checked) {
    background: #e0f2fe;
    border-color: #2c3e50;
    border-width: 2px;
}

.fsbo-lce-service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.fsbo-lce-service-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.fsbo-lce-service-price {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
}

.fsbo-lce-service-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Selected Services List in Results */
#selected-services-list {
    margin-bottom: 15px;
}

#selected-services-list .fsbo-lce-cost-item {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

#selected-services-list .fsbo-lce-cost-item:last-child {
    border-bottom: none;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d1d5db;
}
