/* Hide all topic-specific form rows by default */
#address-edit-form-row,
#abo-change-form-row,
#cancellation-form-row,
#login-special-form-row,
#credentials-special-form-row,
#payment-special-form-row,
#payment-grund-row,
#payment-grund-container,
#login-grund-row,
#login-grund-container {
    display: none;
}

.checkbox-group {
    margin-bottom: 20px;
}

.radio-group {
    margin-bottom: 20px;
}

.checkbox-option label,
.radio-option label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.checkbox-option label:hover,
.radio-option label:hover {
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
}

.radio-option input[type="radio"]:checked + label {
    font-weight: bold;
}

/* Ensure only one radio button can be selected at a time */
.radio-group input[type="radio"] {
    margin-right: 8px;
}

.radio-group input[type="radio"]:checked + label {
    font-weight: bold;
    color: #007cba;
}

/* Hide all collapsible sections by default */
.collapsible-fields {
    margin-left: 24px;
    padding: 10px;
    background-color: #f9f9f9;
    display: none;
}

/* Only show the selected section */
.collapsible-fields[style*="display: table-row"],
.collapsible-fields[style*="display: block"] {
    display: block !important;
}

/* Ensure JavaScript can control visibility */
.collapsible-fields[style*="display: none"] {
    display: none !important;
}

.special-support-table.sub-form {
    margin-left: 0;
    width: 90%;
}

.special-support-table.sub-form td {
    padding: 5px;
}

.special-support-table.sub-form .column1 {
    width: 200px;
    vertical-align: top;
}

.special-support-table.sub-form .column2 {
    vertical-align: top;
}

.current-address-form,
.new-address-form {
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.current-address-form .supportTable,
.new-address-form .supportTable {
    margin: 0;
    width: 100%;
}

.current-address-form .supportTable td,
.new-address-form .supportTable td {
    padding: 8px 5px;
    border: none;
}

.current-address-form .column1,
.new-address-form .column1 {
    width: 180px;
    vertical-align: top;
}

.current-address-form .column2,
.new-address-form .column2 {
    vertical-align: top;
}

.payment-checkbox {
    margin-right: 8px;
}

.invoice-copy-info {
    margin-left: 24px;
    margin-top: 8px;
}

.invoice-number-row,
.invoice-product-row {
    margin: 5px 0;
}

.invoice-number-row label,
.invoice-product-row label {
    margin-right: 8px;
}

.invoice-number-row input {
    width: 200px;
    display: inline-block;
}

.invoice-product-row select {
    width: 180px;
    margin-right: 8px;
}

button.add-invoice-number,
button.remove-invoice-number,
button.add-invoice-product,
button.remove-invoice-product {
    padding: 2px 8px;
    margin-left: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
}

button.add-invoice-number:hover,
button.remove-invoice-number:hover,
button.add-invoice-product:hover,
button.remove-invoice-product:hover {
    background: #f0f0f0;
}

button.add-invoice-number:disabled,
button.remove-invoice-number:disabled,
button.add-invoice-product:disabled,
button.remove-invoice-product:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.invoice-copy-type-label {
    display: block;
    margin-bottom: 8px;
}

#invoice-product-detail-1 {
    margin-left: 8px;
    width: 180px;
}

/* Hide original select when using jQuery UI selectmenu */
select.ui-selectmenu-hidden {
    display: none !important;
}

.product-detail.ui-selectmenu-hidden {
    display: none !important;
}

#bank-method {
    width: 100%;
    max-width: 400px;
}

#bank-login-row,
#bank-sepa-row,
#bank-contact-row {
    margin-top: 10px;
}

#bank-login-row p,
#bank-sepa-row p {
    margin: 5px 0;
}

#bank-login-row a,
#bank-sepa-row a {
    color: #007cba;
    text-decoration: none;
    font-weight: bold;
}

#bank-login-row a:hover,
#bank-sepa-row a:hover {
    text-decoration: underline;
}

#bank-contact-row {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Medium message styling */
.medium-info {
    padding: 10px;
    background-color: #f9f9f9;
    font-size: 13px;
    line-height: 1.4;
}

.medium-info a {
    color: #1355A4;
    text-decoration: underline;
}

.medium-info a:hover {
    text-decoration: none;
}

.handler-info {
    padding: 10px;
    background-color: #f9f9f9;
    font-size: 13px;
    line-height: 1.4;
}
.handler-info a {
    color: #1355A4;
    text-decoration: underline;
}
.handler-info a:hover {
    text-decoration: none;
}

/* Technisch note styling */
.technisch-info {
    padding: 10px;
    background-color: #f9f9f9;
    font-size: 13px;
    line-height: 1.4;
}

/* Delivery info styling */
.delivery-info {
    padding: 10px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Two-column form layout */
.two-column-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    max-width: 100%;
    width: 100%;
}

.form-column {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 7.5px);
    width: calc(50% - 7.5px);
}

.form-section-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    word-wrap: break-word;
    margin-bottom: -20px;
}

.form-separator {
    width: 1px;
    background-color: #ddd;
    margin: 0 7.5px;
    align-self: stretch;
    flex-shrink: 0;
}

.delivery-info-section {
    margin-top: 20px;
    padding-top: 20px;
    max-width: 100%;
    width: 100%;
}

/* Adjust dropdown widths within the form columns */
.form-column .supportSelect {
    max-width: 180px;
    min-width: 120px;
    width: 100%;
}

.form-column .supportTable {
    width: 100%;
    max-width: 100%;
}

.form-column .column1 {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

.form-column .column2 {
    width: auto;
    max-width: calc(100% - 70px);
}

.abo-change-form {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.abo-change-form-container {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.form-column table {
    table-layout: fixed;
    width: 100%;
}

.form-column td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
