.bd-contact-form-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    box-sizing: border-box;
    font-family: inherit;
    color: #222;
}
.bd-contact-form-wrapper * {
    box-sizing: border-box;
}
.bd-step-section {
    margin-bottom: 2.5rem;
}
.bd-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 8px;
}
.bd-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bd-step-title h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}
.bd-step-title h2 .bd-topic-highlight {
    color: #82c341;
}
.bd-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #82c341;
    border-radius: 50%;
    color: #82c341;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.bd-step-subtitle {
    font-size: 0.9rem;
    color: #7a7a7a;
}

/* Grid of 8 services */
.bd-topics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 14px;
}
.bd-topic-card {
    background-color: #f7f9f5;
    border: 1px solid #e8ece4;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    user-select: none;
}
.bd-topic-card .bd-topic-radio {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.bd-topic-card:hover {
    border-color: #82c341;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(130, 195, 65, 0.08);
}
.bd-topic-card.bd-topic-active {
    border: 2px solid #82c341;
    background-color: #f2f8eb;
    box-shadow: 0 4px 14px rgba(130, 195, 65, 0.12);
}
.bd-topic-card.bd-topic-active::after {
    content: '\2714';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #82c341;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.bd-topic-card[data-topic-id="werkenvoor"] {
    grid-column: 1;
    grid-row: 1 / span 2;
}
.bd-topic-card.bd-span-2:last-of-type,
.bd-topic-card:last-child {
    grid-column: 5;
    grid-row: 1 / span 2;
}
.bd-topic-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    margin: auto 0;
    padding: 6px 4px 12px 4px;
}
.bd-topic-icon {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
    margin: auto auto;
    display: block;
    align-self: center;
}
.bd-topic-card.bd-span-2 .bd-topic-icon,
.bd-topic-card[data-topic-id="werkenvoor"] .bd-topic-icon,
.bd-topic-card:last-child .bd-topic-icon {
    max-height: 110px;
    margin: auto auto;
}
.bd-topic-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.bd-topic-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.bd-topic-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    line-height: 1.25;
}
.bd-topic-subtitle {
    font-size: 0.78rem;
    font-weight: 400;
    color: #7a7a7a;
    line-height: 1.3;
}
.bd-topic-arrow {
    color: #222;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.bd-topic-card:hover .bd-topic-arrow,
.bd-topic-card.bd-topic-active .bd-topic-arrow {
    color: #82c341;
    transform: translateX(3px);
}

.bd-topic-hint {
    font-size: 0.95rem;
    color: #666;
    min-height: 24px;
    padding: 4px 2px;
    line-height: 1.45;
    transition: color 0.2s ease;
}
.bd-topic-hint.has-selection {
    color: #444;
}
.bd-topic-hint.bd-topic-hint-error {
    color: #c0392b;
}
.bd-topic-hint.bd-topic-hint-error .bd-hint-bold {
    color: #c0392b;
}
.bd-topic-hint .bd-hint-bold {
    font-weight: 700;
    color: #2e5c0e;
    margin-right: 6px;
}

/* Bottom section: Form + Sidebar */
.bd-contact-bottom-wrapper {
    display: flex;
    gap: 3.5rem;
    margin-top: 2rem;
}
.bd-contact-form-col {
    flex: 1 1 64%;
    min-width: 0;
}
.bd-contact-sidebar-col {
    flex: 0 0 32%;
    border-left: 1px solid #eef1ea;
    padding-left: 2.5rem;
    display: flex;
    flex-direction: column;
}

/* Form styling */
.bd-contact-form {
    background: #f7f7f3;
    border-radius: 20px;
    padding: 28px 32px;
    box-sizing: border-box;
}
.bd-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.bd-form-field {
    display: flex;
    flex-direction: column;
}
.bd-field-full {
    grid-column: 1 / -1;
}
.bd-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 6px;
}
.bd-required {
    color: var(--green);
    margin-left: 2px;
}
.bd-optional {
    font-style: italic;
    font-weight: 400;
    color: #888;
    font-size: 0.85rem;
    margin-left: 3px;
}
.bd-form-field input[type="text"],
.bd-form-field input[type="email"],
.bd-form-field input[type="tel"],
.bd-form-field textarea {
    width: 100%;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bd-form-field input::placeholder,
.bd-form-field textarea::placeholder {
    color: #a4a4a4;
}
.bd-form-field input:focus,
.bd-form-field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(118, 191, 29, .15);
}
.bd-form-field textarea {
    resize: vertical;
    min-height: 84px;
}

.bd-privacy-row {
    margin-top: -0.25rem;
}
.bd-privacy-text {
    font-size: 0.88rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}
.bd-privacy-link {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}
.bd-privacy-link:hover {
    text-decoration: underline;
}

