/* Good Time Calculator - base styles.
   Covers every custom class referenced by the calculator layout/templates.
   Bootstrap-provided classes (btn, form-control, alert, card, badge, etc.)
   are intentionally left unstyled here - this only supplies the classes
   that are specific to this component and wouldn't otherwise have any
   styling from the site's template/framework. */

.goodtime-calculator {
    max-width: 960px;
}

.goodtime-calculator .lead {
    color: #555;
    margin-bottom: 1.5rem;
}

.goodtime-calculator-embed {
    margin: 1.5rem 0;
}

/* Result display grid */
.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
    margin: 1rem 0;
}

@media (max-width: 576px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.25rem;
}

.result-item .label {
    font-weight: 500;
    color: #444;
}

.result-item .value {
    font-weight: 600;
}

.result-item.total {
    background: rgba(13, 110, 253, 0.08);
}

.result-item.final {
    background: rgba(25, 135, 84, 0.1);
    font-size: 1.1em;
}

.result-item.final .value,
.result-item.total .value {
    font-weight: 700;
}

/* Rules-applied / disclosure text below the result grid */
.rules-applied {
    margin-top: 1rem;
    color: #555;
}

.results-section-heading {
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
    font-size: 1.05em;
    font-weight: 600;
}

.results-section-heading:first-of-type {
    margin-top: 0.5rem;
}

.results-section-intro {
    margin-bottom: 0.75rem;
    color: #555;
}

/* Print/share/export action row */
.results-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Disclaimer block at the bottom of the form */
.disclaimer-toggle {
    font-weight: 500;
    text-decoration: none;
    margin-left: 0.25rem;
}

.access-resources {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(13, 110, 253, 0.06);
    border-left: 3px solid #0d6efd;
    border-radius: 0.25rem;
}

.access-resources h4 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.access-resources ul {
    margin: 0;
    padding-left: 1.25rem;
}

.access-resources li {
    margin-bottom: 0.5rem;
    color: #444;
    line-height: 1.5;
}

.access-resources li:last-child {
    margin-bottom: 0;
}

.disclaimer {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 0.9em;
}

.disclaimer h4 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Form layout */
.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.conditional-fields {
    padding-left: 1rem;
    border-left: 2px solid #eee;
    margin: 0.5rem 0 1rem;
}

/* Minimal icon placeholders - if the site's template/icon font doesn't
   already define these classes (e.g. Font Awesome or a Joomla template's
   own icon set), they render as empty inline-block spaces rather than
   missing/broken. Replace with real icon-font classes if the target site
   uses a specific icon library. */
.icon-calculator::before,
.icon-download::before,
.icon-printer::before,
.icon-share::before,
.icon-undo::before {
    display: inline-block;
    width: 1em;
}
