:root{
        --m-primary:#30252C; --m-primary-hover:#1F1820;
        --m-ink:#2C242A; --m-ink-soft:#5C5058; --m-ink-mute:#8B8088;
        --m-accent-dark:#6B5D52; --m-love-dark:#6D5375;
        --m-paper:#FFFFFF; --m-warm-1:#FCFAF5; --m-warm-2:#F8F2E7;
        --m-warm-3:#F5F1E8; --m-rule:#E4DCCD;
    }

    /* ---- warme pagina-achtergrond ---- */
    html body{ background:var(--m-warm-1) !important; color:var(--m-ink) !important; }
    html body #wrapper{ background:transparent !important; }
    html body .page-content{ background:transparent !important; padding-bottom:2.5rem !important; }

    /* ---- intro/hero (page-header) ---- */
    html body .page-header{
        background:transparent !important; border:none !important;
        margin:0 !important; padding:2.5rem 0 .75rem !important;
    }
    html body .page-header > .container{ max-width:1040px !important; }
    html body h1.page-title.pull-left{
        font-family:'Poppins',sans-serif !important;
        font-size:2.25rem !important; line-height:1.12 !important;
        font-weight:700 !important; color:var(--m-primary) !important;
        letter-spacing:-.025em !important; margin:0 0 .35rem -15px !important;
        padding-left:0 !important;
        text-transform:none !important; float:none !important;
    }

    html body .page-content > .container{
        max-width:1040px !important;
        background:var(--m-paper) !important;
        border:1px solid var(--m-rule) !important;
        border-radius:16px !important;
        box-shadow:0 4px 22px rgba(48,37,44,.07), 0 1px 3px rgba(48,37,44,.05) !important;
        padding:2.75rem 3rem 1rem !important;
        margin-left:auto !important; margin-right:auto !important;
    }
    @media (max-width:720px){
        html body .page-content > .container{
            padding:2rem 1.25rem 1rem !important;
            border-radius:12px !important;
        }
    }

    html body label.control-label.alles_over_je_huisdier,
    html body .alles_over_je_huisdier{
        display:block !important;
        font-family:'Poppins',sans-serif !important;
        font-size:1.3rem !important; line-height:1.15 !important;
        font-weight:700 !important;
        color:var(--m-primary) !important;
        letter-spacing:-.015em !important;
        text-align:left !important; text-transform:none !important;
        margin:0 0 1rem 0 !important; padding:1.4rem 0 .7rem 0 !important;
        border-top:1px solid var(--m-rule) !important;
        position:relative !important; width:100% !important; float:none !important;
    }
    html body label.control-label.alles_over_je_huisdier::before,
    html body .alles_over_je_huisdier::before{ content:none !important; display:none !important; }
    html body label.control-label.alles_over_je_huisdier{ padding-top:1.5rem !important; }
    /* eerste sectiekop (Profiel) zonder bovenrand/extra ruimte */
    html body label.control-label.alles_over_je_huisdier.profiel{
        border-top:none !important; padding-top:.25rem !important; margin-top:0 !important;
    }
    html body label.control-label.alles_over_je_huisdier.profiel::before{ top:.25rem !important; }
    html body .editprofileform .form-group > .col-md-12 > label.alles_over_je_huisdier{ margin-left:0 !important; }

    html body .editprofileform .form-group{
        margin:0 0 .8rem 0 !important;
        display:block !important;
    }
    html body .editprofileform .form-group::after{ content:''; display:table; clear:both; }

    /* alle kolommen full-width + niet floaten → label boven veld */
    html body .editprofileform .form-group > .col-md-5,
    html body .editprofileform .form-group > .col-md-6,
    html body .editprofileform .form-group > .col-md-7,
    html body .editprofileform .form-group > .col-md-12,
    html body .editprofileform > .col-md-12 > .form-group > .col-md-5,
    html body .editprofileform > .col-md-12 > .form-group > .col-md-6,
    html body .editprofileform > .col-md-12 > .form-group > .col-md-7{
        float:none !important; width:100% !important;
        max-width:640px !important;
        padding-left:0 !important; padding-right:0 !important;
    }

    /* veld-LABELS (de col-md-6 die als label fungeert) */
    html body .editprofileform label.control-label.col-md-5,
    html body .editprofileform label.control-label.col-md-6,
    html body .editprofileform label.control-label.col-md-7{
        display:block !important;
        font-family:'Inter',sans-serif !important;
        font-size:.95rem !important; font-weight:600 !important;
        color:var(--m-ink) !important;
        text-align:left !important;
        padding:0 0 .45rem 0 !important; margin:0 !important;
        line-height:1.4 !important; float:none !important; width:100% !important;
        max-width:640px !important;
    }
    /* sub-tekstjes binnen labels rustiger */
    html body .mooiste_foto,
    html body .schatting,
    html body .desc_profiel{
        font-family:'Inter',sans-serif !important;
        font-weight:400 !important; color:var(--m-ink-mute) !important;
        font-size:.83rem !important; line-height:1.45 !important;
    }

    /* tekst-velden / selects / textarea: vullen de kolom, nette hoogte */
    html body .editprofileform input[type=text],
    html body .editprofileform input[type=email],
    html body .editprofileform input[type=number],
    html body .editprofileform input[type=tel],
    html body .editprofileform input[type=url],
    html body .editprofileform input[type=password],
    html body .editprofileform input[type=date],
    html body .editprofileform select,
    html body .editprofileform textarea,
    html body .editprofileform .form-control{
        width:100% !important; max-width:520px !important;
        min-height:46px !important;
        padding:.6rem .85rem !important;
        font-family:'Inter',sans-serif !important; font-size:.95rem !important;
    }
    html body .editprofileform textarea,
    html body .editprofileform textarea.form-control{ min-height:120px !important; height:auto !important; }
    /* overschrijf de legacy krimp-breedtes zodat velden de kaartkolom mooi vullen */
    html body .textbox_width,
    html body .profile_width,
    html body .image_width{ max-width:520px !important; }

    /* multiselect-dropdown net zo breed als de andere velden */
    html body .editprofileform .btn-group > .btn:first-child.multiselect,
    html body .multiselect-native-select .btn-group .multiselect{
        max-width:520px !important; width:100% !important;
        border:1px solid var(--m-rule) !important; border-radius:10px !important;
    }

    html body .editprofileform .diersoort_radio,
    html body .editprofileform .bevestiging{
        padding-top:.15rem !important;
    }
    html body .editprofileform .diersoort_radio label.css-label2,
    html body .editprofileform .diersoort_radio label.css-label{
        margin-bottom:.3rem !important;
    }

    /* scheidingslijn tussen velden subtiel + compact (pagina niet onnodig lang) */
    html body .editprofileform hr.divider{
        border:0 !important; border-top:1px solid var(--m-rule) !important;
        margin:.85rem 0 .85rem 0 !important; opacity:.7 !important;
    }

    html body .align_tips{
        margin:1.25rem 0 1.5rem 0 !important;
        background:var(--m-warm-2) !important;
        border:1px solid var(--m-rule) !important;
        border-radius:14px !important;
        color:var(--m-ink-soft) !important;
        padding:1.15rem 1.35rem !important;
        font-family:'Inter',sans-serif !important; font-size:.92rem !important;
    }
    html body .align_tips .title_tips,
    html body .align_tips .semi_bold{
        font-family:'Poppins',sans-serif !important;
        color:var(--m-primary) !important; font-weight:700 !important;
    }
    html body .semi_bold{ color:var(--m-primary) !important; }

    html body .editprofileform .btn-primary.submit_align,
    html body [id^="submit-"]{
        display:inline-flex !important; align-items:center !important; gap:.6rem !important;
        margin-top:.5rem !important; float:none !important;
        padding:.85rem 2rem !important;
        font-family:'Inter',sans-serif !important; font-weight:600 !important;
        font-size:.95rem !important; border-radius:999px !important;
    }
    html body [id^="submit-"] .label[class*="buttonlabel"]{
        font-family:'Inter',sans-serif !important; font-size:.95rem !important;
        font-weight:600 !important; margin-top:0 !important; top:0 !important;
    }
    html body .btn-primary.submit_align{ padding-left:2rem !important; padding-right:2rem !important; }
    html body .btn-primary.submit_align .label.buttonlabel{ margin-right:0 !important; margin-left:0 !important; }

    html body .stepper{
        --brand:#30252C !important;          /* done/current → primary-dark */
        --muted:#E4DCCD !important;           
        border:1px solid var(--m-rule) !important;
        border-radius:14px !important;
        box-shadow:0 4px 18px rgba(48,37,44,.06) !important;
    }
    html body .stepper .step .title_step{
        font-family:'Poppins',sans-serif !important;
        color:var(--m-primary) !important;
    }
    html body .stepper .step.todo .title_step{ color:var(--m-ink-mute) !important; }
    html body .stepper .step .desc_step{
        font-family:'Inter',sans-serif !important;
        color:var(--m-ink-mute) !important;
    }

    html body .page-content > .container form .form-group{ margin:0 0 .85rem 0 !important; }
    html body .page-content > .container form [class*="col-md-"]{
        float:none !important; width:100% !important;
        padding-left:0 !important; padding-right:0 !important; margin-left:0 !important;
    }
    html body .page-content > .container form .grid{ margin-left:0 !important; }
    html body .page-content > .container .form-group.profielbeschrijving{ margin-left:0 !important; }
    html body .page-content > .container .punten_width{ margin-left:0 !important; padding-left:0 !important; }
    html body .page-content > .container .thankyou-message{ padding-left:0 !important; }
    html body .page-content > .container .title{ margin-left:0 !important; padding-left:0 !important; text-indent:0 !important; }

    html body .css-label .akkoord_text,
    html body .css-label span[class*="akkoord"]{
        color:var(--m-ink) !important;
        font-family:'Inter',sans-serif !important;
        font-weight:500 !important;
    }

    html body .page-content > .container form label[class="col-md-5"],
    html body .page-content > .container form label[class="col-md-6"]{ display:none !important; }
    /* overtollige <br>'s rond de legenda (tip-box → legenda) inkorten */
    html body .page-content > .container .punten_width .voorkeuren_div ~ br{ display:none !important; }

    html body .page-content > .container .thankyou-message h4 br{ display:none !important; }
    html body .page-content > .container .thankyou-message h4,
    html body .page-content > .container .form-group.profielbeschrijving > h4{
        margin:0 0 .5rem 0 !important;
        font-size:1.3rem !important;                /* iets kleiner; gelijk aan stap1 */
        text-decoration:underline !important;         /* gelijk aan stap1 (onderstreept) */
        text-underline-offset:.15em !important;
    }
    /* DEZELFDE sectie-gap boven ELKE sectiekop-form-group */
    html body .page-content > .container form .form-group:has(> .thankyou-message > h4),
    html body .page-content > .container form .form-group.profielbeschrijving{ margin-top:2.5rem !important; }
    /* lege .col-md náást een sectiekop neemt een regel → weg */
    html body .page-content > .container .thankyou-message > [class*="col-md-"]:empty{ display:none !important; }
    html body .page-content > .container form > br{ display:none !important; }
    html body .page-content > .container .checkbox_align_nietaanwezig ~ br{ display:none !important; }
    html body .page-content > .container .punten_width:has(.grid) + br{ display:none !important; }
    html body .page-content > .container br:has(+ .form-group){ display:none !important; }
    html body .page-content > .container form [class*="col-md-"] > br:first-child{ display:none !important; }
    html body .page-content > .container .punten_width:has(.buttons_legenda){ margin-bottom:1.5rem !important; }

    /* stepper meer naar links (page-eigen margin-left:14px → 0) */
    html body .page-content .stepper{ margin-left:0 !important; }
    /* extra ruimte tussen de JA/NEE-switch en de (conditionele) opties eronder */
    html body #rugzakheld_opties{ margin-top:1.4rem !important; }
    /* matching-vraag-label vol-breed → tekst op één regel */
    html body .checkbox_title.col-md-6,
    html body .control-label.checkbox_title{
        max-width:none !important; width:100% !important; float:none !important;
        font-family:'Inter',sans-serif !important; font-weight:600 !important;
        color:var(--m-ink) !important; font-size:.97rem !important;
        text-align:left !important; margin:0 0 .5rem 0 !important;
    }
    html body .checkbox_title .short_desc{
        display:block !important; color:var(--m-ink-mute) !important;
        font-weight:400 !important; font-size:.85rem !important;
    }

    /* ---- JA/NEE-switch (.switch-input) → palette ---- */
    html body .switch-input input:checked + i{
        background-color:var(--m-primary) !important; border-color:var(--m-primary) !important;
    }
    html body .switch-input input:checked + i:before{ background-color:#FFFFFF !important; }

    html body #reviewStars-input label{
        background:#F0EADF !important; background-image:none !important;
        border:1px solid var(--m-rule) !important; border-radius:7px !important;
        color:var(--m-ink-mute) !important; width:auto !important; height:auto !important;
        overflow:hidden !important; margin-right:4px !important;
        padding:0 !important;                 /* kill inline padding-right:50px op '5' → alle blokjes gelijk */
    }
    /* 'N' (Noodzakelijk, eerste label in DOM) iets losser van de 1-5-schaal */
    html body #reviewStars-input label:first-of-type{ margin-left:14px !important; }
    html body #reviewStars-input label > div,
    html body #reviewStars-input .checkbox_label{
        background:transparent !important; color:inherit !important; width:auto !important;
        text-align:center !important; padding:7px 13px !important;
        font-family:'Inter',sans-serif !important; font-weight:600 !important;
    }
    html body #reviewStars-input input:checked ~ label{
        background:var(--m-primary) !important; border-color:var(--m-primary) !important; color:#FFFFFF !important;
    }
    html body #reviewStars-input label:hover,
    html body #reviewStars-input label:hover ~ label{
        background:var(--m-accent-dark) !important; border-color:var(--m-accent-dark) !important; color:#FFFFFF !important;
    }

    html body .buttons_legenda{
        display:flex !important; width:-moz-fit-content !important; width:fit-content !important;
        align-items:stretch !important; margin:0 0 7px 0 !important;
        font-family:'Inter',sans-serif !important; font-size:.82rem !important;
        letter-spacing:.03em !important; line-height:1 !important;
    }
    html body .buttons_legenda img{ display:none !important; }
    html body .buttons_legenda::before{
        background:var(--m-primary) !important; color:#fff !important; font-weight:700 !important;
        min-width:2rem !important; padding:9px 4px !important;
        border-radius:6px 0 0 6px !important;
        display:flex !important; align-items:center !important; justify-content:center !important;
    }
    html body .buttons_legenda::after{
        background:var(--m-accent-dark) !important; color:#fff !important; font-weight:600 !important;
        padding:9px 16px !important; border-radius:0 6px 6px 0 !important;
        display:flex !important; align-items:center !important;
    }
    html body .buttons_legenda:has(img[src*="1_onbelangrijk"])::before{ content:"1" !important; }
    html body .buttons_legenda:has(img[src*="1_onbelangrijk"])::after{ content:"ONBELANGRIJK" !important; }
    html body .buttons_legenda:has(img[src*="3_neutraal"])::before{ content:"3" !important; }
    html body .buttons_legenda:has(img[src*="3_neutraal"])::after{ content:"NEUTRAAL" !important; }
    html body .buttons_legenda:has(img[src*="5_erg_belangrijk"])::before{ content:"5" !important; }
    html body .buttons_legenda:has(img[src*="5_erg_belangrijk"])::after{ content:"ERG BELANGRIJK" !important; }
    html body .buttons_legenda:has(img[src*="n_noodzakelijk"])::before{ content:"N" !important; }
    html body .buttons_legenda:has(img[src*="n_noodzakelijk"])::after{ content:"NOODZAKELIJK" !important; }

    /* ---- afronding: lege spacer-labels weg → submit-knop dicht op laatste optie ---- */
    html body .page-content > .container form .form-group > label.control-label:empty,
    html body .page-content > .container form .form-group > label[class*="col-md-"]:empty{
        display:none !important; padding:0 !important; margin:0 !important;
    }

    html body .title{ color:var(--m-ink-soft) !important; }
    html body .emergency{ color:var(--m-love-dark) !important; }
    html body .modal-title{ color:var(--m-primary) !important; }
    html body .video_uitleg{ color:var(--m-love-dark) !important; }
    html body .icon_color{ color:var(--m-love-dark) !important; }

    html body .page-content .thankyou-message h1,
    html body .page-content .thankyou-message h2,
    html body .page-content .thankyou-message h3,
    html body .page-content .thankyou-message h4,
    html body .page-content > .container h4:not(.modal-title),
    html body .page-content > .container h3:not(.title):not(.modal-title){
        color:var(--m-primary) !important;
        font-family:'Poppins',sans-serif !important;
        font-weight:700 !important;
    }
    /* rode <font color="#c30037">-accenten ("N", "noodzakelijk") → love-dark */
    html body .page-content font[color="#c30037"]{ color:var(--m-love-dark) !important; }
    html body .page-content [style*="color:#c30037"],
    html body .page-content [style*="color: #c30037"]{ color:var(--m-love-dark) !important; }

    /* "Rassenlijst opnieuw laden"-knop in palette-tinten */
    html body #ras_herladen_btn{ color:var(--m-ink-mute) !important; }
    html body #ras_herladen_btn:hover{ color:var(--m-primary) !important; }

    /* het datumveld blijft wit + klikbaar (palette2-forms regelt dit ook) */
    html body input.color-datepicker{ max-width:520px !important; }

