/**
 * Modern Calculator Form Styling - COMPACT VERSION
 */

#mpd-tax-plugin .mpd-tax-estimation-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#mpd-tax-plugin .mpd-tax-estimation-form-wrapper h3 {
    font-size: 22px;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 600;
}

#mpd-tax-plugin .mpd-tax-subtitle {
    color: #7f8c8d;
    font-size: 12px;
    margin: 0 0 20px 0;
}

/* Form Section - More compact */
#mpd-tax-plugin .mpd-tax-form-section {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#mpd-tax-plugin .mpd-tax-form-section h4 {
    font-size: 18px;
    color: #34495e;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    font-weight: 600;
    width: 100%;
}
#mpd-tax-plugin .mpd-tax-form-row{
    width: calc(50% - 10px);
    gap: 5px;
    margin-bottom: 20px;
}
/* Form Row - 2 columns on desktop, more compact */
#mpd-tax-plugin .mpd-tax-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 768px) {
    #mpd-tax-plugin .mpd-tax-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

#mpd-tax-plugin .mpd-tax-form-row {
    margin-bottom: 14px;
}

#mpd-tax-plugin .mpd-tax-form-row label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 16px;
}

#mpd-tax-plugin .mpd-tax-form-row input[type="date"],
#mpd-tax-plugin .mpd-tax-form-row input[type="number"],
#mpd-tax-plugin .mpd-tax-form-row select {
    width: 100%;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    height: 36px;
    transition: all 0.2s ease;
    background: white;
}

#mpd-tax-plugin .mpd-tax-form-row input:focus,
#mpd-tax-plugin .mpd-tax-form-row select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#mpd-tax-plugin .mpd-tax-form-row small {
    display: block;
    margin-top: 4px;
    color: #7f8c8d;
    font-size: 11px;
}

/* Form Actions - More compact */
#mpd-tax-plugin .mpd-tax-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

#mpd-tax-plugin .mpd-tax-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
}
#mpd-tax-plugin .mpd-tax-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#mpd-tax-plugin .mpd-tax-btn-secondary {
    background: #ecf0f1;
    color: #34495e;
    padding: 8px 16px;
}

#mpd-tax-plugin .mpd-tax-btn-secondary:hover {
    background: #bdc3c7;
}

#mpd-tax-plugin .mpd-tax-btn-success {
    background: #27ae60;
    color: white;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

#mpd-tax-plugin .mpd-tax-btn-success:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(39, 174, 96, 0.4);
}

/* Spinner - Smaller */
#mpd-tax-plugin .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Section - More compact */
#mpd-tax-plugin #mpd-tax-results {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    border: 2px solid #27ae60;
}

#mpd-tax-plugin .mpd-tax-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

#mpd-tax-plugin .mpd-tax-results-header h4 {
    font-size: 16px;
    color: #27ae60;
    margin: 0;
    font-weight: 600;
}

/* Result Cards - More compact */
#mpd-tax-plugin .mpd-tax-result-section {
    background: white;
    padding: 14px;
    border-radius: 4px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

#mpd-tax-plugin .mpd-tax-result-section h5 {
    font-size: 14px;
    color: #34495e;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecf0f1;
    font-weight: 600;
}

#mpd-tax-plugin .mpd-tax-result-table {
    width: 100%;
    border-collapse: collapse;
}

#mpd-tax-plugin .mpd-tax-result-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 13px;
}

#mpd-tax-plugin .mpd-tax-result-table td:first-child {
    color: #000;
    font-weight: 500;
}

#mpd-tax-plugin .mpd-tax-result-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #2c3e50;
}

#mpd-tax-plugin .mpd-tax-result-table .total-row td {
    border-top: 2px solid #3498db;
    padding-top: 12px;
    font-size: 14px;
}

#mpd-tax-plugin .mpd-tax-result-table .refund-row {
    background: #27ae60;
}

#mpd-tax-plugin .mpd-tax-result-table .refund-row td {
    color: white;
    font-size: 16px;
    padding: 12px 10px;
    border: none;
}

#mpd-tax-plugin .refund-amount {
    font-size: 18px !important;
    font-weight: bold !important;
}
#mpd-tax-plugin .mpd-tax-result-item{
    background: #ccc;
    padding: 3px 10px;
}
#mpd-tax-plugin .mpd-tax-result-item *{
    font-size: 16px;
}
/* Success Message - More compact */
#mpd-tax-plugin #mpd-save-success-msg {
    background: #27ae60;
    color: white;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    border-radius: 4px;
    font-weight: 500;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
    animation: slideIn 0.3s ease;
}
#mpd-tax-plugin .mpd-cases-table .mpd-btn-sm{
    padding: 0 10px;
    font-size: 14px;
    font-weight: 400;
    height: 28px;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive - Even more compact */
@media (max-width: 768px) {
    #mpd-tax-plugin .mpd-tax-estimation-form-wrapper {
        padding: 16px;
    }
    
    #mpd-tax-plugin .mpd-tax-form-section {
        padding: 14px;
    }
    
    #mpd-tax-plugin .mpd-tax-form-actions {
        flex-direction: column;
    }
    
    #mpd-tax-plugin .mpd-tax-btn {
        width: 100%;
    }
    
    #mpd-tax-plugin .mpd-tax-results-header {
        flex-direction: column;
        align-items: stretch;
    }
}
