/**
 * FSBO Escrow Calculator Styles
 * Professional and responsive design
 */

/* Container */
.fsbo-escrow-calculator-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.fsbo-escrow-calculator-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border: 1px solid #e5e7eb;
}

/* Title */
.fsbo-calculator-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 30px 0;
    text-align: center;
    line-height: 1.3;
}

/* Form Styles */
.fsbo-escrow-form {
    margin-bottom: 30px;
}

.fsbo-form-row {
    margin-bottom: 20px;
}

.fsbo-form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.fsbo-form-group input[type="date"],
.fsbo-form-group input[type="number"],
.fsbo-form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

.fsbo-form-group input[type="date"]:hover,
.fsbo-form-group input[type="number"]:hover,
.fsbo-form-group select:hover {
    border-color: #9ca3af;
}

/* Buttons */
.fsbo-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.fsbo-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.fsbo-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fsbo-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.fsbo-btn-primary:active {
    transform: translateY(0);
}

.fsbo-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 2px solid #d1d5db;
}

.fsbo-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Results Section */
.fsbo-results {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 2px solid #bae6fd;
    animation: fadeIn 0.5s ease-in;
}

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

.fsbo-results-title {
    font-size: 22px;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0 0 25px 0;
    text-align: center;
}

.fsbo-results-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.fsbo-result-primary {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.fsbo-result-value {
    font-size: 32px;
    font-weight: 700;
    color: #0c4a6e;
    line-height: 1.2;
}

/* Timeline */
.fsbo-timeline {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fsbo-timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.fsbo-timeline-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.fsbo-timeline-item:last-child {
    border-bottom: none;
    padding-top: 18px;
    margin-top: 8px;
    border-top: 2px solid #3b82f6;
}

.fsbo-timeline-label {
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
}

.fsbo-timeline-value {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.fsbo-timeline-item:last-child .fsbo-timeline-label,
.fsbo-timeline-item:last-child .fsbo-timeline-value {
    color: #3b82f6;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fsbo-escrow-calculator-container {
        padding: 25px 20px;
    }
    
    .fsbo-calculator-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .fsbo-form-row-two {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fsbo-form-actions {
        flex-direction: column;
    }
    
    .fsbo-btn {
        width: 100%;
        min-width: unset;
    }
    
    .fsbo-results {
        padding: 20px;
    }
    
    .fsbo-result-value {
        font-size: 26px;
    }
    
    .fsbo-timeline {
        padding: 20px;
    }
    
    .fsbo-timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .fsbo-escrow-calculator-wrapper {
        padding: 0 15px;
    }
    
    .fsbo-calculator-title {
        font-size: 20px;
    }
    
    .fsbo-form-group label {
        font-size: 13px;
    }
    
    .fsbo-form-group input[type="date"],
    .fsbo-form-group input[type="number"],
    .fsbo-form-group select {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .fsbo-btn {
        font-size: 15px;
        padding: 12px 24px;
    }
    
    .fsbo-result-value {
        font-size: 22px;
    }
}

/* Print Styles */
@media print {
    .fsbo-escrow-form,
    .fsbo-form-actions {
        display: none;
    }
    
    .fsbo-escrow-calculator-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .fsbo-results {
        display: block !important;
    }
}
