/**
 * FSBO TC Cost Estimator Styles
 * Version: 1.0.0
 * Professional, clean design without icons or symbols
 */

/* Container */
.fsbo-tc-estimator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.fsbo-tc-estimator {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Title */
.fsbo-tc-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 30px 0;
    text-align: center;
    line-height: 1.3;
}

/* Form */
.fsbo-tc-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Form Fields */
.fsbo-tc-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fsbo-tc-label {
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
    margin: 0;
}

.fsbo-tc-required {
    color: #e74c3c;
    font-weight: 700;
}

/* Input Wrapper for Currency Symbol */
.fsbo-tc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fsbo-tc-currency-symbol {
    position: absolute;
    left: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
    pointer-events: none;
}

/* Text Input */
.fsbo-tc-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #dce1e6;
    border-radius: 6px;
    background: #ffffff;
    color: #2c3e50;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.fsbo-tc-price-input {
    padding-left: 35px;
}

.fsbo-tc-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.fsbo-tc-input::placeholder {
    color: #95a5a6;
}

/* Select Dropdown */
.fsbo-tc-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #dce1e6;
    border-radius: 6px;
    background: #ffffff;
    color: #2c3e50;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%237f8c8d" d="M6 8L0 0h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.fsbo-tc-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Radio Group */
.fsbo-tc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fsbo-tc-radio-label {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #dce1e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.fsbo-tc-radio-label:hover {
    border-color: #3498db;
    background: #f8fbfd;
}

.fsbo-tc-radio {
    margin: 4px 12px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.fsbo-tc-radio:checked + .fsbo-tc-radio-text {
    color: #2c3e50;
}

.fsbo-tc-radio-label:has(.fsbo-tc-radio:checked) {
    border-color: #3498db;
    background: #ebf5fb;
}

.fsbo-tc-radio-text {
    font-size: 15px;
    color: #5d6d7e;
    line-height: 1.5;
}

.fsbo-tc-radio-text strong {
    color: #34495e;
    font-weight: 600;
}

/* Submit Button */
.fsbo-tc-submit-wrapper {
    margin-top: 10px;
}

.fsbo-tc-button {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: #3498db;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.fsbo-tc-button:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.fsbo-tc-button:active {
    transform: translateY(0);
}

.fsbo-tc-button-secondary {
    background: #95a5a6;
    box-shadow: 0 2px 4px rgba(149, 165, 166, 0.2);
}

.fsbo-tc-button-secondary:hover {
    background: #7f8c8d;
    box-shadow: 0 4px 8px rgba(149, 165, 166, 0.3);
}

/* Results Section */
.fsbo-tc-results {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.fsbo-tc-results-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 25px 0;
    text-align: center;
}

/* Total Cost Display */
.fsbo-tc-total-cost {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.fsbo-tc-total-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 10px;
    opacity: 0.95;
}

.fsbo-tc-total-amount {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

/* Breakdown Section */
.fsbo-tc-breakdown {
    margin-bottom: 30px;
}

.fsbo-tc-breakdown-title {
    font-size: 18px;
    font-weight: 600;
    color: #34495e;
    margin: 0 0 15px 0;
}

.fsbo-tc-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
}

.fsbo-tc-breakdown-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.fsbo-tc-breakdown-table tr:last-child {
    border-bottom: none;
}

.fsbo-tc-breakdown-table td {
    padding: 12px 15px;
    font-size: 15px;
}

.fsbo-tc-breakdown-table td:first-child {
    color: #5d6d7e;
    font-weight: 500;
}

.fsbo-tc-breakdown-table td:last-child {
    text-align: right;
    color: #2c3e50;
    font-weight: 600;
}

.fsbo-tc-breakdown-table tr.fsbo-tc-total-row {
    background: #ecf0f1;
    font-weight: 700;
}

.fsbo-tc-breakdown-table tr.fsbo-tc-total-row td {
    color: #2c3e50;
    font-size: 16px;
    padding: 15px;
}

/* Info Section */
.fsbo-tc-info {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fbfd;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.fsbo-tc-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
    margin: 0 0 10px 0;
}

.fsbo-tc-info-text {
    font-size: 14px;
    color: #5d6d7e;
    line-height: 1.6;
    margin: 0;
}

/* Disclaimer */
.fsbo-tc-disclaimer {
    margin-bottom: 25px;
    padding: 15px;
    background: #fef9e7;
    border-left: 4px solid #f39c12;
    border-radius: 4px;
}

.fsbo-tc-disclaimer-text {
    font-size: 13px;
    color: #7d6608;
    line-height: 1.6;
    margin: 0;
}

/* Recalculate Button */
.fsbo-tc-recalculate-wrapper {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fsbo-tc-estimator {
        padding: 25px 20px;
    }
    
    .fsbo-tc-title {
        font-size: 24px;
    }
    
    .fsbo-tc-total-amount {
        font-size: 36px;
    }
    
    .fsbo-tc-button {
        font-size: 16px;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .fsbo-tc-estimator-container {
        padding: 10px;
    }
    
    .fsbo-tc-estimator {
        padding: 20px 15px;
    }
    
    .fsbo-tc-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .fsbo-tc-form {
        gap: 20px;
    }
    
    .fsbo-tc-total-amount {
        font-size: 32px;
    }
    
    .fsbo-tc-breakdown-table td {
        padding: 10px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .fsbo-tc-form,
    .fsbo-tc-recalculate-wrapper {
        display: none;
    }
    
    .fsbo-tc-results {
        display: block !important;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    
    .fsbo-tc-estimator {
        box-shadow: none;
        border: 1px solid #000;
    }
}
