/* Voting.css - Stylische Radio-Buttons und Checkboxen */

/* Grundlegende Formularstile */
.com-bvkunst-voting {
    max-width: 800px;
    margin: 0 auto;
}

.voting-form-group {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.voting-form-group h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.voting-form-field {
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
}

/* Container für Radio-Buttons und Checkboxen */
.custom-control {
    display: block;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

/* Verstecken des originalen Inputs */
.custom-control input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Der gemeinsame Indikator (Kreis/Quadrat) */
.control-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #fff;
    border: 2px solid #ccc;
    transition: all 0.2s ease;
}

/* Radio-Button (rund) */
.radio .control-indicator {
    border-radius: 50%;
}

/* Checkbox (eckig) */
.checkbox .control-indicator {
    border-radius: 4px;
}

/* Hover-Effekt */
.custom-control:hover input ~ .control-indicator {
    border-color: #0066cc;
}

/* Ausgewählter Zustand */
.custom-control input:checked ~ .control-indicator {
    border-color: #0066cc;
}

/* Der Punkt in Radio-Buttons */
.radio input:checked ~ .control-indicator:after {
    content: "";
    position: absolute;
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #0066cc;
    top: 4px;
    left: 4px;
}

/* Das Häkchen in Checkboxen */
.checkbox input:checked ~ .control-indicator::after {
    content: "";
    position: absolute;
    display: block;
    left: 8px;
    top: -9px;
    width: 14px;
    height: 26px;
    border: solid #0066cc;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}





/* Fokus-Zustand */
.custom-control input:focus ~ .control-indicator {
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25);
}

/* Submit-Button */
.voting-buttons {
    margin-top: 2rem;
}

.voting-buttons .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Responsive Anpassungen */
@media (max-width: 767px) {
    .custom-control {
        padding-left: 2.75rem;
    }

    .control-indicator {
        height: 30px;
        width: 30px;
    }

    .radio input:checked ~ .control-indicator:after {
        width: 18px;
        height: 18px;
    }

    .checkbox input:checked ~ .control-indicator::after {
        left: 12px;
        top: -10px;
        width: 17px;
        height: 30px;
    }

    .voting-form-field {
        margin-bottom: 1.5rem;
    }
}