/* ===============================
   DSI SIRET – Enhanced Pro Styles
   Scoped / Safe
================================ */


/* Modal Base */

.dsi-siret-modal .modal-content {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dsi-modal-header {
    background: linear-gradient(135deg, #24b9d7, #2fb5d2);
    color: #fff;
    padding: 20px;
    border-bottom: none;
}

.dsi-modal-header h5 {
    font-weight: 600;
    margin: 0;
}


/* Step Content */

.dsi-step-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.dsi-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Location Cards */

.dsi-location-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin: 10px 0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dsi-location-card:hover {
    border-color: #24b9d7;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dsi-location-card h5 {
    font-size: 48px;
    margin-bottom: 10px;
}

.dsi-location-card h6 {
    color: #333;
    font-weight: 600;
}

.dsi-location-card p {
    color: #666;
    margin: 10px 0;
}

.dsi-location-card button {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}


/* SIRET Input */

#dsi-siret-input {
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
    font-size: 16px;
}

#dsi-search-siret {
    border-radius: 0 8px 8px 0 !important;
    background: #24b9d7;
    border-color: #24b9d7;
}

#dsi-siret-input:focus {
    border-color: #24b9d7;
    box-shadow: 0 0 0 0.2rem rgba(36, 185, 215, 0.25);
}


/* Alerts */

#dsi-siret-alert {
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 15px;
}

.alert.alert-info {
    border-radius: 8px;
}

#dsi-siret-modal .input-group {
    margin-bottom: 30px;
}

#dsi-siret-modal #dsi-step-2 h4 {
    margin-bottom: 20px;
}

.alert-danger {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #c62828;
}

.alert-success {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #2e7d32;
}


/* Results Card */

#dsi-siret-results {
    display: none;
    margin-top: 20px;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

#dsi-siret-results .alert-success {
    margin: 0;
    padding: 10px 15px;
}


/* Loading Spinner */

.dsi-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #f6f6f6;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Actions */

.dsi-actions {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
}

.dsi-actions button {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}


/* Form Inputs */

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #24b9d7;
    box-shadow: 0 0 0 0.2rem rgba(36, 185, 215, 0.25);
}

#dsi-siret-modal button.close {
    position: absolute;
    top: 10px;
    right: 10px;
}

#dsi-siret-modal button.close span {
    font-size: 50px;
}

button#dsi-open-modal.dsi-trigger-header-menu {
    background-color: #FFF;
    font-size: 14px;
    text-align: start;
    width: 100%;
}

button#dsi-open-modal.dsi-trigger-header-menu:hover {
    color: #24b9d7;
}

#dsi-siret-modal i {
    margin-inline: 10px;
}

#dsi-search-siret {
    height: 100%;
}

.d-none {
    display: none !important;
}


/** new css **/


/* ==========================
   STEP 3 – GLOBAL
========================== */

.dsi-step-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.dsi-step-subtitle {
    color: #777;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.dsi-input {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border 0.2s, box-shadow 0.2s;
}

.dsi-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, .15);
}


/* ==========================
   CONSENTS BLOCK
========================== */

.dsi-consents {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.dsi-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
}

.dsi-switch-row:last-child {
    border-bottom: none;
}

.dsi-switch-row.required strong::after {
    content: " *";
    color: #dc3545;
}

.dsi-switch-text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
}

.dsi-switch-text span {
    font-size: 0.9rem;
    color: #666;
}


/* ==========================
   SWITCH STYLE
========================== */

.dsi-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.dsi-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dsi-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 50px;
    transition: background-color 0.25s;
}

.dsi-slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.25s;
}

.dsi-switch input:checked+.dsi-slider {
    background-color: #28a745;
}

.dsi-switch input:checked+.dsi-slider::before {
    transform: translateX(24px);
}


/* ==========================
   ACTIONS
========================== */

.dsi-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
}

.dsi-actions .btn-lg {
    padding: 12px 28px;
    border-radius: 10px;
}


/* ==========================
   MOBILE
========================== */

@media (max-width: 768px) {
    .dsi-switch-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .dsi-actions {
        flex-direction: column;
        gap: 15px;
    }
    .dsi-actions button {
        width: 100%;
    }
}

.password-strength-wrapper {
    margin-top: 6px;
}

.password-strength-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

#password-strength-fill {
    height: 100%;
    width: 0;
    background: #ef4444;
    transition: width 0.3s ease, background 0.3s ease;
}

#password-strength-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}