.bdf-service-request {
    margin: 1rem 0;
    padding: 1rem;
    color: var(--text-primary, #f8fafc);
    background: rgba(10, 14, 27, .72);
    border: 1px solid rgba(0, 242, 254, .28);
    border-radius: 14px;
}

/* High-contrast storefront and customer account surfaces. */
.bdf-service-request,
.bdf-account-dashboard-panel,
.bdf-account-key-card,
.bdf-service-job,
.bdf-account-empty {
    color: var(--text-primary, #fff);
    background: var(--bg-card, #182640);
    border-color: var(--border-color, rgba(190, 207, 231, .42));
}

.bdf-service-pricing,
.bdf-product-fulfillment {
    background: rgba(57, 230, 255, .12);
    border-color: rgba(57, 230, 255, .58);
}

.bdf-service-request__heading small,
.bdf-service-request > p,
.bdf-service-pricing span,
.bdf-product-fulfillment small,
.bdf-account-heading p,
.bdf-delivered-keys__heading p,
.bdf-account-empty p,
.bdf-account-key-card small,
.bdf-service-job small {
    color: var(--text-muted, #b7c4d6);
}

.bdf-service-request :is(input, textarea, select) {
    color: #fff;
    background: #071425;
    border: 1.5px solid rgba(205, 219, 238, .62);
}

.bdf-service-request :is(input, textarea)::placeholder {
    color: #adbed2;
    opacity: 1;
}

.bdf-service-request :is(input, textarea, select):hover {
    border-color: #b8c8da;
}

.bdf-service-request :is(input, textarea, select):focus {
    border-color: var(--accent-cyan, #39e6ff);
    box-shadow: 0 0 0 3px rgba(57, 230, 255, .25);
}

.bdf-service-pricing__total {
    border-inline-start-color: var(--border-color, rgba(190, 207, 231, .42));
}

.bdf-account-heading {
    border-bottom-color: var(--border-color, rgba(190, 207, 231, .42));
}

.bdf-product-fulfillment > i,
.bdf-service-pricing__total strong,
.bdf-product-fulfillment > span,
.bdf-account-empty > i {
    color: var(--accent-cyan, #39e6ff);
}

/* Final solid-style guard. */
.bdf-service-request,
.bdf-account-dashboard-panel,
.bdf-account-key-card,
.bdf-service-job,
.bdf-account-empty,
.bdf-service-pricing,
.bdf-product-fulfillment {
    background: #172740 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.bdf-service-request :is(input, textarea, select) {
    background: #0b192c !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.bdf-copy-key,
.bdf-service-request__heading > span,
.bdf-account-heading > span,
.bdf-delivered-keys__heading > span {
    color: #04131d !important;
    background: #22c9e6 !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.bdf-product-fulfillment > span {
    background: #102e40;
    border: 1px solid rgba(57, 230, 255, .58);
}

.bdf-service-request :is(input, button, a):focus-visible,
.bdf-account-dashboard-panel :is(input, button, a):focus-visible {
    outline: 3px solid #ffdc74;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(255, 220, 116, .2);
}

.bdf-service-request__heading,
.bdf-product-fulfillment,
.bdf-account-heading,
.bdf-delivered-keys__heading {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.bdf-service-request__heading {
    margin-bottom: .85rem;
}

.bdf-service-request__heading > span,
.bdf-account-heading > span,
.bdf-delivered-keys__heading > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    color: #06131a;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    border-radius: 12px;
}

.bdf-service-request__heading strong,
.bdf-service-request__heading small {
    display: block;
}

.bdf-service-request__heading small {
    color: var(--text-muted, #94a3b8);
    font-size: .76rem;
}

.bdf-service-request label {
    display: block;
    margin-bottom: .35rem;
    font-size: .88rem;
    font-weight: 700;
}

.bdf-service-request :is(input, textarea, select) {
    width: 100%;
    min-height: 48px;
    padding: .75rem .9rem;
    color: #fff;
    background: #090d19;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    outline: 0;
}

.bdf-service-request textarea {
    min-height: 108px;
    resize: vertical;
}

.bdf-service-fields {
    display: grid;
    gap: .8rem;
}

.bdf-service-field {
    padding: .8rem;
    background: rgba(7, 16, 31, .42);
    border: 1px solid rgba(190, 207, 231, .12);
    border-radius: 14px;
}

.bdf-service-choice-list {
    display: grid;
    gap: .45rem;
}

.bdf-service-choice-list label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: .65rem .75rem;
    background: #0b192c;
    border-radius: 10px;
}

.bdf-service-choice-list input {
    width: auto !important;
    min-height: 0 !important;
    accent-color: var(--accent-cyan, #39e6ff);
}

.bdf-service-request :is(input, textarea, select):focus {
    border-color: #00f2fe;
    box-shadow: 0 0 0 3px rgba(0, 242, 254, .1);
}

.bdf-service-request > p {
    margin: .6rem 0 0;
    color: var(--text-muted, #94a3b8);
    font-size: .78rem;
}

.bdf-service-pricing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: .8rem;
    padding: .75rem;
    background: rgba(0, 242, 254, .06);
    border: 1px solid rgba(0, 242, 254, .16);
    border-radius: 11px;
}

.bdf-service-pricing > div {
    min-width: 0;
}

.bdf-service-pricing span,
.bdf-service-pricing strong {
    display: block;
}

.bdf-service-pricing span {
    margin-bottom: .25rem;
    color: var(--text-muted, #94a3b8);
    font-size: .7rem;
}

.bdf-service-pricing strong {
    color: var(--text-primary, #fff);
    font-size: .85rem;
}

.bdf-service-pricing__total {
    padding-inline-start: .7rem;
    border-inline-start: 1px solid rgba(255, 255, 255, .1);
}

.bdf-service-pricing__total strong {
    color: #00f2fe;
    font-size: 1rem;
}

.woocommerce-checkout .woocommerce-billing-fields {
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(1rem, 3vw, 2rem);
    background: var(--bg-card, #12182b);
    border: 1px solid var(--border-color, rgba(255, 255, 255, .12));
    border-radius: 18px;
}

.woocommerce-checkout .woocommerce-billing-fields > h3 {
    margin-top: 0;
}

.woocommerce-checkout #customer_details .col-1 {
    width: 100%;
    float: none;
}

.woocommerce-checkout #customer_details .col-2,
.woocommerce-checkout .woocommerce-additional-fields {
    display: none !important;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
    width: 100%;
    margin: 0;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row label {
    display: block;
    margin-bottom: .4rem;
}

.bdf-product-fulfillment {
    margin: .8rem 0;
    padding: .8rem;
    color: var(--text-primary, #fff);
    background: rgba(0, 242, 254, .06);
    border: 1px solid rgba(0, 242, 254, .2);
    border-radius: 12px;
}

.bdf-product-fulfillment > i {
    color: #00f2fe;
}

.bdf-product-fulfillment strong,
.bdf-product-fulfillment small {
    display: block;
}

.bdf-product-fulfillment small {
    color: var(--text-muted, #94a3b8);
    font-size: .74rem;
}

.bdf-product-fulfillment > span {
    margin-inline-start: auto;
    padding: .3rem .55rem;
    color: #00f2fe;
    background: rgba(0, 242, 254, .08);
    border-radius: 999px;
    font-size: .72rem;
    white-space: nowrap;
}

.bdf-account-heading {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.bdf-account-dashboard-panel {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(10, 14, 27, .38);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
}

.bdf-account-heading h2,
.bdf-delivered-keys__heading h2 {
    margin: 0;
    font-size: 1.25rem;
}

.bdf-account-heading p,
.bdf-delivered-keys__heading p {
    margin: .15rem 0 0;
    color: var(--text-muted, #94a3b8);
    font-size: .8rem;
}

.bdf-account-empty {
    padding: clamp(1.5rem, 5vw, 3rem);
    text-align: center;
    background: rgba(10, 14, 27, .45);
    border: 1px dashed rgba(0, 242, 254, .25);
    border-radius: 16px;
}

.bdf-account-empty > i {
    margin-bottom: .75rem;
    color: #00f2fe;
    font-size: 2rem;
}

.bdf-account-empty h3 {
    margin: 0 0 .3rem;
    font-size: 1.1rem;
}

.bdf-account-empty p {
    max-width: 520px;
    margin: 0 auto 1rem;
    color: var(--text-muted, #94a3b8);
    font-size: .86rem;
}

.bdf-account-key-list,
.bdf-service-job-list {
    display: grid;
    gap: .85rem;
}

.bdf-account-key-card,
.bdf-service-job {
    padding: 1rem;
    background: rgba(10, 14, 27, .55);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
}

.bdf-account-key-card > header,
.bdf-service-job > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .8rem;
}

.bdf-account-key-card h3,
.bdf-service-job h3 {
    margin: .1rem 0 0;
    font-size: 1rem;
}

.bdf-account-key-card small,
.bdf-account-key-card time,
.bdf-service-job small {
    color: var(--text-muted, #94a3b8);
    font-size: .72rem;
}

.bdf-key-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .6rem;
    margin-top: .55rem;
}

.bdf-key-row code {
    min-width: 0;
    display: block;
    overflow: auto;
    padding: .75rem;
    direction: ltr;
    color: #a5f3fc;
    background: #070b14;
    border: 1px solid rgba(0, 242, 254, .2);
    border-radius: 10px;
    text-align: left;
    white-space: nowrap;
}

.bdf-copy-key {
    min-width: 78px;
    padding: .55rem .75rem;
    color: #06131a;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
}

.bdf-copy-key.is-copied {
    background: #22c55e;
}

/* Batash solid UI system — digital products and customer delivery. */
.bdf-service-request,
.bdf-account-dashboard-panel,
.bdf-account-key-card,
.bdf-service-job,
.bdf-account-empty,
.bdf-service-pricing,
.bdf-product-fulfillment {
    background: #172740 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.bdf-service-request__heading > span,
.bdf-account-heading > span,
.bdf-delivered-keys__heading > span,
.bdf-copy-key {
    color: #04131d !important;
    background: #22c9e6 !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.bdf-service-request input {
    background: #0b192c !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.bdf-product-fulfillment > span,
.bdf-job-status {
    color: #fff !important;
    background: #1d7184 !important;
    border: 0 !important;
}

.bdf-job-status.is-completed {
    color: #fff !important;
    background: #168c62 !important;
}

.bdf-job-status.is-failed {
    color: #fff !important;
    background: #a82d51 !important;
}

.bdf-order-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .8rem;
    color: #00f2fe;
    font-size: .8rem;
    font-weight: 700;
}

.bdf-service-job-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bdf-job-status {
    padding: .3rem .6rem;
    color: #f8fafc;
    background: rgba(59, 130, 246, .14);
    border: 1px solid rgba(59, 130, 246, .3);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}

.bdf-job-status.is-completed {
    color: #86efac;
    background: rgba(34, 197, 94, .1);
    border-color: rgba(34, 197, 94, .3);
}

.bdf-job-status.is-failed {
    color: #fda4af;
    background: rgba(244, 63, 94, .1);
    border-color: rgba(244, 63, 94, .3);
}

.bdf-service-job dl {
    margin: .7rem 0 0;
}

.bdf-service-job dl > div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: .5rem;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.bdf-service-job dt {
    color: var(--text-muted, #94a3b8);
    font-size: .74rem;
}

.bdf-service-job dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text-primary, #fff);
    font-size: .8rem;
}

.bdf-delivered-keys {
    margin: 1.5rem 0;
    padding: 1rem;
    color: var(--text-primary, #fff);
    background: rgba(19, 23, 40, .98);
    border: 1px solid rgba(0, 242, 254, .28);
    border-radius: 16px;
}

.bdf-delivered-keys__heading {
    margin-bottom: 1rem;
}

.bdf-delivered-keys article + article {
    margin-top: 1rem;
}

.bdf-delivered-keys h3 {
    margin: 0;
    font-size: .95rem;
}

.bdf-frontend-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.bdf-frontend-dashboard > a {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
    padding: 1.2rem;
    color: var(--text-primary, #fff);
    background: rgba(19, 23, 40, .98);
    border: 1px solid rgba(0, 242, 254, .2);
    border-radius: 14px;
}

.bdf-frontend-dashboard i {
    margin-bottom: .35rem;
    color: #00f2fe;
}

.bdf-frontend-dashboard small {
    color: var(--text-muted, #94a3b8);
}

@media (max-width: 720px) {
    .bdf-service-pricing,
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    .bdf-service-pricing__total {
        padding-block-start: .65rem;
        padding-inline-start: 0;
        border-block-start: 1px solid rgba(255, 255, 255, .1);
        border-inline-start: 0;
    }

    .bdf-service-job-list,
    .bdf-frontend-dashboard {
        grid-template-columns: 1fr;
    }

    .bdf-key-row {
        grid-template-columns: 1fr;
    }

    .bdf-copy-key {
        width: 100%;
        min-height: 42px;
    }

    .bdf-product-fulfillment {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .bdf-product-fulfillment > span {
        width: 100%;
        margin: .2rem 0 0;
        text-align: center;
    }
}

/* Final high-contrast cascade guard. */
.bdf-service-request,
.bdf-account-dashboard-panel,
.bdf-account-key-card,
.bdf-service-job,
.bdf-account-empty {
    color: var(--text-primary, #fff);
    background: var(--bg-card, #182640);
    border-color: var(--border-color, rgba(190, 207, 231, .42));
}

.bdf-service-pricing,
.bdf-product-fulfillment {
    background: rgba(57, 230, 255, .12);
    border-color: rgba(57, 230, 255, .58);
}

.bdf-service-request__heading small,
.bdf-service-request > p,
.bdf-service-pricing span,
.bdf-product-fulfillment small,
.bdf-account-heading p,
.bdf-delivered-keys__heading p,
.bdf-account-empty p,
.bdf-account-key-card small,
.bdf-service-job small {
    color: var(--text-muted, #b7c4d6);
}

.bdf-service-request input {
    color: #fff;
    background: #071425;
    border: 1.5px solid rgba(205, 219, 238, .62);
}

.bdf-service-request input::placeholder {
    color: #adbed2;
    opacity: 1;
}

.bdf-service-request input:focus {
    border-color: var(--accent-cyan, #39e6ff);
    box-shadow: 0 0 0 3px rgba(57, 230, 255, .25);
}

.bdf-service-pricing__total,
.bdf-account-heading {
    border-color: var(--border-color, rgba(190, 207, 231, .42));
}

.bdf-product-fulfillment > i,
.bdf-service-pricing__total strong,
.bdf-product-fulfillment > span,
.bdf-account-empty > i {
    color: var(--accent-cyan, #39e6ff);
}

/*
 ==========================================================================
 ⚡ CYBER GLASS SERVICE FORM & PRODUCT FULFILLMENT OVERHAUL
 ==========================================================================
 */

/* 1. Main Service Container (`.bdf-service-request`) */
.bdf-service-request {
    margin: 1.5rem 0 !important;
    padding: 1.5rem !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(16, 28, 50, 0.85), rgba(9, 16, 30, 0.95)) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(0, 242, 254, 0.28) !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 242, 254, 0.05) !important;
}

/* 2. Heading Section (`.bdf-service-request__heading`) */
.bdf-service-request__heading {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.bdf-service-request__heading > span {
    width: 46px !important;
    height: 46px !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 46px !important;
    color: #030712 !important;
    background: linear-gradient(135deg, #00f2fe, #4facfe) !important;
    border-radius: 14px !important;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4) !important;
    font-size: 1.2rem !important;
}

.bdf-service-request__heading strong {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}

.bdf-service-request__heading small {
    color: #cbd5e1 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
}

/* 3. Outer Field Cards (`.bdf-service-field`) - Clean & Un-cluttered */
.bdf-service-fields {
    display: grid !important;
    gap: 1.25rem !important;
}

.bdf-service-field {
    padding: 1rem 1.25rem !important;
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(0, 242, 254, 0.18) !important;
    border-radius: 16px !important;
    transition: all 0.25s ease !important;
}

.bdf-service-field:focus-within {
    border-color: rgba(0, 242, 254, 0.45) !important;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15) !important;
}

.bdf-service-field label {
    display: block !important;
    margin-bottom: 0.6rem !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
}

/* 4. Inputs, Textarea, and Select Dropdowns - Zero Clipping, High Spacing */
.bdf-service-request input:not([type="checkbox"]):not([type="radio"]),
.bdf-service-request textarea,
.bdf-service-request select {
    width: 100% !important;
    min-height: 52px !important;
    padding: 0.85rem 1.1rem !important;
    color: #ffffff !important;
    background: rgba(8, 16, 32, 0.95) !important;
    border: 1.5px solid rgba(0, 242, 254, 0.25) !important;
    border-radius: 12px !important;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
}

.bdf-service-request textarea {
    min-height: 110px !important;
    line-height: 1.6 !important;
    resize: vertical !important;
}

/* Fix Select Dropdown Custom Arrow & Alignment */
.bdf-service-request select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300f2fe' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 1rem center !important;
    padding-inline-end: 2.8rem !important;
    cursor: pointer !important;
}

/* Focus States (Neon Cyan Glow) */
.bdf-service-request input:focus,
.bdf-service-request textarea:focus,
.bdf-service-request select:focus {
    border-color: #00f2fe !important;
    box-shadow: 0 0 22px rgba(0, 242, 254, 0.4) !important;
    background: rgba(11, 22, 43, 0.98) !important;
}

.bdf-service-request ::placeholder {
    color: #94a3b8 !important;
    opacity: 0.85 !important;
    font-size: 0.92rem !important;
}

/* 5. Delivery Method Card ("طريقة التسليم") */
.bdf-product-fulfillment {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin: 1.25rem 0 !important;
    padding: 1.25rem !important;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(15, 23, 42, 0.85)) !important;
    border: 1px solid rgba(0, 242, 254, 0.35) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
}

.bdf-product-fulfillment > span,
.bdf-product-fulfillment > i {
    width: 44px !important;
    height: 44px !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 44px !important;
    background: #00f2fe !important;
    color: #030712 !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.5) !important;
}

.bdf-product-fulfillment strong {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    display: block !important;
    margin-bottom: 4px !important;
}

.bdf-product-fulfillment small {
    color: #cbd5e1 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    display: block !important;
}

/* 6. Pricing Summary Box */
.bdf-service-pricing {
    background: rgba(11, 19, 41, 0.9) !important;
    border: 1px solid rgba(0, 242, 254, 0.3) !important;
    border-radius: 14px !important;
    padding: 1rem !important;
}

.bdf-service-pricing span {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
}

.bdf-service-pricing strong {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}

.bdf-service-pricing__total strong {
    color: #00f2fe !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.4) !important;
}
