/* Rafter Calculator Specific Styles */

/* Input Unit Group styles */
.input-unit-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-unit-group .form-input {
    flex: 1;
}

/* Form hint text */
.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #666;
}

/* Results section title */
.results-section-title {
    color: #003049;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Results value styling */
.results-value {
    font-weight: 600;
    color: #003049;
}

/* Pitch type selector full width */
#pitchType {
    width: 100%;
}

/* Unit label (static text like "/ 12" or "degrees") */
.unit-label {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    min-width: 60px;
    justify-content: center;
}

/* Results total section styling */
.results-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #bae6fd;
}

.total-material {
    font-size: 18px;
    font-weight: 700;
    color: #003049;
}

/* Additional info styling */
.results-section .form-hint {
    color: #666;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .input-unit-group {
        flex-direction: row;
        gap: 8px;
    }

    .faq-section {
        padding: 16px;
        margin-top: 24px;
    }

    .faq-section h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .unit-label {
        min-width: 50px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* Ensure results grid items don't overflow */
.results-item {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Pitch group transitions */
#pitchRatioGroup,
#pitchDegreesGroup {
    transition: opacity 0.2s ease;
}

#pitchRatioGroup.hidden,
#pitchDegreesGroup.hidden {
    display: none;
}
