/* Form wrapper */
/* Section headings */
#viadev_inschrijving_form h3 { 
    border-bottom:2px solid #0698fe; 
    padding-bottom:8px; 
    margin-bottom:20px; 
    color:#333; 
    font-size:20px; 
}

/* Inputs, selects, textareas */
#viadev_inschrijving_form input,
#viadev_inschrijving_form select,
#viadev_inschrijving_form textarea { 
    width:100%; 
    padding:12px; 
    margin-bottom:15px; 
    border:1px solid #ccc; 
    border-radius:8px; 
    font-size:15px; 
    transition:0.2s; 
    box-sizing:border-box;
}
#viadev_inschrijving_form input:focus,
#viadev_inschrijving_form select:focus,
#viadev_inschrijving_form textarea:focus { 
    border-color:#0698fe; 
    outline:none; 
    box-shadow:0 0 6px rgba(6,152,254,0.4);
}

/* Abonnement group */
.abonnement-group {
    margin-bottom: 15px;
    padding-left: 10px;
}

/* Aantal personen/pasjes inputs */
#viadev_inschrijving_form .aantal-personen,
#viadev_inschrijving_form .aantal-pasjes {
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    display: block !important;
    box-sizing: border-box;
}

/* Extra sessions dropdown */
#viadev_inschrijving_form .extra-sessions {
    width: auto;
    margin-left: 10px;
    display: inline-block;
}

/* Fieldsets */
#viadev_inschrijving_form fieldset { 
    margin-bottom:25px; 
    border:1px solid #eee; 
    padding:20px; 
    border-radius:10px; 
    background:#fafafa; 
}
#viadev_inschrijving_form legend { 
    font-weight:bold; 
    color:#0698fe; 
    font-size:16px; 
}

/* Labels + inputs (checkbox/radio) */
#viadev_inschrijving_form label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    cursor: pointer;
    flex-wrap: wrap; /* let content wrap if too long */
}

#viadev_inschrijving_form label input[type="radio"],
#viadev_inschrijving_form label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-bottom: 0;
    margin-top: 2px; /* align with flex-start */
}

/* Dropdowns naast label */
.looptijd-dropdown {
    width: auto;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 10px;
    margin-left: 25px;
}

/* Price breakdown table */
.price-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.price-breakdown-table th, .price-breakdown-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}
.price-breakdown-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}
.price-breakdown-table tr:last-child td {
    font-weight: bold;
}

/* Buttons */
#viadev_inschrijving_form button { 
    background: #0698fe; 
    color: #fff; 
    border: none; 
    padding: 15px 25px; 
    border-radius: 10px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: bold; 
    transition: 0.3s; 
    margin-top: 10px;
}
#viadev_inschrijving_form button:hover { 
    background: #0577d1; 
}

/* Price info */
.price-info { 
    margin: 15px 0; 
    font-weight: bold; 
    font-size: 17px; 
    color: #0698fe; 
}

/* Hidden elements */
.hidden { display: none !important; }

/* Signature pad */
#signature-pad { 
    border: 1px solid #ccc; 
    border-radius: 8px;  
    height: 150px; 
    cursor: crosshair; 
    margin-bottom: 10px;
    max-width: 100%;
}

/* Clear signature button */
#clear-signature {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 20px;
    transition: 0.3s;
}
#clear-signature:hover {
    background: #c0392b;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    #viadev_inschrijving_form { padding: 15px; }
    #viadev_inschrijving_form .looptijd-dropdown,
    #viadev_inschrijving_form .aantal-personen, 
    #viadev_inschrijving_form .aantal-pasjes,
    #viadev_inschrijving_form .extra-sessions {
        margin-left: 0 !important; 
        width: 100% !important; 
        max-width: 100%;
        margin-top: 8px; 
        display: block;
    }
    
    .price-breakdown-table {
        min-width: 650px; /* force explicit width so the parent div enables horizontal scroll */
    }

    .price-breakdown-table th, .price-breakdown-table td {
        font-size: 14px;
        padding: 8px;
        white-space: nowrap; /* prevent ugly word splitting inside columns */
    }
    
    .abonnement-group {
        padding-left: 0;
    }
}

.hidden {
    display: none !important;
}
.price-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.price-breakdown-table th, .price-breakdown-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.price-breakdown-table th {
    background-color: #f2f2f2;
}
.pro-rata-message.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 20px;
}