/* ── Calculator ─────────────────────────────── */

.calculator-page {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    max-width: 1100px;
}

h1 {
    margin: 1rem 0 2rem;
    font-family: Yatra One;
    font-size: 60px;
    text-align: center;
    text-transform: uppercase;
}

h2 {
    font-family: Georama;
    font-size: 30px;
}

form {
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    margin: 40px 0;
    width: 100%;
}

form section {
    display: flex;
    flex-direction: row;
    gap: 3rem;
}

form section .step-description {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.25rem;
    flex: 4;
    text-align: justify;
    overflow-wrap: break-word;
    hyphens: auto;
}

form section p {
    margin-bottom: 10px;
    font-family: Cabin;
    font-size: 18px;
}

abbr {
    cursor: help;
}

form section table {
    margin-top: 20px;
    flex: 2;
    font-family: Georama;
}

.step-label {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 5px 10px;
    height: auto;
    font-family: Fredoka;
    font-size: 14px;
    font-weight: 600;
    background-color: var(--accent-yellow);
    color: var(--paper);
    text-transform: uppercase;
    border-radius: 5px;
}

.calculator-tables td.right,
.calculator-tables th.right {
    text-align: center;
}

.calculator-tables td {
    padding: 5px;
    vertical-align: center;
    border-bottom: 2px solid var(--lightlavender);
}

.calculator-tables th {
    padding: 10px 0;
    font-size: 17px;
    text-align: left;
}

.calculator-tables td input,
select {
    padding: 4px;
    width: 100%;
    height: 100%;
    font-family: Outfit;
    font-size: 14px;
    border: 1px solid var(--lightgray);
}

#giantess-size-data-table td.right {
    width: 25%;
}

.calculator-page button {
    margin: 1.5rem auto;
    width: max-content;
}

.question {
    margin-top: 30px;
    font-size: 20px;
    color: var(--stblack);
}

.first-question {
    margin: 0;
}

#error-box {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
    padding: 1rem;
    font-family: Outfit;
    font-size: 20px;
    color: var(--accent-red);
    border: 3px solid var(--accent-red);   
}

/* ── Calculator Mobile ───────────────────────── */
@media (max-width: 700px) {

    .calculator-page {
        padding: 1.5rem 1rem 3rem;
    }

    h1 {
        font-size: 36px;
        margin: 1rem 0 1.5rem;
    }

    h2 {
        font-size: 22px;
    }

    form {
        row-gap: 1.5rem;
    }

    form section {
        flex-direction: column;
        gap: 1rem;
    }

    form section .step-description {
        flex: unset;
        text-align: left;
    }

    form section table {
        flex: unset;
        width: 100%;
        overflow-x: auto;
        display: block;
    }

    .calculator-tables td input,
    .calculator-tables select {
        font-size: 12px;
        padding: 6px 4px;
    }

    .calculator-tables th,
    .calculator-tables td {
        font-size: 13px;
    }

    .step-label {
        font-size: 12px;
        padding: 4px 8px;
    }

    #giantess-size-data-table td.right {
        width: auto;
    }

    .calculator-page button {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 16px;
    }

    .text-flow p {
        font-size: 14px;
        line-height: 1.4;
    }

    .question {
        font-size: 16px;
    }
}