/**
 * Square Foot Calculator - Styles
 * Based on B2Sign.com design
 */

#sqft-calculator {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#sqft-calculator * {
    box-sizing: border-box;
}

.sqft-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.sqft-attributes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sqft-attribute {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sqft-attribute label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin: 0;
}

.sqft-size-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.sqft-dimension-group {
    flex: 1;
}

.sqft-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sqft-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sqft-input-label {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.sqft-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    transition: border-color 0.2s;
}

.sqft-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.sqft-unit {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.sqft-area-display {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

.sqft-area-display strong {
    font-weight: 600;
}

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

.sqft-job-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.sqft-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sqft-qty-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.sqft-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d0d0d0;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #555;
}

.sqft-qty-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

.sqft-qty-btn:active {
    background: #e0e0e0;
}

.sqft-price-display {
    font-size: 20px;
    font-weight: 600;
    color: #2196F3;
}

.sqft-total-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.sqft-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.sqft-total-row.main {
    border-top: 2px solid #e0e0e0;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 600;
}

.sqft-base-price-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sqft-size-wrapper {
        flex-direction: column;
    }
    
    .sqft-job-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sqft-input {
        width: 70px;
    }
}

/* Hidden fields */
.sqft-hidden {
    display: none;
}

/* Error state */
.sqft-input.error {
    border-color: #f44336;
}

.sqft-error-message {
    color: #f44336;
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    padding: 10px;
    background: #ffebee;
    border-left: 3px solid #f44336;
    border-radius: 4px;
}
