/**
 * Verdeko Mobile Block - Styles
 * 
 * Design coherent avec l'identite Verdeko (vert #43a047)
 * Mobile-first, accessible, sans dependances
 */

#vdk-mobile-block,
#vdk-mobile-block * {
    box-sizing: border-box;
}

#vdk-mobile-block {
    display: block;
    margin: 20px auto;
    max-width: 540px;
    width: 100%;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    line-height: 1.5;
}

/* ==========================================================================
   CARD PRINCIPALE
   ========================================================================== */

.vdk-mb-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    text-align: center;
}

.vdk-mb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #f0f9f1;
    border-radius: 20px;
    color: #43a047;
    margin: 0 auto 20px auto;
}

.vdk-mb-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.vdk-mb-subtitle {
    margin: 0 0 24px 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* ==========================================================================
   FEATURES LIST
   ========================================================================== */

.vdk-mb-features {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 16px 0;
    text-align: left;
    background: #fafbfa;
    border-radius: 10px;
    padding: 16px 20px;
}

.vdk-mb-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.vdk-mb-features li svg {
    flex-shrink: 0;
    color: #43a047;
}

/* ==========================================================================
   DIVIDER
   ========================================================================== */

.vdk-mb-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 24px -8px;
}

/* ==========================================================================
   FORM SECTION
   ========================================================================== */

.vdk-mb-form-section {
    text-align: left;
}

.vdk-mb-form-title {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.01em;
    text-align: center;
}

.vdk-mb-form-subtitle {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.vdk-mb-field {
    margin-bottom: 14px;
}

.vdk-mb-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    letter-spacing: -0.01em;
}

.vdk-mb-required {
    color: #ef4444;
}

.vdk-mb-field input[type="text"],
.vdk-mb-field input[type="email"],
.vdk-mb-field input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1f2937;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.vdk-mb-field input:focus {
    outline: none;
    border-color: #43a047;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.12);
}

.vdk-mb-field input::placeholder {
    color: #9ca3af;
}

/* ==========================================================================
   CONSENT
   ========================================================================== */

.vdk-mb-consent {
    margin: 16px 0 20px 0;
}

.vdk-mb-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.vdk-mb-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: #43a047;
}

/* ==========================================================================
   SUBMIT BUTTON
   ========================================================================== */

.vdk-mb-submit {
    width: 100%;
    padding: 14px 24px;
    background: #43a047;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -0.01em;
    -webkit-appearance: none;
    appearance: none;
}

.vdk-mb-submit:hover:not(:disabled) {
    background: #2e7d32;
}

.vdk-mb-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.vdk-mb-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.vdk-mb-submit-spinner {
    display: none;
    animation: vdk-mb-spin 0.8s linear infinite;
}

.vdk-mb-submit.loading .vdk-mb-submit-spinner {
    display: inline-block;
}

.vdk-mb-submit.loading .vdk-mb-submit-text {
    opacity: 0.7;
}

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

/* ==========================================================================
   ERROR
   ========================================================================== */

.vdk-mb-error {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13px;
    text-align: center;
}

.vdk-mb-error.show {
    display: block;
}

/* ==========================================================================
   SUCCESS SCREEN
   ========================================================================== */

.vdk-mb-success {
    display: none;
}

.vdk-mb-success.show {
    display: block;
    animation: vdk-mb-fadeIn 0.3s ease;
}

@keyframes vdk-mb-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vdk-mb-card-success {
    text-align: center;
    border-color: #c8e6c9;
    background: linear-gradient(180deg, #f0f9f1 0%, #ffffff 100%);
}

.vdk-mb-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #43a047;
    color: #ffffff;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
    animation: vdk-mb-pulse 2s ease infinite;
}

@keyframes vdk-mb-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(67, 160, 71, 0.5);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {
    #vdk-mobile-block {
        padding: 0 12px;
    }
    
    .vdk-mb-card {
        padding: 24px 18px;
        border-radius: 14px;
    }
    
    .vdk-mb-icon,
    .vdk-mb-success-icon {
        width: 64px;
        height: 64px;
    }
    
    .vdk-mb-title {
        font-size: 19px;
    }
    
    .vdk-mb-subtitle {
        font-size: 14px;
    }
    
    .vdk-mb-features {
        padding: 14px 16px;
    }
    
    .vdk-mb-features li {
        font-size: 13px;
    }
    
    .vdk-mb-form-title {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .vdk-mb-card {
        padding: 20px 16px;
    }
    
    .vdk-mb-title {
        font-size: 18px;
    }
}

/* ==========================================================================
   DARK MODE (futur-proof, non active actuellement sur Verdeko)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Reserve pour plus tard si dark mode active */
}
