/* Main Container */
#concrete-calculator-app {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
}

.calc-header h1 {
    font-size: 2.2em !important;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 800;
    color: #171D2B;
}

/* --- Progress Indicators (The Squares) --- */
.progress-indicator-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.step-indicator {
    width: 40px;
    height: 40px;
    background-color: #C1BEBE; /* Gray default */
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    cursor: default;
    transition: background-color 0.3s ease;
}

/* Active or Completed Steps become Red */
.step-indicator.active,
.step-indicator.completed {
    background-color: #E21E26; /* Red color matching your image */
}

/* --- Step Visibility --- */
.calculator-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.calculator-step.active-step {
    display: block;
}

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

/* --- Questions & Typography --- */
.calc-question {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

/* --- Radio Button Styling (The List) --- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1em;
    color: #555;
    padding: 0px 10px;
    transition: color 0.2s;
}

/* Hide the actual default radio circle */
.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 50%;
    margin-right: 15px;
    display: grid;
    place-content: center;
    flex-shrink: 0;
}

/* The dot inside the radio button when checked */
.radio-option input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #555; /* Gray dot */
}

.radio-option input[type="radio"]:checked::before {
    transform: scale(1);
    box-shadow: inset 1em 1em #E21E26; /* Red dot when selected */
}

.radio-option input[type="radio"]:checked {
    border-color: #d32f2f;
}

/* Text style when selected */
.radio-option:has(input:checked) {
    color: #000;
    font-weight: bold;
}

/* --- Inputs --- */
.input-fields-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.input-field {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-field label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #444;
}

/* Base style for the new dimension inputs */
.dimension-input {
    width: 100px !important; /* Fixed width for the inputs */
    padding: 10px;
    font-size: 1.1em !important;
    border: 2px solid #ddd;
    text-align: center;
}

/* Hide the up/down arrows (spinners) for number inputs */
/* Chrome, Safari, Edge, Opera */
.dimension-input::-webkit-outer-spin-button,
.dimension-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
.dimension-input[type=number] {
    -moz-appearance: textfield;
}

/* --- Responsive adjustments for smaller screens --- */
@media (max-width: 500px) {
    .input-fields-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .dimension-input {
        width: 150px !important; /* Make inputs a bit wider on mobile */
    }
}

/* --- Buttons --- */
.calc-footer {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.action-button {
    padding: 15px 30px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    transition: background 0.3s;
}

.gray-btn {
    background-color: #C1BEBE;
    color: white;
}
.gray-btn:hover {
    background-color: #C1ADAD;
}

.red-btn {
    background-color: #E21E26;
    color: white;
}
.red-btn:hover {
    background-color: #b71c1c;
}
.red-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- Results --- */
.result-box h3 {
    font-size: 2em;
    color: #E21E26;
}

#show-results {
    margin-top: 30px;
}

/* Styling for the Product Image Display */
#product-image-display {
    margin-bottom: 25px;
    padding: 15px;
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center;
    min-height: 175px; /* Give it a minimum height to prevent layout jump */
}

.product-selection-image {
    max-width: 100%; /* Ensure image fits container */
    max-height: 250px; /* Limit the height so it doesn't dominate the screen */
    height: auto;
}


/* --- Static Contact Text --- */
.calc-static-contact {
    /* Large margin-top to separate it from the restart button */
    margin-top: 60px;
    margin-bottom: 20px;

    /* Center the text */
    text-align: center;

    /* Enhance readability and importance */
    font-size: 1.1em;
    font-weight: 500; /* Slightly bold */
    color: #171D2B; /* Neutral but visible color */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.calc-static-contact-part-2 {
    /* Large margin-top to separate it from the restart button */
    margin-top: 10px;
    margin-bottom: 20px;

    /* Center the text */
    text-align: center;

    /* Enhance readability and importance */
    font-size: 1.1em;
    font-weight: 500; /* Slightly bold */
    color: #171D2B; /* Neutral but visible color */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* --- Step 5 Result Display Styles --- */

.result-box {
    margin: 0 auto 30px auto;
    max-width: 650px;
}

.result-product-name {
    font-size: 1.6em;
    font-weight: bold;
    color: #E21E26;
    margin-bottom: 25px;
    text-transform: uppercase;
    /* Match the red border line below the product name in your image */
    position: relative;
    padding-bottom: 15px;
}

/* Red line under the product name */
.result-product-name::after {
    content: '';
    display: block;
    width: 60px; /* Short red line */
    height: 3px;
    background-color: #E21E26;
    margin: 10px auto 0;
}

/* Container for Option A, Option B, etc. */
.result-options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.result-option {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    font-weight: 500;
    color: #444;
}

.result-option .option-label {
    /* "Opción A:" / "Opción B:" */
    font-weight: 700;
    margin-right: 10px;
}

.result-option .option-count {
    /* "32 sacos de 40 kg" */
    font-weight: bold;
    color: #000;
}

.result-details {
    font-size: 1em;
    color: #888;
    margin-bottom: 30px;
}

/* Style for the IMPORTANT note text */
.result-important-note {
    font-size: 0.85em;
    color: #E21E26;
    margin-bottom: 15px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure the main start-over button is centered below the note */
#start-over {
    display: block;
    margin: 20px auto 0 auto; /* Center it and add space */
}

/* Adjust the footer button to hide it if you only want the one in the result box */
.calc-footer {
    display: none; /* Hide the footer restart button for this new structure */
}

#category-options {
    font-family: "Century Gothic" !important;
}

* {
    font-family: "Century Gothic" !important;
}
