.thepaul-inquiry {
    margin: 1rem 0
}

.thepaul-inquiry__title {
    margin: 0 0 1rem
}

.thepaul-inquiry__steps {
    display: grid;
    gap: 1rem
}

.thepaul-inquiry__card {
    background: #fff;
    border: 1px solid var(--tp-border, #ddd);
    .tp-ral-row {
        display: grid;
        grid-template-columns: 1fr auto 32px;
        gap: .5rem;
        align-items: end;
    }

    border-radius: 8px
}

.thepaul-inquiry__card-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--tp-border, #eee);
}

.thepaul-inquiry__card-body {
    padding: 1rem
}

/* Give steps 2 and 3 a little more breathing room */
.thepaul-inquiry__card[data-step="2"] .thepaul-inquiry__card-body,
.thepaul-inquiry__card[data-step="3"] .thepaul-inquiry__card-body {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.thepaul-inquiry__card.is-pending {
    opacity: .55
}

.thepaul-inquiry__card.is-pending * {
    pointer-events: none
}

.thepaul-inquiry__actions {
    display: flex;
    gap: .5rem;
    margin-top: 1rem
}

.thepaul-inquiry__hint {
    color: #555
}

/* Progress header */
.thepaul-inquiry__progress {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0 0 .5rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.thepaul-inquiry__progress li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #666;
}

@media (max-width: 520px) {
    /* Mobile: show only the numbered dots (prevents overflow, avoids awkward wrapping) */
    .thepaul-inquiry__progress {
        justify-content: space-between;
        gap: .25rem;
    }
    .thepaul-inquiry__progress li {
        flex: 1 1 auto;
        justify-content: center;
        gap: 0;
    }
    .thepaul-inquiry__progress-label {
        display: none;
    }
}

.thepaul-inquiry__progress-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #e5e5e5;
    color: #333;
    font-weight: 600;
    font-size: .9rem;
}

.thepaul-inquiry__progress li.is-active .thepaul-inquiry__progress-step {
    background: #007cba;
    color: #fff;
}

.thepaul-inquiry__progress li.is-complete .thepaul-inquiry__progress-step {
    background: #2aa745;
    color: #fff;
}

/* Progress bar under step indicators */
.thepaul-inquiry__progressbar {
    position: relative;
    height: 6px;
    background: #e5e5e5;
    border-radius: 999px;
    overflow: hidden;
    margin: .25rem auto 1rem;
    max-width: 680px;
}
.thepaul-inquiry__progressbar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #2aa745, #2271b1);
    transition: width .25s ease;
}

