/* Divorce Cost Estimator Styles */

.divorce-cost-estimator-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.divorce-cost-estimator-form {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.estimator-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

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

.estimator-results {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* Align main options (county, resolution, complexity) */
.align-options .form-group {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.align-options select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    height: 44px; /* Consistent height */
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    height: 44px;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}


.experts-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

.expert-toggle {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.expert-toggle label {
    margin-bottom: 0;
    flex: 1;
}

.toggle-container {
    display: flex;
    align-items: center;
}

.toggle-label {
    margin-left: 8px;
    min-width: 30px;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2271b1;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2271b1;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Disabled toggle styling */
.slider.disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

input:disabled + .slider.disabled {
    background-color: #4CAF50;
}

input:disabled + .slider.disabled:before {
    transform: translateX(24px);
}

/* Results Section Styles */
.results-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.result-item {
    margin-bottom: 15px;
}

.result-item h4 {
    margin-bottom: 5px;
    color: #333;
}

.result-item p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.time-range p, .cost-range p {
    color: #2271b1;
}

.additional-info p {
    color: #555;
    font-size: 14px;
    font-weight: normal;
}

.expert-costs {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.expert-cost p {
    font-size: 14px;
    color: #555;
}

/* Contact section styling */
.contact-section {
    margin-top: 30px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.contact-section h3 {
    color: #333;
    margin-top: 0;
}

.contact-section .form-group {
    margin-bottom: 15px;
}

.contact-section input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    background-color: #2271b1;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #135e96;
}

#saveResult {
    margin-top: 15px;
}

.save-success {
    color: #4caf50;
    font-weight: 600;
}

.save-error {
    color: #f44336;
    font-weight: 600;
}

.disclaimer {
    margin-top: 20px;
    padding: 15px;
    background-color: #f2f2f2;
    border-radius: 4px;
}

.disclaimer p {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Note styling */
.note {
    background-color: #f8f9fa;
    padding: 10px;
    border-left: 3px solid #2271b1;
    margin: 10px 0;
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .divorce-cost-estimator-container {
        padding: 15px;
    }
    
    .main-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .expert-toggle {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .expert-toggle .toggle-container {
        margin-top: 8px;
    }
    
    .contact-section .form-group {
        margin-bottom: 15px;
    }
    
    .results-section h3,
    .contact-section h3 {
        font-size: 18px;
    }
    
    .result-item p {
        font-size: 16px;
    }
    
    /* Improve touch targets on mobile */
    .form-group select,
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    button {
        min-height: 44px;
        padding: 10px;
    }
}
