/* Leadmarkt Form Styles - v2.1 FINAL - EXACT LAYOUTS FROM SCREENSHOTS */

.leadmarkt-form {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.leadmarkt-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 48px;
    min-height: 700px;
    display: flex;
    flex-direction: column;
}

.leadmarkt-card.contact-step {
    border: 4px solid #48bb78;
    min-height: 750px;
}

.leadmarkt-header {
    text-align: center;
    margin-bottom: 48px;
}

.leadmarkt-header h1 {
    font-size: 32px;
    font-weight: 300;
    color: #2d3748;
    margin-bottom: 12px;
}

.leadmarkt-header p {
    font-size: 18px;
    color: #718096;
}

.leadmarkt-step-header {
    text-align: center;
    margin-bottom: 32px;
}

.leadmarkt-step-header h2 {
    font-size: 24px;
    font-weight: 300;
    color: #2d3748;
    margin-bottom: 8px;
}

.leadmarkt-step-header p {
    color: #718096;
}

.leadmarkt-progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 48px;
    overflow: hidden;
}

.leadmarkt-progress-bar {
    height: 100%;
    background: #e53e3e;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.leadmarkt-type-selection {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
}

.leadmarkt-type-btn {
    width: 256px;
    height: 256px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.leadmarkt-type-btn:hover {
    border-color: #e53e3e;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.leadmarkt-type-btn span {
    font-size: 24px;
    font-weight: 300;
    color: #4a5568;
}

.leadmarkt-type-btn:hover span {
    color: #e53e3e;
}

.leadmarkt-type-icon {
    transition: transform 0.3s ease;
}

.leadmarkt-type-btn:hover .leadmarkt-type-icon {
    transform: scale(1.1);
}

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

.leadmarkt-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.leadmarkt-nav-btn {
    width: 48px;
    height: 48px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.leadmarkt-nav-btn:hover {
    background: #c53030;
}

/* Vertical layout for property type selection */
.leadmarkt-grid-2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    width: 100%;
}

.leadmarkt-option-btn {
    padding: 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
}

.leadmarkt-option-btn img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.leadmarkt-option-btn:hover {
    border-color: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.leadmarkt-option-btn.active {
    border-color: #e53e3e;
    background: #fff5f5;
    color: #e53e3e;
}

/* FIXED: Evaluation need - 3 columns horizontal */
.leadmarkt-evaluation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    width: 100%;
}

.leadmarkt-evaluation-btn {
    padding: 32px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.leadmarkt-evaluation-btn img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.leadmarkt-evaluation-btn span {
    font-size: 16px;
    font-weight: 400;
}

.leadmarkt-evaluation-btn:hover {
    border-color: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.leadmarkt-evaluation-btn.active {
    border-color: #e53e3e;
    background: #fff5f5;
    color: #e53e3e;
}

/* Slider with illustrations */
.leadmarkt-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 800px;
}

.leadmarkt-slider-container,
.leadmarkt-year-container {
    flex: 1;
    max-width: 600px;
}

.leadmarkt-step-illustration {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border-radius: 12px;
    padding: 10px;
}

.leadmarkt-slider-value {
    background: #e53e3e;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 48px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

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

.leadmarkt-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e53e3e;
    cursor: grab;
}

.leadmarkt-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.leadmarkt-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e53e3e;
    cursor: grab;
    border: none;
}

.leadmarkt-slider::-moz-range-thumb:active {
    cursor: grabbing;
}

.leadmarkt-slider-labels {
    display: flex;
    justify-content: space-between;
    color: #718096;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.leadmarkt-input-group {
    display: flex;
    gap: 8px;
}

.leadmarkt-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 16px;
}

.leadmarkt-input-group button {
    padding: 12px 24px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}

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

.leadmarkt-counter-btn {
    width: 56px;
    height: 56px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s;
}

.leadmarkt-counter-btn:hover {
    background: #c53030;
}

.leadmarkt-counter-value {
    text-align: center;
    min-width: 120px;
}

