/* Modern Lot Calculator Styles */

/* Reset and Base */
* {
    box-sizing: border-box;
}

/* Main Container */
.main-content {
    min-height: auto !important;
    background: #f8fafc !important;
    padding: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* Calculator Section */
.calculator-section {
    background: white !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    padding: 0.4rem !important;
    margin: -2rem 0 0 0 !important;
}

/* Header */
.calculator-header {
    text-align: center;
    margin-bottom: 0.3rem;
}

.calculator-header h1 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Calculator Tool */
.calculator-tool {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Input Section */
.input-section h2 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.2rem;
    font-family: 'Inter', sans-serif;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    font-family: 'Inter', sans-serif;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #f9fafb;
    color: #374151;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control:hover {
    border-color: #9ca3af;
}

/* Calculate Button Container */
.calculate-button-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    letter-spacing: normal;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

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

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

/* Results Section */
.results-section {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.result-display {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-display span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

/* FAQ Section */
.faq-section {
    margin-top: 0.5rem;
    padding: 2rem 0;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--primary-color);
    color: white;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .results-grid {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .result-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
        padding: 0.5rem;
    }
    
    .result-item label {
        font-size: 0.7rem;
        color: #6b7280;
    }
    
    .result-item span {
        font-size: 1rem;
    }
    
    .faq-header h2 {
        font-size: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-question,
    .faq-answer {
        padding: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}

@media (min-width: 1024px) {
    .calculator-tool {
        flex-direction: row;
        gap: 2rem;
    }
    
    .input-section {
        flex: 1;
    }
    
    .results-section {
        flex: 1;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .results-grid {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .result-item {
        flex-direction: row;
        text-align: left;
        padding: 0.75rem;
    }
    
    .result-item label {
        font-size: 0.8rem;
        color: #374151;
    }
    
    .result-item span {
        font-size: 0.9rem;
    }
}

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

.calculator-section {
    animation: fadeIn 0.5s ease-out;
}

/* Loading state */
.calculator-section.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success state */
.result-item.updated {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.result-item.updated span {
    color: #166534;
}