.kenteken-field-wrapper {
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.kenteken-wrapper {
    display: inline-flex;
    align-items: stretch;
    border: 3px solid #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 220px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ========================================
   EU STRIPE (BLUE SECTION WITH NL)
   ======================================== */

.kenteken-eu-stripe {
    background: linear-gradient(180deg, #003399 0%, #002266 100%);
    width: 40px;
    min-width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    flex-shrink: 0;
}

.kenteken-eu-stripe .stars {
    width: 24px;
    height: 24px;
    border: 2px solid #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    position: relative;
}

.kenteken-eu-stripe .stars::before {
    content: '★';
    color: #FFD700;
    font-size: 10px;
    position: absolute;
}

.kenteken-eu-stripe .country-code {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

/* ========================================
   KENTEKEN INPUT FIELD (YELLOW)
   ======================================== */

.kenteken-input {
    background: #F1BD2A !important;
    border: none !important;
    padding: 10px 15px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: #1e1e1e !important;
    width: 100% !important;
    flex: 1;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 5px 5px 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.kenteken-input::placeholder {
    color: #8a7a40 !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
}

.kenteken-input:focus {
    background: #F5C73A !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ========================================
   SEARCH BUTTON
   ======================================== */

/* Haal gegevens op button - shown below kenteken field */
.kenteken-button {
    background: #084078;
    border: none;
    color: white;
    padding: 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    line-height: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
    border-radius: 8px;
    margin-top: 0;
    width: 220px;
    max-width: 220px;
}

.kenteken-button:hover {
    background: #063059;
    transform: translateY(-1px);
}

.kenteken-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.kenteken-button-text {
    white-space: nowrap;
}

/* ========================================
   ICONS
   ======================================== */

.kenteken-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.kenteken-icon-loading {
    animation: kenteken-spin 1s linear infinite;
}

@keyframes kenteken-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   STATUS STATES
   ======================================== */

/* Loading state */
.kenteken-wrapper.loading {
    border-color: #1976D2;
}

.kenteken-wrapper.loading .kenteken-input {
    background: #E3F2FD !important;
}

/* Success state */
.kenteken-wrapper.success {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Error state */
.kenteken-wrapper.error {
    border-color: #E53935;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

/* ========================================
   STATUS MESSAGE
   ======================================== */

.kenteken-status-message {
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
}

.kenteken-status-message.error {
    color: #C62828;
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
}

.kenteken-status-message.success {
    color: #2E7D32;
    background: #fff;
    border: 1px solid #C8E6C9;
}

/* ========================================
   RDW DATA FIELDS (READONLY)
   ======================================== */

.rdw-field,
[class*="rdw-field"],
input[readonly].rdw-field {
    background-color: #F5F5F5 !important;
    border: 1px solid #E0E0E0 !important;
    color: #333 !important;
    cursor: default !important;
}

.rdw-field-filled,
input[readonly].rdw-field-filled {
    background-color: #fff !important;
    border-color: #A5D6A7 !important;
}

/* Field labels styling */
.rdw-field-group {
    margin-bottom: 15px;
}

.rdw-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

/* ========================================
   VEHICLE INFO GRID
   ======================================== */

.vehicle-info-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 15px;
    align-items: center;
    padding: 20px;
    background: #FAFAFA;
    border-radius: 8px;
    margin: 15px 0;
}

.vehicle-info-grid label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.vehicle-info-grid input {
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 4px;
}

/* ========================================
   MULTI-STEP FORM
   ======================================== */

.form-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E0E0E0;
}

/* Step navigation buttons */
.prev-step,
.next-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 10px 5px 10px 0;
}

.prev-step {
    background: #F5F5F5;
    color: #333;
}

.prev-step:hover {
    background: #E0E0E0;
}

.next-step {
    background: #084078;
    color: white;
}

.next-step:hover {
    background: #0a5299;
}

/* Volgende button in step 2 - full width in right column */
.step-column-right .next-step {
    width: 100% !important;
    max-width: 350px !important;
    justify-content: center;
    margin-top: 20px;
    padding: 14px 30px;
    font-size: 16px;
    box-sizing: border-box !important;
}

/* ========================================
   STEP INDICATORS
   ======================================== */

.step-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
}

.step-indicator.active {
    color: #1976D2;
}

.step-indicator.completed {
    color: #4CAF50;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E0E0E0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-indicator.active .step-number {
    background: #1976D2;
    color: white;
}

.step-indicator.completed .step-number {
    background: #4CAF50;
    color: white;
}

/* ========================================
   FEATURES LIST (CHECKMARKS)
   ======================================== */

.kenteken-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.kenteken-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #555;
}

.kenteken-features li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (≤768px) - kolommen als sub-stappen */
@media (max-width: 768px) {
    .step-two-columns {
        flex-direction: column !important;
        gap: 20px !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    .step-two-columns > .step-column-left,
    .step-two-columns > .step-column-right {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }

    /* Mobile substep buttons visible on tablet too */
    .mobile-next-substep,
    .mobile-prev-substep {
        display: block !important;
    }

    /* Hide vehicle summary in step 3 on mobile */
    [data-step="3"] .step-column-left {
        display: none !important;
    }

    [data-step="3"] .step-column-right {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    /* Kenteken wrapper - NL links, uitgelijnd links */
    .kenteken-wrapper {
        flex-direction: row !important;
        max-width: 80% !important;
        width: 80% !important;
    }

    .kenteken-eu-stripe {
        width: 40px !important;
        min-width: 40px !important;
        flex-direction: column !important;
        padding: 6px 4px !important;
        flex-shrink: 0 !important;
    }

    .kenteken-eu-stripe .stars {
        margin-bottom: 4px;
        margin-right: 0;
    }

    .kenteken-input {
        flex: 1 !important;
        min-width: 0 !important;
        border-radius: 0 5px 5px 0 !important;
    }

    .kenteken-button {
        max-width: 80% !important;
        width: 80% !important;
        justify-content: center;
        border-radius: 8px !important;
    }

    .kenteken-field-wrapper {
        align-items: flex-start !important;
    }

    .vehicle-info-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-info-grid label {
        margin-bottom: 2px;
    }

    .prev-step,
    .next-step {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }

    /* Mobile: kolommen als sub-stappen */
    .step-two-columns {
        flex-direction: column !important;
        gap: 20px !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    .step-two-columns > .step-column-left,
    .step-two-columns > .step-column-right {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .step-column-left h4,
    .step-column-right h4 {
        font-size: 16px !important;
    }

    .vehicle-info-item input {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
    }

    .vehicle-info-item label {
        font-size: 14px !important;
    }

    .sleutel-opties label {
        font-size: 16px !important;
        padding: 12px 16px !important;
    }

    .sleutel-opties .wpcf7-list-item {
        margin-bottom: 12px !important;
    }

    /* Mobile substep buttons */
    .mobile-next-substep {
        display: block !important;
        background: #084078 !important;
        color: white !important;
        border: none !important;
        padding: 14px 30px !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        width: 100% !important;
        margin-top: 20px !important;
    }

    .mobile-next-substep:hover {
        background: #0a5299 !important;
    }

    .mobile-prev-substep {
        display: block !important;
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        padding: 10px 0 !important;
        font-size: 14px !important;
        text-align: left !important;
        cursor: pointer !important;
    }

    .vehicle-info-item {
        flex-direction: row;
        justify-content: space-between;
    }

    .vehicle-info-item label {
        font-size: 16px;
    }

    .vehicle-info-item input {
        font-size: 16px !important;
        text-align: right !important;
    }

    /* CF7 form fields - links uitgelijnd op mobile */
    .wpcf7-form-control-wrap {
        display: block !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        max-width: 80% !important;
    }

    /* Submit button - links uitgelijnd op mobile */
    .wpcf7-form input[type="submit"],
    .wpcf7-submit {
        display: block !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        max-width: 80% !important;
        width: 80% !important;
    }

    /* Next button step 2 - links uitgelijnd op mobile */
    .step-column-right .next-step {
        display: block !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        max-width: 80% !important;
        width: 80% !important;
    }

    /* Section title streep - 80% breedte op mobile */
    .step-column-right h4,
    .step-column-right .section-title {
        max-width: 80% !important;
    }
}

/* ========================================
   CF7 INTEGRATION OVERRIDES
   ======================================== */

.wpcf7 .kenteken-field-wrapper {
    margin-bottom: 1.5em;
}

.wpcf7 .kenteken-wrapper .wpcf7-not-valid {
    background: #FFEBEE !important;
}

.wpcf7 .kenteken-field-wrapper .wpcf7-not-valid-tip {
    display: block;
    margin-top: 8px;
    color: #C62828;
    font-size: 14px;
}

/* ========================================
   DARK MODE SUPPORT (OPTIONAL)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .kenteken-wrapper {
        border-color: #333;
    }

    .vehicle-info-grid {
        background: #2a2a2a;
    }

    .vehicle-info-grid label {
        color: #ccc;
    }

    .rdw-field,
    [class*="rdw-field"],
    input[readonly].rdw-field {
        background-color: #333 !important;
        border-color: #444 !important;
        color: #eee !important;
    }
}

/* ========================================
   TWO-COLUMN LAYOUT STEP 2
   ======================================== */

.step-two-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 150px !important;
    justify-content: center !important;
    width: 100% !important;
    align-items: flex-start !important;
}

/* Hide mobile next substep button on desktop (back button stays visible) */
.mobile-next-substep {
    display: none !important;
}

/* Back button visible on all screen sizes */
.mobile-prev-substep {
    display: block !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 0 !important;
    font-size: 14px !important;
    text-align: left !important;
    cursor: pointer !important;
    margin-bottom: 15px !important;
}

.mobile-prev-substep:hover {
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .mobile-next-substep {
        display: block !important;
    }
}

.step-two-columns > .step-column-left {
    flex: 0 0 150px !important;
    width: 150px !important;
    max-width: 150px !important;
    min-width: 150px !important;
}

.step-two-columns > .step-column-right {
    flex: 0 0 350px !important;
    width: 350px !important;
    max-width: 350px !important;
    min-width: 350px !important;
}

.step-column-left h4,
.step-column-left .section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.step-column-right h4,
.step-column-right .section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

/* Vehicle info styling - Compact row layout */
.vehicle-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 6px 0;
}


.vehicle-info-item label {
    font-weight: 500;
    font-size: 18px;
    color: #333;
}

.vehicle-info-item input {
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding: 4px 0 !important;
    font-size: 18px !important;
    width: 200px !important;
    max-width: 200px !important;
}

/* Center the vehicle info column content vertically */
.step-column-left .vehicle-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Radio options styling */
.sleutel-opties {
    margin: 10px 0 20px 0;
    padding-left: 0 !important;
}

.sleutel-opties .wpcf7-radio {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.sleutel-opties .wpcf7-list-item {
    display: block;
    margin-bottom: 20px;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.sleutel-opties label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1.4;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #000 !important;
}

.sleutel-opties .wpcf7-list-item-label {
    color: #000 !important;
}

.sleutel-opties label:hover {
    background: #f5f5f5;
    border-color: #084078;
}

.sleutel-opties input[type="radio"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    accent-color: #084078;
}

.sleutel-opties input[type="radio"]:checked + .wpcf7-list-item-label,
.sleutel-opties label:has(input[type="radio"]:checked) {
    background: #f0f4f8;
    border-color: #084078;
}

/* Personal info fields */
.personal-field {
    margin-bottom: 15px;
}

.personal-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.personal-field input,
.personal-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background: #fff;
}

.personal-field input:focus,
.personal-field textarea:focus {
    border-color: #1976D2;
    outline: none;
}

.personal-field textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit button styling */
.step-submit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
}

.step-submit input[type="submit"],
.step-submit .wpcf7-submit {
    background: #1976D2 !important;
    color: white !important;
    border: none !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.step-submit input[type="submit"]:hover,
.step-submit .wpcf7-submit:hover {
    background: #1565C0 !important;
}

/* Submit button in step-column-right (step 3) */
.step-column-right input[type="submit"],
.step-column-right .wpcf7-submit {
    width: 100%;
    background: #084078 !important;
    color: white !important;
    border: none !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 20px;
}

.step-column-right input[type="submit"]:hover,
.step-column-right .wpcf7-submit:hover {
    background: #0a5299 !important;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .kenteken-button {
        display: none;
    }

    .kenteken-wrapper {
        border: 2px solid #000;
        box-shadow: none;
    }

    .prev-step,
    .next-step {
        display: none;
    }
}

/* ========================================
   WHITE LABELS FOR DARK SECTIONS
   ======================================== */

/* Labels wit maken voor kenteken formulier */
.kenteken-field-wrapper label,
.wpcf7 label,
.wpcf7 .wpcf7-form label {
    color: #ffffff !important;
}

/* Labels wit in donkere sectie */
.elementor-section.elementor-section-dark label,
.elementor-widget-shortcode label {
    color: #ffffff !important;
}

/* ========================================
   STEP 3 - UW GEGEVENS STYLING
   ======================================== */

/* Margin bottom for "Uw gegevens" heading */
.wpcf7-form h4,
[data-step="3"] h4,
.form-step h4 {
    margin-bottom: 20px !important;
}

/* Gap between label and input field */
.wpcf7-form p {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 10px;
}

/* Generic back button styling for CF7 forms */
.wpcf7-form button[type="button"]:first-of-type {
    margin-bottom: 15px;
}
