.plf-container {
    max-width: 850px;
    margin: 40px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 40px;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
}

/* Original production artwork with commercial brand-colour overlays.
   The base images are the proven EuV form graphics. Only their red accent
   pixels are overlaid so the configured brand colour can change without
   redrawing the artwork. */
.plf-artwork {
    position: relative;
    display: block;
    overflow: hidden;
    flex: 0 0 auto;
}

.plf-artwork > img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.plf-artwork-accent {
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.plf-artwork-accent--light {
    background: var(--plf-primary, #C62828);
}

.plf-artwork-accent--dark {
    background: var(--plf-primary-dark, #8F1D1D);
}

.plf-progress {
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    margin-bottom: 32px;
}

.plf-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
    background: var(--plf-primary, #C62828);
}

.plf-header {
    text-align: center;
    padding: 24px 40px 20px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 0;
}

.plf-step {
    color: #9CA3AF;
    font-size: 13px;
    margin-bottom: 8px;
}

.plf-header h2 {
    font-size: 22px;
    font-weight: 400;
    color: #374151;
    margin: 0;
}

.plf-badge {
    display: inline-block;
    margin-top: 10px;
    background: #22c55e;
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    animation: plf-fade-in 0.8s ease forwards;
    opacity: 0;
}

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

.plf-first-step-title {
    text-align: center;
    padding: 24px 40px 20px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 0;
}

.plf-first-step-title h1 {
    font-size: 26px;
    font-weight: 400;
    color: #374151;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.plf-first-step-title p {
    font-size: 15px;
    font-weight: 400;
    color: #9CA3AF;
    margin: 0;
}

.plf-content {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plf-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plf-back, .plf-next {
    padding: 10px 32px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
    background: var(--plf-primary, #C62828) !important;
    color: white !important;
}

.plf-back:hover, .plf-next:hover,
.plf-back:focus, .plf-next:focus,
.plf-back:active, .plf-next:active {
    background: var(--plf-primary, #C62828) !important;
    color: white !important;
    opacity: 0.85;
    outline: none;
    box-shadow: none;
}

/* Type Selection */
.plf-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.plf-type-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.plf-type-card:hover {
    border-color: var(--plf-primary, #C62828);
    box-shadow: 0 4px 12px rgba(17,24,39,0.10);
    background: white;
}

.plf-type-card:active {
    background: white;
}

.plf-type-card.is-selected,
.plf-option.is-selected {
    border-color: var(--plf-primary, #C62828);
    background: #F9FAFB;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.06), 0 4px 12px rgba(17, 24, 39, 0.10);
}

.plf-type-card.is-selected span,
.plf-option.is-selected span {
    color: var(--plf-primary, #C62828);
    font-weight: 600;
}


.plf-type-card img,
.plf-type-card .plf-artwork {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex: 0 0 auto;
}

.plf-type-card span {
    font-size: 17px;
    font-weight: 400;
    color: #374151;
}

/* Options Grid */
.plf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.plf-grid-h {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.plf-option {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 28px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.plf-option:hover {
    border-color: var(--plf-primary, #C62828);
    box-shadow: 0 4px 12px rgba(17,24,39,0.10);
    background: white;
}

.plf-option:active {
    background: white;
}

.plf-option img,
.plf-option .plf-artwork {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex: 0 0 70px;
}

/* The host theme applies height:auto to images. Lock the subtype image boxes
   so every label in a row shares one baseline at every size. */
.plf-option[data-value="einfamilienhaus"] img,
.plf-option[data-value="mehrfamilienhaus"] img,
.plf-option[data-value="reihenhaus"] img,
.plf-option[data-value="doppelhaushaelfte"] img,
.plf-option[data-value="etagenwohnung"] img,
.plf-option[data-value="erdgeschosswohnung"] img,
.plf-option[data-value="dachgeschosswohnung"] img,
.plf-option[data-value="penthousewohnung"] img {
    width: 70px !important;
    height: 70px !important;
    flex: 0 0 70px;
    object-fit: contain;
}

.plf-option[data-value="einfamilienhaus"] .plf-artwork,
.plf-option[data-value="mehrfamilienhaus"] .plf-artwork,
.plf-option[data-value="reihenhaus"] .plf-artwork,
.plf-option[data-value="doppelhaushaelfte"] .plf-artwork,
.plf-option[data-value="etagenwohnung"] .plf-artwork,
.plf-option[data-value="erdgeschosswohnung"] .plf-artwork,
.plf-option[data-value="dachgeschosswohnung"] .plf-artwork,
.plf-option[data-value="penthousewohnung"] .plf-artwork {
    width: 70px !important;
    height: 70px !important;
    flex: 0 0 70px;
}

.plf-option span {
    font-size: 15px;
    color: #374151;
    text-align: center;
}

/* Slider Box - Image BETWEEN title and slider (centered) */
.plf-slider-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.plf-slider-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    position: relative;
    padding-top: 48px;
}

.plf-icon {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9FAFB;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    margin: 0 auto 16px;
}

.plf-icon img,
.plf-icon .plf-artwork {
    width: 168px;
    height: 168px;
    max-width: 120%;
    max-height: 120%;
    object-fit: contain;
}

.plf-value {
    font-size: 16px;
    font-weight: 400;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    background: var(--plf-primary, #C62828);
    display: inline-block;
    width: 80px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: left 0.1s ease;
    margin-bottom: 8px;
}

/* Small triangle pointer below value box pointing to handle */
.plf-value::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--plf-primary, #C62828);
}

.plf-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background: #E5E7EB;
}

.plf-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--plf-primary, #C62828);
    cursor: pointer;
}

.plf-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--plf-primary, #C62828);
    cursor: pointer;
}

.plf-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 13px;
    color: #9CA3AF;
}

.plf-input-wrap {
    display: flex;
    width: 50%;
    margin: 0 auto;
    align-items: stretch;
}

.plf-input-wrap input {
    flex: 1;
    padding: 10px;
    border: 1px solid #E5E7EB;
    border-left: none;
    border-right: none;
    border-radius: 0;
    font-size: 15px;
    text-align: center;
}

.plf-input-minus, .plf-input-plus {
    width: 40px;
    background: white;
    border: 1px solid var(--plf-primary, #C62828);
    color: var(--plf-primary, #C62828);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.plf-input-minus {
    border-radius: 6px 0 0 6px;
}

.plf-input-plus {
    border-radius: 0 0 0 0;
}

.plf-input-minus:hover, .plf-input-plus:hover {
    background: var(--plf-primary, #C62828) !important;
    color: white !important;
}

.plf-input-wrap span {
    padding: 10px 20px;
    color: white;
    background: var(--plf-primary, #C62828);
    border-radius: 0 6px 6px 0;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.plf-year-input {
    width: 50%;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
}

/* Counter Box - Image BETWEEN title and counter (centered) */
.plf-counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.plf-counter-left {
    display: flex;
    justify-content: center;
    width: 100%;
}

.plf-counter-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.plf-btn-minus, .plf-btn-plus {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 6px;
    background: var(--plf-primary, #C62828) !important;
    color: white !important;
    font-size: 22px;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.plf-btn-minus:hover, .plf-btn-plus:hover,
.plf-btn-minus:focus, .plf-btn-plus:focus,
.plf-btn-minus:active, .plf-btn-plus:active {
    background: var(--plf-primary, #C62828) !important;
    color: white !important;
    opacity: 0.85;
    outline: none;
    box-shadow: none;
}

.plf-counter-val {
    text-align: center;
    min-width: 100px;
}

.plf-num {
    font-size: 28px;
    font-weight: 300;
    color: #374151;
}

.plf-counter-val div:last-child {
    color: #9CA3AF;
    margin-top: 4px;
    font-size: 14px;
}

/* Location */
.plf-location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.plf-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plf-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    align-items: start;
}

.plf-location-errors {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.plf-location-errors:empty {
    display: none;
}

.plf-location-errors .plf-field-error {
    margin: 0 !important;
}

.plf-fields input {
    padding: 10px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 14px;
}

.plf-field-group {
    min-width: 0;
}

.plf-field-group > input,
.plf-field-group > select {
    width: 100%;
    box-sizing: border-box;
}

.plf-address-source--enhanced {
    display: none !important;
}

.plf-place-autocomplete {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    color-scheme: light;
    font-family: inherit;
}

.plf-place-autocomplete::part(input) {
    width: 100%;
    min-height: 39px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #FFFFFF;
    color: #374151;
    font-family: inherit;
    font-size: 14px;
    line-height: normal;
}

.plf-place-autocomplete[data-invalid="true"]::part(input) {
    border-color: var(--plf-primary, #C62828);
}

.plf-address-inline-autocomplete {
    scroll-margin-top: 96px;
}

.plf-container .plf-address-suggestions {
    width: 100%;
    max-height: 260px;
    margin-top: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background: #FFFFFF;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.plf-container .plf-address-suggestions[hidden] {
    display: none;
}

.plf-container .plf-address-suggestions .plf-address-suggestion {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #E5E7EB !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    background: #FFFFFF !important;
    color: #374151 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.plf-container .plf-address-suggestions .plf-address-suggestion:last-child {
    border-bottom: 0 !important;
}

.plf-container .plf-address-suggestions .plf-address-suggestion:hover,
.plf-container .plf-address-suggestions .plf-address-suggestion:focus,
.plf-container .plf-address-suggestions .plf-address-suggestion.is-active {
    background: #F3F4F6 !important;
    color: #111827 !important;
    outline: none;
}

.plf-field-error {
    line-height: 1.35;
}

.plf-map {
    background: #F3F4F6;
    border-radius: 6px;
    min-height: 200px;
}

/* Contact - Form LEFT, Image RIGHT */
.plf-contact {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    width: 100%;
}

.plf-contact-img {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plf-img-wrap {
    position: relative;
    width: 100%;
}

.plf-photo {
    width: 100%;
    border-radius: 6px;
    display: block;
}

.plf-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 22%;
    background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0) 100%);
    border-radius: 0 0 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.plf-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.plf-photo-only {
    width: 100%;
    border-radius: 6px;
}

.plf-logo-only {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.plf-company {
    font-size: 18px;
    font-weight: 500;
    color: #374151;
}

.plf-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plf-form input, .plf-form select {
    padding: 10px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 14px;
}

.plf-contact .plf-form .plf-field-group > input,
.plf-contact .plf-form .plf-field-group > select {
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
    padding: 14px 24px;
    border: 1px solid #6B7280 !important;
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #374151;
    font-family: inherit;
    font-size: 18px;
    line-height: 1.3;
    box-shadow: none;
}

.plf-contact .plf-form .plf-field-group > select {
    cursor: pointer;
    padding-right: 42px;
}

.plf-contact .plf-form .plf-field-group > input:focus,
.plf-contact .plf-form .plf-field-group > select:focus {
    border-color: #374151 !important;
    outline: none;
    box-shadow: 0 0 0 1px rgba(55, 65, 81, 0.16);
}

.plf-contact .plf-form .plf-field-group > input[aria-invalid="true"],
.plf-contact .plf-form .plf-field-group > select[aria-invalid="true"] {
    border-color: var(--plf-primary, #C62828) !important;
    box-shadow: none;
}

.plf-checkbox {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #6B7280;
    cursor: pointer;
}

.plf-checkbox input {
    cursor: pointer;
}

.plf-checkbox a {
    color: var(--plf-primary, #C62828);
    text-decoration: none;
}

.plf-submit {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: var(--plf-primary, #C62828) !important;
    color: white !important;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 8px;
}

.plf-submit:hover,
.plf-submit:focus,
.plf-submit:active {
    background: var(--plf-primary, #C62828) !important;
    color: white !important;
    opacity: 0.85;
    outline: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    /* Container */
    .plf-container {
        padding: 0;
        border-radius: 8px;
    }
    
    /* Title / Header above progress bar */
    .plf-first-step-title {
        padding: 16px 20px 14px;
        text-align: center;
    }
    
    .plf-first-step-title h1 {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .plf-first-step-title p {
        font-size: 14px;
    }
    
    .plf-header {
        padding: 14px 20px 12px;
        text-align: center;
    }
    
    .plf-header h2 {
        font-size: 18px;
    }
    
    .plf-step {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    /* Content area */
    .plf-content {
        min-height: 0;
        padding: 14px 16px;
        margin-bottom: 0;
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
    }
    
    /* Nav buttons */
    .plf-nav {
        padding: 10px 16px 14px;
    }
    
    .plf-back, .plf-next {
        padding: 10px 24px;
        font-size: 15px;
    }
    
    /* Step 1 - type cards */
    .plf-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .plf-type-card {
        padding: 20px 12px;
        gap: 10px;
    }
    
    .plf-type-card img,
    .plf-type-card .plf-artwork {
        width: 56px;
        height: 56px;
    }
    
    .plf-type-card span {
        font-size: 15px;
    }
    
    /* Multi-choice grids - 2 columns */
    .plf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .plf-grid-h {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Center lone last item when odd number of options */
    .plf-grid > *:last-child:nth-child(odd),
    .plf-grid-h > *:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: 50%;
        margin: 0 auto;
    }
    
    /* Option cards */
    .plf-option {
        padding: 14px 8px;
        gap: 8px;
        min-width: 0;
        overflow: hidden;
    }
    
    .plf-option img,
    .plf-option .plf-artwork {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    /* Preserve the same alignment in the smaller mobile image slot. */
    .plf-option[data-value="einfamilienhaus"] img,
    .plf-option[data-value="mehrfamilienhaus"] img,
    .plf-option[data-value="reihenhaus"] img,
    .plf-option[data-value="doppelhaushaelfte"] img,
    .plf-option[data-value="etagenwohnung"] img,
    .plf-option[data-value="erdgeschosswohnung"] img,
    .plf-option[data-value="dachgeschosswohnung"] img,
    .plf-option[data-value="penthousewohnung"] img {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px;
        object-fit: contain;
    }

    .plf-option[data-value="einfamilienhaus"] .plf-artwork,
    .plf-option[data-value="mehrfamilienhaus"] .plf-artwork,
    .plf-option[data-value="reihenhaus"] .plf-artwork,
    .plf-option[data-value="doppelhaushaelfte"] .plf-artwork,
    .plf-option[data-value="etagenwohnung"] .plf-artwork,
    .plf-option[data-value="erdgeschosswohnung"] .plf-artwork,
    .plf-option[data-value="dachgeschosswohnung"] .plf-artwork,
    .plf-option[data-value="penthousewohnung"] .plf-artwork {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px;
    }
    
    .plf-option span {
        font-size: 13px;
    }
    
    /* Slider steps */
    .plf-slider-box {
        gap: 10px;
    }
    
    .plf-icon {
        width: 90px;
        height: 90px;
        padding: 8px;
        margin: 0 auto 8px;
    }
    
    .plf-slider-left {
        gap: 10px;
        padding-top: 42px;
    }
    
    /* Counter step */
    .plf-counter-box {
        gap: 12px;
    }
    
    .plf-num {
        font-size: 24px;
    }
    
    /* Input wrap */
    .plf-input-wrap {
        width: 85%;
        margin: 0 auto;
    }
    
    /* Location / Contact split layout → stacked */
    .plf-slider-box, .plf-counter-box,
    .plf-location, .plf-contact {
        grid-template-columns: 1fr;
    }
    
    /* Map - smaller on mobile */
    .plf-map {
        height: 180px;
    }
    
    /* Contact image - hide on mobile to save space */
    .plf-contact-img {
        display: none;
    }
    
    /* Contact form full width */
    .plf-contact .plf-form {
        width: 100%;
    }
    
    /* Badge */
    .plf-badge {
        font-size: 12px;
        padding: 3px 10px;
    }
}

/* Tablet fix - iPad Air and similar (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .plf-container {
        max-width: 100%;
        padding: 32px;
        box-sizing: border-box;
    }
    
    .plf-first-step-title {
        text-align: center !important;
        padding: 20px 32px 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .plf-first-step-title h1 {
        text-align: center !important;
    }
    
    .plf-first-step-title p {
        text-align: center !important;
    }
    
    .plf-header {
        text-align: center !important;
        padding: 20px 32px 16px;
    }
    
    .plf-content {
        padding: 0 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Equal-size type cards */
    .plf-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        align-items: stretch;
    }
    
    .plf-type-card {
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }
    
    /* 2 columns for subtype grids, smaller text to prevent overflow */
    .plf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plf-grid-h {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Smaller text on subtype options to prevent text breaking out */
    .plf-option span {
        font-size: 12px;
        word-break: break-word;
        hyphens: auto;
        text-align: center;
    }
    
    .plf-option {
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    /* Stack location/contact on tablet */
    .plf-location, .plf-contact {
        grid-template-columns: 1fr;
    }
    
    .plf-map {
        height: 220px;
    }
}

/* 3.9.2 RC2: keep the native Anrede menu readable even when the browser/OS
   prefers dark form controls. This affects only the contact select popup. */
.plf-contact .plf-form .plf-field-group > select {
    color-scheme: light;
}

.plf-contact .plf-form .plf-field-group > select option {
    background-color: #FFFFFF;
    color: #374151;
}


/* 3.9.2 RC3: useful state inside the existing map rectangle when Google Maps
   is blocked by consent or cannot be loaded. Manual address entry stays active. */
.plf-map {
    position: relative;
}

.plf-map-status {
    min-height: inherit;
    height: 100%;
    padding: 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: #4B5563;
    font-size: 13px;
    line-height: 1.45;
}

.plf-map-status-title {
    display: block;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.plf-map-status-text {
    display: block;
    max-width: 360px;
}

.plf-map-consent-button {
    margin-top: 5px !important;
    padding: 9px 14px !important;
    min-height: 0 !important;
    width: auto !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 5px !important;
    background: #FFFFFF !important;
    color: #374151 !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    cursor: pointer;
}

.plf-map-consent-button:hover,
.plf-map-consent-button:focus {
    background: #F9FAFB !important;
    color: #111827 !important;
    outline: 2px solid transparent;
}

/* Primary brand colour contract: every lead-form accent is derived from --plf-primary. */
.plf-form-instance :is(.plf-back, .plf-next, .plf-submit, .plf-btn-minus, .plf-btn-plus):focus-visible,
.plf-form-instance :is(.plf-type-card, .plf-option):focus-visible {
    outline: 3px solid var(--plf-primary, #C62828);
    outline-offset: 3px;
}