/* Global nav below cards */
.thepaul-inquiry__nav {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

/* Buttons: larger, prominent */
.thepaul-inquiry__nav .button {
    padding: .6rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
}
.thepaul-inquiry__nav .button.button-primary {
    background-color: #2271b1;
    border-color: #1b5a8d;
    color: #fff;
}
.thepaul-inquiry__nav .button.button-primary:hover {
    background-color: #1b5a8d;
    border-color: #164b76;
}
.thepaul-inquiry__btn-prev {
    opacity: .9;
}

/* Contact form grid */
.thepaul-inquiry__form .thepaul-inquiry__form-fields {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: .75rem .75rem;
}
/* Frame the contact form like other sections */
.thepaul-inquiry__form .thepaul-inquiry__form-fields {
    background: #fff;
    border: 1px solid var(--tp-border, #d9dde2);
    border-radius: 8px;
    padding: 1rem;
}
.tp-field--full { grid-column: span 12; }
.tp-field--half { grid-column: span 6; }
.tp-field--quarter { grid-column: span 3; }
@media (max-width: 720px) {
    .tp-field--half, .tp-field--quarter { grid-column: span 12; }
}
.tp-field label span { font-weight: 600; }
.tp-field input[type="text"],
.tp-field input[type="email"],
.tp-field textarea {
    width: 100%;
}
.tp-field--consent { margin-top: .5rem; }
.tp-consent-label { display: inline-flex; gap: .5rem; align-items: flex-start; }
.tp-consent-label a { text-decoration: underline; }

    /* Step 2: RAL picker UI */
    .tp-ral-block { display: grid; gap: .5rem; }
    .tp-ral-desc { color: #444; margin: 0 0 .25rem; }
    .tp-ral-group { display: flex; gap: .5rem; align-items: center; }
    .tp-ral-group .tp-ral-input { width: 100%; flex: 1; padding-right: .6rem; }
    .tp-ral-open { position: static; transform: none; }
    .tp-ral-meta { display: flex; align-items: center; gap: .5rem; color: #666; font-size: .9em; }

    .tp-ral-chip { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); vertical-align: middle; margin-left: .25rem; }

    .tp-config-overview { display: grid; gap: .25rem; }
    .tp-config-list { margin: .25rem 0 0 .9rem; padding: 0; }
    .tp-config-list li { list-style: disc; }

    /* Prominent RAL palette button */
    .tp-ral-open.tp-ral-open--lg {
        font-size: 0.95rem;
        padding: .6rem 1.25rem;
        font-weight: 600;
        box-shadow: 0 2px 4px rgba(0,0,0,.08);
    }

    /* Upload group beneath color input */
    .tp-upload-group { margin-top: .75rem; display: grid; gap: .5rem; }
    .tp-upload-label { font-size: .9rem; font-weight: 500; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
    .tp-upload-label input[type="file"] { flex: 1; }
    .tp-upload-preview { display: flex; flex-wrap: wrap; gap: .5rem; }
    .tp-upload-thumb { width: 70px; height: 70px; border: 1px solid var(--tp-border,#d9dde2); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.06); }
    .tp-upload-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

    /* Step 4 two-column review layout */
    .thepaul-inquiry__review-grid { display: grid; gap: 1.25rem; }
    @media (min-width: 860px) { .thepaul-inquiry__review-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
    .thepaul-inquiry__review-left .thepaul-inquiry__summary-section { background: #fff; border: 1px solid var(--tp-border,#e5e8ec); border-radius: 8px; padding: .75rem .9rem; box-shadow: 0 2px 4px rgba(0,0,0,.04); }
    .thepaul-inquiry__review-right .thepaul-pricing__summary-panel { background: #fff; border: 1px solid var(--tp-border,#e5e8ec); border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,.04); }
    .thepaul-inquiry__review-right .thepaul-pricing__summary-title { margin-top: .75rem; }

    /* Step 2 card polish */
    .thepaul-inquiry__card--context .thepaul-inquiry__card-body { display: grid; gap: .75rem; }
    .thepaul-inquiry__card--context .tp-ral-block { background: #fff; border: 1px solid var(--tp-border,#e5e8ec); border-radius: 10px; padding: .9rem; box-shadow: 0 2px 4px rgba(0,0,0,.04); }
    .thepaul-inquiry__card--context .tp-ral-desc { font-weight: 500; color: #222; }

    /* New Step 2 grid for Farbe block */
    .tp-section { display: grid; gap: .5rem; background: #fff; border: 1px solid var(--tp-border,#e5e8ec); border-radius: 10px; padding: .9rem; }
    .tp-section > h4 { margin: 0; font-size: 1rem; }
    .tp-grid.tp-grid--color { display: grid; gap: .5rem; grid-template-columns: 2fr 1fr 1fr; align-items: center; }
    @media (max-width: 720px) { .tp-grid.tp-grid--color { grid-template-columns: 1fr; } }
    .tp-cell--half { grid-column: span 1; }
    .tp-cell--quarter { grid-column: span 1; }
    .tp-ral-preview--lg { display: inline-block; width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--tp-border,#d9dde2); background: repeating-conic-gradient(#eee 0 25%, #f8f8f8 0 50%) 50% / 10px 10px; justify-self: start; }
    .tp-upload-hint { color: #444; margin: .25rem 0 0; font-size: .92em; line-height: 1.4em; }

    /* Step 4 disclaimer */
    .thepaul-inquiry__summary-disclaimer { margin-top: .5rem; color: #666; font-size: .9em; }
/* Summary styles */
.thepaul-inquiry__summary { display: grid; gap: .75rem; }
.thepaul-inquiry__summary-section h4 { margin: 0 0 .25rem; }
.thepaul-inquiry__summary-contact { display: grid; gap: .25rem; }
.thepaul-inquiry__summary-contact dt { font-weight: 600; display: inline-block; min-width: 120px; }
.thepaul-inquiry__summary-contact dd { margin: 0; display: inline; }

/* Real step-form: show only active card when JS is enabled */
.thepaul-inquiry.thepaul-inquiry--js-enabled .thepaul-inquiry__card.is-pending,
.thepaul-inquiry.thepaul-inquiry--js-enabled .thepaul-inquiry__card.is-complete {
    display: none;
}

/* Step 1: card-style source choices (visual radios) */
.thepaul-inquiry__choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
    margin: .5rem 0 0;
}

.thepaul-inquiry__choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem .9rem;
    border: 1px solid var(--tp-border, #d9dde2);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.thepaul-inquiry__choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.thepaul-inquiry__choice.is-selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, .15);
}

.thepaul-inquiry__choice-label {
    font-weight: 600;
}

.thepaul-inquiry__embeds {
    margin-top: 1rem;
}

.thepaul-inquiry__embed {
    display: none;
}

.thepaul-inquiry__embed.is-visible {
    display: block;
}

/* Step 1: Custom request box polish */
.thepaul-inquiry__custom-box .tp-custom-explain { padding: 3% 5% 0 2%; color: #444; margin: .25rem 0 .5rem; font-size: .92em; }
.thepaul-inquiry__custom-box .tp-field textarea { min-height: 100px; }

/* Hide standalone submit buttons inside embedded calculators */
.thepaul-inquiry .thepaul-pricing [data-tp-submit],
.thepaul-inquiry .thepaul-pricing [data-pc-submit] {
    display: none !important;
}

/* Step 2: RAL picker UI */
.tp-ral-row {
    display: grid;
    grid-template-columns: 1fr auto 32px;
    gap: .5rem;
    align-items: end;
}

.tp-ral-field input[type="text"].tp-ral-input {
    width: 100%;
}

.tp-ral-preview {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--tp-border, #d9dde2);
    background: repeating-conic-gradient(#eee 0 25%, #f8f8f8 0 50%) 50% / 10px 10px;
}

.tp-ral-note {
    margin-top: .5rem;
    color: #666;
    font-size: .9em;
}

.tp-ral-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.tp-ral-modal.is-open {
    display: block;
}

.tp-ral-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
}

.tp-ral-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(920px, 92vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    overflow: hidden;
}

.tp-ral-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--tp-border, #eee);
}

.tp-ral-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.tp-ral-dialog-body {
    padding: .75rem 1rem 1rem;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: .75rem;
    min-height: 0; /* allow child to scroll */
}

.tp-ral-search {
    padding: .4rem .6rem;
    border-radius: 6px;
    border: 1px solid var(--tp-border, #d9dde2);
    width: 100%;
}

.tp-ral-grid {
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .6rem;
    min-height: 0;
}

.tp-ral-swatch {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: .6rem;
    align-items: center;
    text-align: left;
    padding: .55rem .7rem;
    border-radius: 10px;
    border: 1px solid var(--tp-border, #e5e8ec);
    background: #fff;
    cursor: pointer;
    transition: box-shadow .15s ease, border-color .15s ease, transform .06s ease;
}

.tp-ral-swatch:hover {
    border-color: #2271b1;
    box-shadow: 0 6px 20px rgba(34, 113, 177, .12);
}
.tp-ral-swatch:active { transform: translateY(1px); }

.tp-ral-swatch:focus {
    outline: 2px solid #2271b1;
}

.tp-ral-swatch-chip {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, .1);
}

.tp-ral-swatch-meta { display: grid; grid-template-rows: auto auto; line-height: 1.15; }
.tp-ral-swatch-code { font-weight: 700; letter-spacing: .2px; }
.tp-ral-swatch-name { color: #555; font-size: .92em; }
.tp-ral-dialog { height: min(80vh, 720px); }

/* Inputs – slight polish for modern look */
.tp-ral-input {
    border: 1px solid var(--tp-border, #d9dde2);
    border-radius: 8px;
    padding: .5rem .6rem;
    width: 100%;
    box-sizing: border-box;
}

/* Step 4: Shipping list styling */
.tp-ship-intro { color: #444; margin: .25rem 0 .75rem; }
.tp-ship-list { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.tp-ship-item { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: .6rem; padding: .75rem .9rem; border: 1px solid var(--tp-border,#e5e8ec); border-radius: 10px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.04); cursor: pointer; }
.tp-ship-item input[type="checkbox"] { margin-top: .25rem; }
.tp-ship-meta { display: grid; gap: .2rem; }
.tp-ship-title { font-weight: 600; }
.tp-ship-desc { color: #555; font-size: .92em; }
.tp-ship-price { color: #222; font-weight: 600; }