/* Frontend styles for Dutch Protect Flooring Recommendation Tool */

.dpf-tool {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dpf-tool-inner {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.dpf-summary {
    font-size: 0.85rem;
    color: #555;
}

.dpf-summary-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.35rem;
}

.dpf-summary-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.dpf-badge {
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.4;
    white-space: nowrap;
}

.dpf-badge-question {
    background: rgba(0, 0, 0, 0.05);
    color: #444;
}

.dpf-badge-answer {
    background: rgba(248, 156, 27, 0.18);
    color: #222;
}

.dpf-summary-arrow {
    font-size: 0.8rem;
    color: #b0b0b5;
}

.dpf-step {
    display: none;
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

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

.dpf-question-label {
    margin-bottom: 0.5rem;
}

.dpf-question-description {
    margin-bottom: 1rem;
}

.dpf-answer-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.dpf-answer-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    min-height: 44px;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s ease-in-out;
}

.dpf-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.75rem;
}

.dpf-nav-left,
.dpf-nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dpf-btn {
    padding: 0.9rem 1.6rem;
    min-height: 44px;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease-in-out, opacity 0.15s ease-in-out, transform 0.1s ease-in-out;
}

.dpf-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.dpf-recommendation {
    margin-top: 1rem;
    padding-top: 1.25rem;
}

.dpf-recommendation-inner {
    animation: dpf-fade-in 0.25s ease-in-out;
}

.dpf-recommendation-title {
    margin-bottom: 0.5rem;
}

.dpf-recommendation-description {
    margin-bottom: 1rem;
}

.dpf-recommendation-products {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dpf-product-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
}

.dpf-fallback-btn {
    text-decoration: none;
}

.dpf-progress {
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
}

.dpf-progress-bar {
    height: 100%;
    width: 0;
    transition: width 0.25s ease-in-out;
}

.dpf-product-card {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    max-width: 640px;
    margin: 0 auto;
    align-items: center;
}

.dpf-product-col-image {
    flex: 0 0 120px;
}

.dpf-product-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.dpf-product-col-main {
    flex: 1 1 auto;
}

.dpf-product-title {
    margin: 0 0 0.25rem;
}

.dpf-product-price {
    margin: 0.25rem 0 0.5rem;
}

/* Intentionally minimal button styling here; primary look is controlled by theme/WooCommerce or custom CSS. */

@keyframes dpf-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .dpf-tool {
        padding: 1rem;
    }

    .dpf-answer-options {
        grid-template-columns: 1fr;
    }

    .dpf-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .dpf-product-card {
        flex-direction: column;
        max-width: 100%;
        align-items: flex-start;
    }

    .dpf-product-col-image {
        flex: 0 0 auto;
    }
}
