/* ==========================================================================
   Djezzy B2B Contact Form Widget Styles
   ========================================================================== */

.djezzy-contact {
    background: #fff;
    padding: 56px 0 80px;
    font-family: var(--djezzy-font, 'Cairo', 'Montserrat', sans-serif);
}

.djezzy-contact *, 
.djezzy-contact *::before, 
.djezzy-contact *::after { 
    box-sizing: border-box; 
}

.djezzy-contact [hidden] { 
    display: none !important; 
}

.djezzy-contact__container {
    max-width: var(--djezzy-container-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--djezzy-container-padding, 24px);
}

.djezzy-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.djezzy-contact__side { 
    display: grid; 
    gap: 24px; 
}

/* Sticky lateral column on desktop */
@media (min-width: 992px) {
    .djezzy-contact__side { 
        position: sticky; 
        top: var(--djezzy-sticky-top, 120px); 
    }
}

/* Cards */
.djezzy-contact__card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .08);
    padding: 32px;
}

.djezzy-contact__card-title {
    margin: 0 0 16px;
    color: var(--djezzy-title, #123A63);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

/* Legend, required indicator, context chip, alerts */
.djezzy-contact__legend { 
    margin: 0 0 24px; 
    color: var(--djezzy-text, #4a4a4a); 
    font-size: 14px; 
}

.djezzy-contact__req { 
    color: var(--djezzy-red, #E2001A); 
    font-weight: 700; 
}

.djezzy-contact__context {
    display: flex; 
    flex-wrap: wrap; 
    align-items: baseline; 
    gap: 6px 8px;
    margin: 0 0 20px; 
    padding: 12px 16px;
    border-left: 4px solid var(--djezzy-red, #E2001A);
    border-radius: 0 8px 8px 0;
    background: #f4f4f4;
    color: var(--djezzy-text, #4a4a4a);
    font-size: 14px;
}

[dir="rtl"] .djezzy-contact__context {
    border-left: 0;
    border-right: 4px solid var(--djezzy-red, #E2001A);
    border-radius: 8px 0 0 8px;
}

.djezzy-contact__context strong { 
    color: var(--djezzy-text-dark, #1a1a1a); 
}

.djezzy-contact__context a { 
    margin-left: auto; 
    color: var(--djezzy-red, #E2001A); 
    font-weight: 600; 
    text-decoration: none; 
}

[dir="rtl"] .djezzy-contact__context a {
    margin-left: 0;
    margin-right: auto;
}

.djezzy-contact__context a:hover { 
    text-decoration: underline; 
}

.djezzy-contact__alert { 
    margin: 0 0 20px; 
    padding: 14px 16px; 
    border-radius: 8px; 
    font-size: 15px; 
    line-height: 1.5; 
}

.djezzy-contact__alert--success { 
    background: #eef7f0; 
    border: 1px solid #b7dcc0; 
    color: #1d5a2e; 
}

.djezzy-contact__alert--error { 
    background: #fdecee; 
    border: 1px solid #f3b3ba; 
    color: #8f0012; 
}

/* Form layout */
.djezzy-contact__form { 
    display: grid; 
    gap: 28px; 
}

.djezzy-contact__group {
    display: grid; 
    gap: 20px;
    min-width: 0; 
    margin: 0; 
    padding: 0; 
    border: 0;
}

.djezzy-contact__group + .djezzy-contact__group,
.djezzy-contact__group + .djezzy-contact__details,
.djezzy-contact__details + .djezzy-contact__group,
.djezzy-contact__details + .djezzy-contact__details {
    padding-top: 28px; 
    border-top: 1px solid #e6e6e6;
}

.djezzy-contact__legend-title {
    float: left; 
    width: 100%; 
    margin: 0 0 4px; 
    padding: 0;
    color: var(--djezzy-title, #123A63);
    font-size: 18px; 
    font-weight: 800; 
    line-height: 1.3;
}

[dir="rtl"] .djezzy-contact__legend-title {
    float: right;
    text-align: right;
}

.djezzy-contact__legend-title + * { 
    clear: both; 
}

.djezzy-contact__row { 
    display: grid; 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 20px; 
}

.djezzy-contact__field { 
    display: grid; 
    gap: 8px; 
    min-width: 0; 
    align-content: start; 
}

.djezzy-contact__label { 
    color: var(--djezzy-text-dark, #1a1a1a); 
    font-size: 15px; 
    font-weight: 600; 
    line-height: 1.35; 
    padding: 0; 
}

.djezzy-contact__hint { 
    color: var(--djezzy-text, #4a4a4a); 
    font-size: 14px; 
    line-height: 1.5; 
}

/* Inputs & Selects */
.djezzy-contact__input {
    width: 100%; 
    min-height: 48px; 
    padding: 12px 14px;
    border: 1px solid #cfcfcf; 
    border-radius: 8px;
    background-color: #fff; 
    color: var(--djezzy-text-dark, #1a1a1a);
    font-family: inherit; 
    font-size: 16px; 
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.djezzy-contact__input:not(textarea) { 
    height: 48px; 
}

select.djezzy-contact__input {
    -webkit-appearance: none; 
    appearance: none;
    padding-right: 42px; 
    cursor: pointer; 
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; 
    background-position: right 16px center; 
    background-size: 12px 8px;
}

[dir="rtl"] select.djezzy-contact__input { 
    padding-right: 14px; 
    padding-left: 42px; 
    background-position: left 16px center; 
}

.djezzy-contact__input::placeholder { 
    color: #8a8a8a; 
    opacity: 1; 
}

.djezzy-contact__input:hover { 
    border-color: #9a9a9a; 
}

.djezzy-contact__input:focus { 
    outline: none; 
    border-color: var(--djezzy-red, #E2001A); 
    box-shadow: 0 0 0 3px rgba(226, 0, 26, .15); 
}

.djezzy-contact__input:user-invalid { 
    border-color: var(--djezzy-red, #E2001A); 
}

.djezzy-contact__textarea { 
    min-height: 140px; 
    resize: vertical; 
}

.djezzy-contact__field-error { 
    margin: 0; 
    color: #b80015; 
    font-size: 13px; 
    font-weight: 600;
    line-height: 1.4; 
}

.djezzy-contact__field--error .djezzy-contact__input { 
    border-color: var(--djezzy-red, #E2001A); 
}

.djezzy-contact__field--error .djezzy-contact__dropzone { 
    border-color: var(--djezzy-red, #E2001A); 
    background: #fff5f5; 
}

/* File Upload / Dropzone Component */
.djezzy-contact__opt {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    margin-inline-start: 4px;
}

.djezzy-contact__file-input {
    display: none;
}

.djezzy-contact__dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.djezzy-contact__dropzone:hover {
    border-color: var(--djezzy-red, #E2001A);
    background: #fff8f8;
    box-shadow: 0 4px 12px rgba(226, 0, 26, 0.05);
}

.djezzy-contact__dropzone:focus-visible {
    border-color: var(--djezzy-red, #E2001A);
    box-shadow: 0 0 0 3px rgba(226, 0, 26, 0.15);
}

.djezzy-contact__dropzone--active {
    border-color: var(--djezzy-red, #E2001A);
    background: #fef2f2;
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(226, 0, 26, 0.1);
}

.djezzy-contact__dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--djezzy-red, #E2001A);
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease;
}

.djezzy-contact__dropzone:hover .djezzy-contact__dropzone-icon,
.djezzy-contact__dropzone--active .djezzy-contact__dropzone-icon {
    transform: translateY(-2px) scale(1.05);
}

.djezzy-contact__dropzone-text {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.djezzy-contact__dropzone-browse {
    color: var(--djezzy-red, #E2001A);
    text-decoration: underline;
    font-weight: 700;
    margin-inline-start: 4px;
}

.djezzy-contact__dropzone-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* File Card Preview */
.djezzy-contact__file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.djezzy-contact__file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(226, 0, 26, 0.08);
    color: var(--djezzy-red, #E2001A);
    flex-shrink: 0;
}

.djezzy-contact__file-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    text-align: left;
}

[dir="rtl"] .djezzy-contact__file-meta {
    text-align: right;
}

.djezzy-contact__file-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.djezzy-contact__file-size {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

.djezzy-contact__file-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.djezzy-contact__file-remove:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

/* Collapsible sections */
.djezzy-contact__details { 
    display: block; 
    margin: 0; 
}

.djezzy-contact__summary {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 12px;
    min-height: 32px;
    color: var(--djezzy-title, #123A63); 
    font-size: 18px; 
    font-weight: 800;
    cursor: pointer; 
    list-style: none;
}

.djezzy-contact__summary::-webkit-details-marker { 
    display: none; 
}

.djezzy-contact__summary span { 
    color: var(--djezzy-text, #4a4a4a); 
    font-size: 14px; 
    font-weight: 500; 
    margin-right: auto; 
}

[dir="rtl"] .djezzy-contact__summary span {
    margin-right: 0;
    margin-left: auto;
}

.djezzy-contact__summary::after { 
    content: "+"; 
    font-size: 24px; 
    font-weight: 400; 
    line-height: 1; 
    color: var(--djezzy-red, #E2001A); 
}

.djezzy-contact__details[open] > .djezzy-contact__summary::after { 
    content: "\2212"; 
}

.djezzy-contact__summary:focus-visible { 
    outline: 3px solid rgba(226, 0, 26, .35); 
    outline-offset: 4px; 
    border-radius: 4px; 
}

.djezzy-contact__details-body { 
    display: grid; 
    gap: 20px; 
    margin-top: 20px; 
}

/* Radio buttons */
.djezzy-contact__choice { 
    display: grid; 
    gap: 8px; 
    min-width: 0; 
    margin: 0; 
    padding: 0; 
    border: 0; 
    align-content: start; 
}

.djezzy-contact__choice-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px 24px; 
    min-height: 48px; 
    align-items: center; 
}

.djezzy-contact__choice-list label { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 16px; 
    color: var(--djezzy-text-dark, #1a1a1a); 
    cursor: pointer; 
}

.djezzy-contact__choice-list input { 
    width: 18px; 
    height: 18px; 
    margin: 0; 
    accent-color: var(--djezzy-red, #E2001A); 
}

/* Conditional field (client Djezzy = oui) */
.djezzy-contact__field--conditional { 
    display: none; 
}

.djezzy-contact__details-body:has(input[name="client_djezzy"][value="oui"]:checked) .djezzy-contact__field--conditional { 
    display: grid; 
}

/* Consents */
.djezzy-contact__consents { 
    display: grid; 
    gap: 14px; 
}

.djezzy-contact__consent { 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    color: var(--djezzy-text, #4a4a4a); 
    font-size: 14px; 
    line-height: 1.55; 
    cursor: pointer; 
}

.djezzy-contact__consent input { 
    flex: 0 0 auto; 
    width: 18px; 
    height: 18px; 
    margin: 2px 0 0; 
    accent-color: var(--djezzy-red, #E2001A); 
}

.djezzy-contact__consent a { 
    color: var(--djezzy-red, #E2001A); 
    text-decoration: underline;
}

/* Google reCAPTCHA v3 notice */
.djezzy-contact__recaptcha-notice {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #7a7a7a;
}

.djezzy-contact__recaptcha-notice a {
    color: var(--djezzy-text, #4a4a4a);
    text-decoration: underline;
}

.djezzy-contact__recaptcha-notice a:hover {
    color: var(--djezzy-red, #E2001A);
}

/* Anti-spam honeypot */
.djezzy-contact__hp { 
    position: absolute; 
    left: -9999px; 
    width: 1px; 
    height: 1px; 
    overflow: hidden; 
}

/* Main CTA Button */
.djezzy-contact__btn {
    justify-self: start; 
    min-height: 52px; 
    padding: 14px 40px;
    border: 2px solid var(--djezzy-red, #E2001A); 
    border-radius: 8px;
    background: var(--djezzy-red, #E2001A); 
    color: #fff;
    font-family: inherit; 
    font-size: 16px; 
    font-weight: 700; 
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.djezzy-contact__btn:hover { 
    background: #b80015; 
    border-color: #b80015; 
}

.djezzy-contact__btn:focus-visible { 
    outline: 3px solid rgba(226, 0, 26, .35); 
    outline-offset: 2px; 
}

.djezzy-contact__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Sidebar Coordinates */
.djezzy-contact__info { 
    margin: 0; 
    padding: 0; 
}

.djezzy-contact__info-item { 
    padding: 14px 0; 
    border-top: 1px solid #e6e6e6; 
}

.djezzy-contact__info-item:first-child { 
    border-top: 0; 
    padding-top: 0; 
}

.djezzy-contact__info-item:last-child { 
    padding-bottom: 0; 
}

.djezzy-contact__info dt { 
    margin: 0 0 2px; 
    color: var(--djezzy-text, #4a4a4a); 
    font-size: 14px; 
    font-weight: 600; 
}

.djezzy-contact__info dd { 
    margin: 0; 
    color: var(--djezzy-text-dark, #1a1a1a); 
    font-size: 15px; 
    font-weight: 600; 
    line-height: 1.5; 
    overflow-wrap: anywhere; 
}

.djezzy-contact__info a { 
    color: inherit; 
    text-decoration: none; 
}

.djezzy-contact__info a:hover { 
    color: var(--djezzy-red, #E2001A); 
}

/* Next steps */
.djezzy-contact__steps { 
    margin: 0; 
    padding: 0; 
    list-style: none; 
    counter-reset: djezzy-contact-step; 
}

.djezzy-contact__steps li {
    position: relative; 
    margin: 0 0 16px; 
    padding-left: 40px;
    color: var(--djezzy-text, #4a4a4a); 
    font-size: 15px; 
    line-height: 1.55;
    counter-increment: djezzy-contact-step;
}

.djezzy-contact__steps li:last-child { 
    margin-bottom: 0; 
}

.djezzy-contact__steps li::before {
    content: counter(djezzy-contact-step);
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 28px; 
    height: 28px;
    border-radius: 50%; 
    background: var(--djezzy-title, #123A63);
    color: #fff; 
    font-size: 13px; 
    font-weight: 700; 
    line-height: 28px; 
    text-align: center;
}

[dir="rtl"] .djezzy-contact__steps li {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .djezzy-contact__steps li::before {
    left: auto;
    right: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .djezzy-contact__grid { 
        grid-template-columns: minmax(0, 1fr); 
    }
}

@media (max-width: 575px) {
    .djezzy-contact { 
        padding: 32px 0 56px; 
    }
    .djezzy-contact__container { 
        padding: 0 var(--djezzy-container-padding-mobile, 16px); 
    }
    .djezzy-contact__card { 
        padding: 24px 20px; 
    }
    .djezzy-contact__row { 
        grid-template-columns: minmax(0, 1fr); 
    }
    .djezzy-contact__btn { 
        justify-self: stretch; 
        width: 100%; 
    }
}

@media (prefers-reduced-motion: reduce) {
    .djezzy-contact__input, 
    .djezzy-contact__btn { 
        transition: none; 
    }
}

/* ==========================================================================
   Section: Breadcrumb (DZ-BC)
   ========================================================================== */

.dz-bc {
    --dz-bc-red: #e30613;
    --dz-bc-ink: #111113;
    --dz-bc-muted: #52525b;
    --dz-bc-bg: #f8f8fa;
    --dz-bc-border: rgba(0, 0, 0, 0.08);
    --dz-bc-font: 'Inter', system-ui, -apple-system, sans-serif;

    box-sizing: border-box;
    width: 100%;
    padding-block: 0.875rem;
    padding-inline: clamp(1.25rem, 5vw, 5rem);
    background-color: var(--dz-bc-bg);
    border-block-start: 1px solid var(--dz-bc-border);
    border-block-end: 1px solid var(--dz-bc-border);
    -webkit-font-smoothing: antialiased;
}

.dz-bc *,
.dz-bc *::before,
.dz-bc *::after {
    box-sizing: border-box;
}

.dz-bc__container {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
}

.dz-bc__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--dz-bc-font);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
}

.dz-bc__item {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--dz-bc-muted);
}

.dz-bc__item:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 0.375rem;
    height: 0.625rem;
    background-color: currentColor;
    opacity: 0.5;
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 10" fill="none"><path d="M1 1l4 4-4 4" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 10" fill="none"><path d="M1 1l4 4-4 4" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

.dz-bc__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--dz-bc-muted);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: color 0.15s ease;
}

.dz-bc__link:hover {
    color: var(--dz-bc-red);
}

.dz-bc__link:focus {
    outline: none;
}

.dz-bc__link:focus-visible {
    outline: 2px solid var(--dz-bc-red);
    outline-offset: 2px;
}

.dz-bc__home-icon {
    flex-shrink: 0;
    margin-block-end: 1px;
}

.dz-bc__current {
    color: var(--dz-bc-ink);
    font-weight: 600;
    word-break: break-word;
}

[dir="rtl"] .dz-bc__item:not(:last-child)::after {
    transform: scaleX(-1);
}

@media (max-width: 36.25rem) {
    .dz-bc {
        padding-block: 0.75rem;
        padding-inline: 1.25rem;
    }
    .dz-bc__list {
        font-size: 0.75rem;
        gap: 0.375rem 0.5rem;
    }
}

/* ==========================================================================
   Tabs & Switcher
   ========================================================================== */

.djezzy-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 32px;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
}

.djezzy-tabs__btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    border-radius: 8px 8px 0 0;
    transition: color .2s ease, background .2s ease;
}

.djezzy-tabs__btn:hover {
    color: #111827;
    background: #f3f4f6;
}

.djezzy-tabs__btn--active {
    color: #e11d48;
    background: #fff;
}

.djezzy-tabs__btn--active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: #e11d48;
    border-radius: 3px 3px 0 0;
}

.djezzy-tab-panel {
    display: none;
}

.djezzy-tab-panel--active {
    display: block;
}

/* ==========================================================================
   Conditional Fields & Form Extras
   ========================================================================== */

.djezzy-contact__field--conditional {
    display: none;
}

.djezzy-contact__form:has(input[name="type_client"][value="entreprise"]:checked)
    .djezzy-contact__field--conditional[data-dz-field="telecom_manager"] {
    display: block;
}

.djezzy-contact__form:has(input[name="client_djezzy"][value="oui"]:checked)
    .djezzy-contact__field--conditional[data-dz-field="reference_client"] {
    display: block;
}

/* Bouton Géolocalisation */
.djezzy-contact__geoloc-btn {
    padding: 10px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background .15s ease, border-color .15s ease;
}

.djezzy-contact__geoloc-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Grille pour choix multiples / boutons radio réclamation */
.djezzy-contact__choice-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