.leadmarkt-counter-number {
    font-size: 36px;
    font-weight: 300;
    color: #2d3748;
}

.leadmarkt-counter-value div:last-child {
    color: #718096;
    margin-top: 4px;
}

.leadmarkt-text-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 16px;
}

.leadmarkt-text-input:focus {
    outline: none;
    border-color: #e53e3e;
}

.leadmarkt-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    width: 100%;
}

.leadmarkt-quality-btn {
    padding: 32px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.leadmarkt-quality-btn img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.leadmarkt-quality-btn:hover {
    border-color: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.leadmarkt-quality-btn.active {
    border-color: #e53e3e;
    background: #fff5f5;
}

.leadmarkt-yesno {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    width: 100%;
}

.leadmarkt-yesno-btn {
    padding: 24px 32px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 300;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.leadmarkt-yesno-btn img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.leadmarkt-yesno-btn:hover {
    border-color: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.leadmarkt-yesno-btn.active {
    border-color: #e53e3e;
    background: #fff5f5;
    color: #e53e3e;
}

/* FIXED: Address layout - inputs LEFT, map RIGHT */
.leadmarkt-location {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
    align-items: start;
}

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

.leadmarkt-location-row {
    display: flex;
    gap: 12px;
}

.leadmarkt-location input {
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 16px;
}

.leadmarkt-location input:focus {
    outline: none;
    border-color: #e53e3e;
}

.leadmarkt-location input:required:invalid {
    border-color: #fc8181;
}

#leadmarkt-map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    background: #f7fafc;
}

.leadmarkt-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 100%;
    max-width: 900px;
}

.leadmarkt-contact-form h3 {
    font-size: 20px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 16px;
}

.leadmarkt-contact-form p {
    color: #718096;
    font-size: 14px;
    margin-bottom: 16px;
}

.leadmarkt-gender {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.leadmarkt-gender label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.leadmarkt-contact-form input[type="text"],
.leadmarkt-contact-form input[type="email"],
.leadmarkt-contact-form input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
}

.leadmarkt-contact-form input:required:invalid {
    border-color: #fc8181;
}

.leadmarkt-contact-form input:focus {
    outline: none;
    border-color: #e53e3e;
}

.leadmarkt-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 24px;
    cursor: pointer;
}

.leadmarkt-consent input {
    margin-top: 4px;
    flex-shrink: 0;
}

.leadmarkt-consent span {
    font-size: 14px;
    color: #718096;
}

.leadmarkt-consent a {
    color: #e53e3e;
    text-decoration: none;
}

.leadmarkt-consent a:hover {
    text-decoration: underline;
}

/* FIXED: Contact images with borders and overlay */
.leadmarkt-contact-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 20px;
}

.leadmarkt-contact-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    border: 4px solid #fbbf24;
    border-radius: 8px;
    overflow: hidden;
}

.leadmarkt-contact-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.leadmarkt-contact-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.leadmarkt-logo-wrapper {
    width: 100%;
    max-width: 320px;
    padding: 20px;
    background: white;
    border: 3px solid #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

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

.leadmarkt-company-name {
    font-size: 24px;
    font-weight: bold;
    color: #2d3748;
}

.leadmarkt-submit-btn {
    padding: 12px 32px;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.leadmarkt-submit-btn:hover:not(:disabled) {
    background: #38a169;
}

.leadmarkt-submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* Responsive styles */
@media (max-width: 768px) {
    .leadmarkt-card {
        padding: 24px;
        min-height: auto;
    }
    
    .leadmarkt-type-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .leadmarkt-type-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .leadmarkt-slider-wrapper {
        flex-direction: column;
    }
    
    .leadmarkt-step-illustration {
        width: 120px;
        height: 120px;
    }
    
    .leadmarkt-evaluation-grid {
        grid-template-columns: 1fr;
    }
    
    .leadmarkt-quality-grid {
        grid-template-columns: 1fr;
    }
    
    .leadmarkt-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .leadmarkt-location {
        grid-template-columns: 1fr;
    }
}