@media (max-width: 640px){
    /* paper-kaart compact + symmetrisch (links=rechts) */
    html body .page-content > .container{ padding:1.5rem 1.1rem 1rem !important; border-radius:14px !important; }
    /* stepper compact: symmetrisch, lange omschrijving verbergen, kleinere titels */
    html body .stepper{ margin-left:0 !important; margin-right:0 !important; gap:7px !important; padding:9px 11px !important; }
    html body .stepper .desc_step{ display:none !important; }
    html body .stepper .step .title_step{ font-size:12px !important; }
    html body .stepper .step{ min-width:0 !important; }
    /* alle velden vol-breed (de max-width-caps mogen mobiel weg) */
    html body .editprofileform .form-control,
    html body .editprofileform input, html body .editprofileform select, html body .editprofileform textarea,
    html body input.color-datepicker, html body .amsify-suggestags-area{ max-width:100% !important; }
    /* submit-knop vol-breed → fijn tikbaar */
    html body [id^="submit-"], html body .btn-primary.submit_align{ width:100% !important; justify-content:center !important; padding:.95rem 1.5rem !important; }
    /* sectiekoppen + intro iets kleiner op mobiel */
    html body label.control-label.alles_over_je_huisdier{ font-size:1.4rem !important; }
    html body h1.page-title.pull-left{ font-size:1.35rem !important; margin-left:0 !important; }
}

/* stop-paneel iets omhoog: minder ruimte boven in de kaart */
body:has(#stopPanel) .page-content > .container{ padding-top:1.5rem !important; }
html body #stopPanel ~ .stepper{ margin-top:1rem !important; }
html body #btnVerwijderAanmelding{
    display:inline-flex !important; align-items:center !important; justify-content:center !important;
    background:var(--m-primary) !important; color:#fff !important;
    border:1px solid var(--m-primary) !important; border-radius:999px !important;
    padding:.62rem 1.5rem !important;
    font-family:'Poppins',sans-serif !important; font-weight:600 !important; font-size:.9rem !important;
    line-height:1.2 !important; box-shadow:none !important; text-transform:none !important;
    transition:background .15s ease !important;
}
html body #btnVerwijderAanmelding:hover,
html body #btnVerwijderAanmelding:focus{ background:var(--m-primary-hover) !important; color:#fff !important; }
