/*
Theme Name: Hello Elementor Child
Theme URI: https://example.com/
Description: Child theme voor Hello Elementor
Author: Webdelta
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* Eigen CSS hieronder */

/* ===== CYCLE TOGGLE — Facturatie (#field_1_3) ===== */

#field_1_3 {
    width: 100% !important;          /* overrule gfield--width-half */
    max-width: none;
    padding: 0;
    margin: 0 0 28px;
    border: 0;
}

#field_1_3 > .gfield_label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 10px;
}

#field_1_3 .ginput_container,
#field_1_3 .gfield_radio { margin: 0; }

#field_1_3 .gfield_radio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #f4f4f2;
    border-radius: 12px;
    padding: 6px;
}

#field_1_3 .gchoice { margin: 0; padding: 0; }

/* Native radio: visueel verbergen, niet uitschakelen */
#field_1_3 .gfield-choice-input {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* De pill zelf */
#field_1_3 .gchoice label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
    background: transparent;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    user-select: none;
    line-height: 1.2;
    min-height: 64px;
}

#field_1_3 .gfield-choice-input:not(:checked) + label:hover { color: #0b1229; }

/* Geselecteerd = witte card met subtiele schaduw */
#field_1_3 .gfield-choice-input:checked + label {
    background: #fff;
    color: #0b1229;
    box-shadow: 0 1px 3px rgba(11,18,41,.10), 0 1px 2px rgba(11,18,41,.04);
}

#field_1_3 .gfield-choice-input:focus-visible + label {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Subtekst onder hoofdtekst — via value-selectors zodat volgorde
   in GF mag schuiven zonder dat de CSS breekt */
#field_1_3 input[value="monthly"] + label::after {
    content: "Flexibel";
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #1D9E75;
}

#field_1_3 input[value="yearly"] + label::after {
    content: "Meest gekozen";
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

/* -20% badge in de yearly-pill, rechtsboven */
#field_1_3 input[value="yearly"] + label::before {
    content: "-20%";
    position: absolute;
    top: 10px;
    right: 12px;
    background: #1D9E75;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.4;
}