.leadmarkt-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%;
}

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

.leadmarkt-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
    background: #E60000;
}

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

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

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

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

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

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

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

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

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

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

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

.leadmarkt-back:hover, .leadmarkt-next:hover,
.leadmarkt-back:focus, .leadmarkt-next:focus,
.leadmarkt-back:active, .leadmarkt-next:active {
    background: #E60000 !important;
    color: white !important;
    opacity: 0.85;
    outline: none;
    box-shadow: none;
}

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

.leadmarkt-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;
}

.leadmarkt-type-card:hover {
    border-color: #E60000;
    box-shadow: 0 4px 12px rgba(229,62,62,0.1);
    background: white;
}

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


.leadmarkt-type-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

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

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

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

.leadmarkt-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;
}

.leadmarkt-option:hover {
    border-color: #E60000;
    box-shadow: 0 4px 12px rgba(229,62,62,0.1);
    background: white;
}

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

.leadmarkt-option img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

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

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

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

.leadmarkt-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;
}

.leadmarkt-icon img {
    max-width: 120%;
    max-height: 120%;
    object-fit: contain;
}

.leadmarkt-value {
    font-size: 16px;
    font-weight: 400;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    background: #E60000;
    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 */
.leadmarkt-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 #E60000;
}

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

.leadmarkt-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid #E60000;
    cursor: pointer;
}

.leadmarkt-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid #E60000;
    cursor: pointer;
}

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

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

.leadmarkt-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;
}

.leadmarkt-input-minus, .leadmarkt-input-plus {
    width: 40px;
    background: white;
    border: 1px solid #E60000;
    color: #E60000;
    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;
}

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

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

.leadmarkt-input-minus:hover, .leadmarkt-input-plus:hover {
    background: #E60000 !important;
    color: white !important;
}

.leadmarkt-input-wrap span {
    padding: 10px 20px;
    color: white;
    background: #E60000;
    border-radius: 0 6px 6px 0;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.leadmarkt-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) */
.leadmarkt-counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.leadmarkt-btn-minus, .leadmarkt-btn-plus {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 6px;
    background: #E60000 !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;
}

.leadmarkt-btn-minus:hover, .leadmarkt-btn-plus:hover,
.leadmarkt-btn-minus:focus, .leadmarkt-btn-plus:focus,
.leadmarkt-btn-minus:active, .leadmarkt-btn-plus:active {
    background: #E60000 !important;
    color: white !important;
    opacity: 0.85;
    outline: none;
    box-shadow: none;
}

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

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

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

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

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

.leadmarkt-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
}

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

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

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

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

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

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

.leadmarkt-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;
}

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

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

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

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

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

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

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

.leadmarkt-checkbox input {
    cursor: pointer;
}

.leadmarkt-checkbox a {
    color: #E60000;
    text-decoration: none;
}

.leadmarkt-submit {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #E60000 !important;
    color: white !important;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 8px;
}

.leadmarkt-submit:hover,
.leadmarkt-submit:focus,
.leadmarkt-submit:active {
    background: #E60000 !important;
    color: white !important;
    opacity: 0.85;
    outline: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    /* Container */
    .leadmarkt-container {
        padding: 0;
        border-radius: 8px;
    }
    
    /* Title / Header above progress bar */
    .leadmarkt-first-step-title {
        padding: 16px 20px 14px;
        text-align: center;
    }
    
    .leadmarkt-first-step-title h1 {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .leadmarkt-first-step-title p {
        font-size: 14px;
    }
    
    .leadmarkt-header {
        padding: 14px 20px 12px;
        text-align: center;
    }
    
    .leadmarkt-header h2 {
        font-size: 18px;
    }
    
    .leadmarkt-step {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    /* Content area */
    .leadmarkt-content {
        min-height: 0;
        padding: 14px 16px;
        margin-bottom: 0;
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
    }
    
    /* Nav buttons */
    .leadmarkt-nav {
        padding: 10px 16px 14px;
    }
    
    .leadmarkt-back, .leadmarkt-next {
        padding: 10px 24px;
        font-size: 15px;
    }
    
    /* Step 1 - type cards */
    .leadmarkt-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .leadmarkt-type-card {
        padding: 20px 12px;
        gap: 10px;
    }
    
    .leadmarkt-type-card img {
        width: 56px;
        height: 56px;
    }
    
    .leadmarkt-type-card span {
        font-size: 15px;
    }
    
    /* Multi-choice grids - 2 columns */
    .leadmarkt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .leadmarkt-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 */
    .leadmarkt-grid > *:last-child:nth-child(odd),
    .leadmarkt-grid-h > *:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: 50%;
        margin: 0 auto;
    }
    
    /* Option cards */
    .leadmarkt-option {
        padding: 14px 8px;
        gap: 8px;
        min-width: 0;
        overflow: hidden;
    }
    
    .leadmarkt-option img {
        width: 44px;
        height: 44px;
    }
    
    .leadmarkt-option span {
        font-size: 13px;
    }
    
    /* Slider steps */
    .leadmarkt-slider-box {
        gap: 10px;
    }
    
    .leadmarkt-icon {
        width: 90px;
        height: 90px;
        padding: 8px;
        margin: 0 auto 8px;
    }
    
    .leadmarkt-slider-left {
        gap: 10px;
        padding-top: 42px;
    }
    
    /* Counter step */
    .leadmarkt-counter-box {
        gap: 12px;
    }
    
    .leadmarkt-num {
        font-size: 24px;
    }
    
    /* Input wrap */
    .leadmarkt-input-wrap {
        width: 85%;
        margin: 0 auto;
    }
    
    /* Location / Contact split layout → stacked */
    .leadmarkt-slider-box, .leadmarkt-counter-box,
    .leadmarkt-location, .leadmarkt-contact {
        grid-template-columns: 1fr;
    }
    
    /* Map - smaller on mobile */
    .leadmarkt-map {
        height: 180px;
    }
    
    /* Contact image - hide on mobile to save space */
    .leadmarkt-contact-img {
        display: none;
    }
    
    /* Contact form full width */
    .leadmarkt-contact .leadmarkt-form {
        width: 100%;
    }
    
    /* Badge */
    .leadmarkt-badge {
        font-size: 12px;
        padding: 3px 10px;
    }
}

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