.bd-submit-row {
    margin-top: 0.25rem;
}
.bd-contact-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--green);
    color: #fff;
    border: none;
    padding: 11px 26px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.1s;
}
.bd-contact-submit:hover {
    background-color: #5fa016;
}
.bd-btn-arrow {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.2s ease;
}
.bd-contact-submit:hover .bd-btn-arrow {
    transform: translateX(3px);
}
.bd-contact-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Sidebar Styling */
.bd-sidebar-box {
    display: flex;
    flex-direction: column;
}
.bd-sidebar-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.bd-sidebar-title {
    font-size: 1.85rem;
    line-height: 1.22;
    font-weight: 800;
    color: #82c341;
    margin: 0 0 1.25rem 0;
}
.bd-sidebar-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    margin: 0 0 1.25rem 0;
}
.bd-sidebar-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 2rem;
}
.bd-sidebar-info-row {
    font-size: 0.95rem;
    color: #333;
}
.bd-info-label {
    font-weight: 600;
    margin-right: 4px;
}
.bd-info-val {
    color: #222;
    text-decoration: none;
}
.bd-info-val:hover {
    color: #82c341;
    text-decoration: underline;
}

.bd-sidebar-extra-title {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.85rem;
    font-weight: 500;
}
.bd-sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.bd-sidebar-links a {
    color: #82c341;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bd-sidebar-links a:hover {
    text-decoration: underline;
}
.bd-link-arrow {
    color: #222;
    font-size: 1rem;
    font-weight: normal;
    margin-left: 8px;
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}
.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Contact Form 7 Integration Styling */
.bd-cf7-wrapper .wpcf7 {
    width: 100%;
}
.bd-cf7-wrapper .wpcf7-form,
.wpcf7-form.bd-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.bd-cf7-wrapper .bd-form-grid,
.wpcf7-form .bd-form-grid,
.bd-cf7-wrapper .bd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
}
.bd-cf7-wrapper .bd-form-field,
.wpcf7-form .bd-form-field,
.bd-cf7-wrapper .wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.bd-cf7-wrapper label,
.wpcf7-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.45rem;
}
.bd-cf7-wrapper input[type="text"],
.bd-cf7-wrapper input[type="email"],
.bd-cf7-wrapper input[type="tel"],
.bd-cf7-wrapper textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    border: 1px solid #e2e4e0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    font-family: inherit;
    color: #222;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bd-cf7-wrapper input:focus,
.bd-cf7-wrapper textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #82c341;
    box-shadow: 0 0 0 3px rgba(130,195,65,0.15);
}
.bd-cf7-wrapper textarea,
.wpcf7-form textarea {
    resize: vertical;
    min-height: 130px;
}
.bd-cf7-wrapper input[type="submit"],
.bd-cf7-wrapper .wpcf7-submit,
.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type="submit"] {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #82c341;
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.1s;
}
.bd-cf7-wrapper input[type="submit"]:hover,
.bd-cf7-wrapper .wpcf7-submit:hover,
.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form input[type="submit"]:hover {
    background-color: #71ab34;
}
.bd-cf7-wrapper .wpcf7-not-valid-tip,
.wpcf7-not-valid-tip {
    color: #c62828;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 4px;
}
.bd-cf7-wrapper .wpcf7-response-output,
.wpcf7-response-output {
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin: 1.5em 0 0 0 !important;
}
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #e8f5e9 !important;
    color: #2e7d32 !important;
    border: 1px solid #c8e6c9 !important;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background-color: #ffebee !important;
    color: #c62828 !important;
    border: 1px solid #ffcdd2 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .bd-topics-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
    }
    .bd-topic-card.bd-span-2:last-of-type,
    .bd-topic-card.bd-span-2,
    .bd-topic-card:first-child,
    .bd-topic-card:last-child,
    .bd-topic-card[data-topic-id="werkenvoor"] {
        grid-column: auto;
        grid-row: auto;
        min-height: 140px;
    }
    .bd-topic-card.bd-span-2 .bd-topic-icon,
    .bd-topic-card:first-child .bd-topic-icon,
    .bd-topic-card:last-child .bd-topic-icon,
    .bd-topic-card[data-topic-id="werkenvoor"] .bd-topic-icon {
        max-height: 72px;
    }
    .bd-contact-bottom-wrapper {
        flex-direction: column;
        gap: 2.5rem;
    }
    .bd-contact-sidebar-col {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eef1ea;
        padding-top: 2rem;
    }
}
@media (max-width: 680px) {
    .bd-topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bd-contact-form {
        padding: 20px 20px;
    }
    .bd-form-grid {
        grid-template-columns: 1fr;
    }
    .bd-step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
@media (max-width: 480px) {
    .bd-topics-grid {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 1025px) {
    .bd-topics-grid--without-work {
        grid-template-columns: repeat(4, 1fr);
    }
    .bd-topics-grid--without-work .bd-topic-card:last-child {
        grid-column: 4;
    }
}
