.di-bd-directory,
.di-bd-form-wrap,
.di-bd-single-profile {
    box-sizing: border-box;
    width: 100%;
}

.di-bd-directory *,
.di-bd-form-wrap *,
.di-bd-single-profile * {
    box-sizing: border-box;
}

.di-bd-header {
    margin-bottom: 24px;
}

.di-bd-header h2,
.di-bd-form-wrap h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.di-bd-header p {
    margin: 0;
    max-width: 760px;
    color: #64748b;
    font-size: 17px;
}

.di-bd-filters {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 18px;
    margin: 0 0 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

.di-bd-filters input,
.di-bd-filters select,
.di-bd-form input,
.di-bd-form select,
.di-bd-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 13px;
    background: #fff;
    color: #111827;
    font-size: 15px;
}

.di-bd-filters button,
.di-bd-submit-btn,
.di-bd-load-more,
.di-bd-reset {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 10px 18px;
    background: var(--di-bd-button-bg, #0f766e);
    color: var(--di-bd-button-text, #fff) !important;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.di-bd-reset {
    background: #e5e7eb;
    color: #111827 !important;
}

.di-bd-grid {
    display: grid;
    grid-template-columns: repeat(var(--di-bd-columns-desktop, 3), minmax(0, 1fr));
    gap: 24px;
}

.di-bd-layout-list .di-bd-grid,
.di-bd-layout-compact .di-bd-grid {
    grid-template-columns: 1fr;
}

.di-bd-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    padding: 22px;
    background: var(--di-bd-card-bg, #fff);
    color: var(--di-bd-card-text, #1f2937);
    border: 1px solid #e5e7eb;
    border-radius: var(--di-bd-radius, 18px);
    overflow: hidden;
}

.di-bd-has-shadow .di-bd-card {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.di-bd-card-featured {
    border-color: var(--di-bd-button-bg, #0f766e);
}

.di-bd-logo {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 18px;
    background: #f1f5f9;
    overflow: hidden;
    color: #0f172a;
    font-weight: 800;
    font-size: 34px;
}

.di-bd-logo-small .di-bd-logo { width: 64px; height: 64px; font-size: 24px; }
.di-bd-logo-medium .di-bd-logo { width: 92px; height: 92px; font-size: 34px; }
.di-bd-logo-large .di-bd-logo { width: 124px; height: 124px; font-size: 44px; }
.di-bd-logo-position-round .di-bd-logo { border-radius: 999px; }
.di-bd-logo-position-left .di-bd-card,
.di-bd-layout-list .di-bd-card { flex-direction: row; align-items: flex-start; }

.di-bd-logo-img,
.di-bd-logo img,
.di-bd-single-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.di-bd-card-content {
    min-width: 0;
}

.di-bd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.di-bd-badges span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--di-bd-badge-bg, #eef2ff);
    color: var(--di-bd-badge-text, #3730a3);
    font-size: 12px;
    font-weight: 700;
}

.di-bd-badges .di-bd-featured-label {
    background: var(--di-bd-button-bg, #0f766e);
    color: var(--di-bd-button-text, #fff);
}

.di-bd-card h3 {
    margin: 0 0 10px;
    color: var(--di-bd-title, #111827);
    font-size: 22px;
    line-height: 1.25;
}

.di-bd-card h3 a {
    color: inherit;
    text-decoration: none;
}

.di-bd-card p,
.di-bd-description {
    margin: 0 0 10px;
    color: var(--di-bd-card-text, #1f2937);
    font-size: 15px;
    line-height: 1.6;
}

.di-bd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.di-bd-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 10px;
    padding: 8px 12px;
    background: var(--di-bd-button-bg, #0f766e);
    color: var(--di-bd-button-text, #fff) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
}

.di-bd-layout-compact .di-bd-card {
    padding: 16px;
}

.di-bd-layout-compact .di-bd-logo {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.di-bd-layout-compact .di-bd-description,
.di-bd-layout-compact .di-bd-address {
    display: none;
}

.di-bd-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 28px 0;
}

.di-bd-pagination a,
.di-bd-pagination span {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    text-decoration: none !important;
    font-weight: 700;
}

.di-bd-pagination .current,
.di-bd-pagination a:hover {
    background: var(--di-bd-button-bg, #0f766e);
    color: var(--di-bd-button-text, #fff);
    border-color: var(--di-bd-button-bg, #0f766e);
}

.di-bd-load-more {
    min-width: 180px;
}

.di-bd-empty,
.di-bd-message {
    padding: 16px 18px;
    border-radius: 14px;
    margin: 16px 0;
}

.di-bd-empty {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.di-bd-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.di-bd-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.di-bd-form-wrap {
    max-width: 980px;
    padding: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.di-bd-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.di-bd-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.di-bd-field label {
    display: block;
    margin-bottom: 6px;
    color: #111827;
    font-weight: 800;
}

.di-bd-field label span {
    color: #dc2626;
}

.di-bd-field small {
    display: block;
    margin-top: 6px;
    color: #64748b;
}

.di-bd-form textarea {
    min-height: 130px;
}

.di-bd-submit-btn {
    width: fit-content;
    min-width: 200px;
}

.di-bd-single-profile {
    margin-top: 30px;
    padding: 26px;
    border-radius: var(--di-bd-radius, 18px);
    background: var(--di-bd-card-bg, #fff);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.di-bd-single-main {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px;
}

.di-bd-single-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #f1f5f9;
    overflow: hidden;
    font-size: 44px;
    font-weight: 800;
}

.di-bd-single-main h2 {
    margin: 0 0 10px;
}

.di-bd-single-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.di-bd-single-details p {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
}

@media (max-width: 1024px) {
    .di-bd-grid {
        grid-template-columns: repeat(var(--di-bd-columns-tablet, 2), minmax(0, 1fr));
    }

    .di-bd-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .di-bd-grid {
        grid-template-columns: repeat(var(--di-bd-columns-mobile, 1), minmax(0, 1fr));
    }

    .di-bd-filters,
    .di-bd-row,
    .di-bd-single-details {
        grid-template-columns: 1fr;
    }

    .di-bd-logo-position-left .di-bd-card,
    .di-bd-layout-list .di-bd-card,
    .di-bd-single-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .di-bd-form-wrap,
    .di-bd-single-profile {
        padding: 18px;
    }
}

.di-bd-packages-field {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f8fafc;
}

.di-bd-packages-field h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 22px;
}

.di-bd-packages-field > p {
    margin: 0 0 16px;
    color: #64748b;
}

.di-bd-package-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.di-bd-package-option {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.di-bd-package-option input {
    width: auto;
    min-height: auto;
    margin-top: 4px;
}

.di-bd-package-name {
    color: #111827;
    font-weight: 800;
}

.di-bd-package-price {
    font-weight: 900;
    color: var(--di-bd-button-bg, #0f766e);
}

.di-bd-package-badge {
    grid-column: 2 / -1;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--di-bd-button-bg, #0f766e);
    color: var(--di-bd-button-text, #fff);
    font-size: 12px;
    font-weight: 800;
}

.di-bd-package-description,
.di-bd-package-duration {
    grid-column: 2 / -1;
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}

.di-bd-package-featured {
    border-color: var(--di-bd-button-bg, #0f766e);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

@media (max-width: 700px) {
    .di-bd-package-options {
        grid-template-columns: 1fr;
    }
}
