/* Concrete Block Calculator - Calculator-specific styles */

/* Form layout */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    position: relative;
    margin-bottom: 8px;
}

.measurement-system {
    margin-bottom: 0;
}

/* Radio button styling */
.radio-group {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #333;
    padding: 8px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.radio-label:hover {
    background-color: rgba(0, 48, 73, 0.05);
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

input[type="radio"]:checked {
    border-color: #003049;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #003049;
    border-radius: 50%;
}

/* Checkbox styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    border-color: #003049;
    background-color: #003049;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Dimension groups */
.dimension-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}

.dimension-group input {
    margin-bottom: 0;
}

/* Custom dimensions section */
.custom-dimensions {
    display: none;
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 4px;
    margin: 16px 0;
    background-color: #f8f9fa;
}

.custom-dimensions label {
    margin-top: 8px;
}

.custom-dimensions input {
    margin-bottom: 12px;
}

.custom-dimensions .input-group:last-child {
    margin-bottom: 0;
}

/* Result rows specific to this calculator */
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 4px 0;
}

.result-row:last-child {
    margin-bottom: 0;
}

.result-label {
    color: #003049;
    font-size: 16px;
}

.result-value {
    font-weight: 600;
    color: #003049;
    font-size: 16px;
}

.total-cost {
    border-top: 1px solid #bae6fd;
    margin-top: 12px;
    padding-top: 12px;
}

.disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .dimension-group {
        gap: 12px;
    }
}
