/* ═══════════════════════════════════════════════
   ASM DEVIS WIZARD — Premium CSS
   ═══════════════════════════════════════════════ */
.asm-dw {
    --asm-accent: #3b7a31;
    --asm-accent-light: #e8f5e3;
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.08);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

/* ── Progress ── */
.asm-dw__progress { margin-bottom: 36px; }
.asm-dw__progress-track {
    height: 4px; background: #e9ecef; border-radius: 4px; overflow: hidden; margin-bottom: 16px;
}
.asm-dw__progress-fill {
    height: 100%; background: var(--asm-accent); border-radius: 4px;
    width: 33.33%; transition: width .5s cubic-bezier(.4,0,.2,1);
}
.asm-dw__steps-indicator {
    display: flex; justify-content: space-between;
}
.asm-dw__step-ind {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    opacity: .4; transition: opacity .3s;
}
.asm-dw__step-ind.is-active, .asm-dw__step-ind.is-done { opacity: 1; }
.asm-dw__step-num {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid #ccc; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; transition: all .3s;
}
.asm-dw__step-ind.is-active .asm-dw__step-num {
    background: var(--asm-accent); border-color: var(--asm-accent); color: #fff;
}
.asm-dw__step-ind.is-done .asm-dw__step-num {
    background: var(--asm-accent); border-color: var(--asm-accent); color: #fff;
}
.asm-dw__step-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #666; }

/* ── Steps ── */
.asm-dw__step {
    display: none;
    animation: asmDwFadeIn .5s cubic-bezier(.4,0,.2,1);
}
.asm-dw__step.is-active { display: block; }
@keyframes asmDwFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.asm-dw__step-title {
    font-size: 22px; font-weight: 700; color: #222; margin-bottom: 24px; text-align: center;
}

/* ── Services grid ── */
.asm-dw__services {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px; margin-bottom: 28px;
}
.asm-dw__svc {
    cursor: pointer; position: relative;
}
.asm-dw__svc-input { position: absolute; opacity: 0; pointer-events: none; }
.asm-dw__svc-inner {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 22px 14px; border-radius: 14px; border: 2px solid #e9ecef;
    background: #f8faf7; transition: all .3s; position: relative; gap: 8px;
}
.asm-dw__svc-inner:hover {
    border-color: var(--asm-accent); transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59,122,49,.12);
}
.asm-dw__svc-input:checked + .asm-dw__svc-inner {
    border-color: var(--asm-accent); background: var(--asm-accent-light);
    box-shadow: 0 4px 16px rgba(59,122,49,.15);
}
.asm-dw__svc-icon { font-size: 34px; color: var(--asm-accent); transition: transform .3s; }
.asm-dw__svc-input:checked + .asm-dw__svc-inner .asm-dw__svc-icon { transform: scale(1.15); }
.asm-dw__svc-label { font-size: 14px; font-weight: 700; color: #222; }
.asm-dw__svc-desc { font-size: 11px; color: #888; line-height: 1.3; }
.asm-dw__svc-check {
    position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
    border-radius: 50%; background: var(--asm-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0); transition: all .3s cubic-bezier(.4,0,.2,1);
}
.asm-dw__svc-check svg { width: 14px; height: 14px; }
.asm-dw__svc-input:checked + .asm-dw__svc-inner .asm-dw__svc-check {
    opacity: 1; transform: scale(1);
}

/* ── Fields ── */
.asm-dw__fields {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px;
}
.asm-dw__field--full { grid-column: 1 / -1; }
.asm-dw__field label {
    display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px;
}
.asm-dw__field input,
.asm-dw__field textarea {
    width: 100%; padding: 12px 16px; border: 2px solid #e9ecef; border-radius: 12px;
    font-size: 15px; transition: border-color .3s; background: #fafafa;
    font-family: inherit; resize: vertical;
}
.asm-dw__field input:focus,
.asm-dw__field textarea:focus {
    outline: none; border-color: var(--asm-accent); background: #fff;
    box-shadow: 0 0 0 3px rgba(59,122,49,.1);
}

/* Urgency */
.asm-dw__urgency { display: flex; gap: 10px; flex-wrap: nowrap; }
.asm-dw__urg-opt { cursor: pointer; flex: 1; }
.asm-dw__urg-opt input { position: absolute; opacity: 0; }
.asm-dw__urg-opt span {
    display: block; padding: 8px 12px; border: 2px solid #e9ecef;
    border-radius: 50px; font-size: 13px; font-weight: 600; transition: all .3s;
    text-align: center; white-space: nowrap;
}
.asm-dw__urg-opt input:checked + span {
    border-color: var(--asm-accent); background: var(--asm-accent); color: #fff;
}

/* ── Nav ── */
.asm-dw__nav {
    display: flex; justify-content: space-between; gap: 12px;
}
.asm-dw__btn {
    padding: 14px 32px; border: none; border-radius: 50px; font-size: 15px;
    font-weight: 700; cursor: pointer; transition: all .35s; font-family: inherit;
}
.asm-dw__btn--next,
.asm-dw__btn--submit {
    background: var(--asm-accent); color: #fff; margin-left: auto;
    box-shadow: 0 4px 16px rgba(59,122,49,.3);
}
.asm-dw__btn--next:hover,
.asm-dw__btn--submit:hover {
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,122,49,.4);
}
.asm-dw__btn--next:disabled {
    opacity: .4; cursor: not-allowed; transform: none; box-shadow: none;
}
.asm-dw__btn--back {
    background: #f0f0f0; color: #555;
}
.asm-dw__btn--back:hover { background: #e0e0e0; }

/* ── Success ── */
.asm-dw__success-inner {
    text-align: center; padding: 40px 20px;
    animation: asmDwFadeIn .6s cubic-bezier(.4,0,.2,1);
}
.asm-dw__success-icon svg {
    width: 80px; height: 80px; margin-bottom: 20px;
}
.asm-dw__success-icon circle {
    stroke-dasharray: 226; stroke-dashoffset: 226;
    animation: asmDwCircle .6s .2s forwards;
}
.asm-dw__success-icon polyline {
    stroke-dasharray: 60; stroke-dashoffset: 60;
    animation: asmDwCheck .4s .7s forwards;
}
@keyframes asmDwCircle { to { stroke-dashoffset: 0; } }
@keyframes asmDwCheck { to { stroke-dashoffset: 0; } }
.asm-dw__success-msg { font-size: 17px; color: #333; line-height: 1.6; }

/* ── Loading ── */
.asm-dw__loading {
    position: absolute; inset: 0; background: rgba(255,255,255,.9);
    display: flex; align-items: center; justify-content: center; z-index: 10;
}
.asm-dw__spinner {
    width: 40px; height: 40px; border: 3px solid #e9ecef;
    border-top-color: var(--asm-accent); border-radius: 50%;
    animation: asmSpin .7s linear infinite;
}
@keyframes asmSpin { to { transform: rotate(360deg); } }

/* RGPD */
.asm-dw__rgpd{font-size:12px;color:#777;line-height:1.5;margin-bottom:20px;}
.asm-dw__rgpd label{display:flex;gap:10px;align-items:flex-start;cursor:pointer;}
.asm-dw__rgpd-check{margin-top:3px;flex-shrink:0;width:18px;height:18px;accent-color:var(--asm-accent);}
.asm-dw__rgpd a{color:red!important;text-decoration:underline;}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .asm-dw { padding: 28px 18px; border-radius: 16px; }
    .asm-dw__services { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .asm-dw__fields { grid-template-columns: 1fr; }
    .asm-dw__step-title { font-size: 18px; }
}
@media (max-width: 480px) {
    .asm-dw { padding: 20px 14px; }
    .asm-dw__services { grid-template-columns: 1fr 1fr; }
    .asm-dw__svc-inner { padding: 16px 10px; }
    .asm-dw__svc-icon { font-size: 28px; }
    .asm-dw__btn { padding: 12px 20px; font-size: 14px; }
    .asm-dw__urgency { flex-wrap: nowrap; gap: 6px; }
    .asm-dw__urg-opt span { padding: 8px 8px; font-size: 11px; }
    .asm-dw__nav { flex-direction: column; }
    .asm-dw__btn--next, .asm-dw__btn--submit { margin-left: 0; }
    .asm-dw__step-label { font-size: 10px; }
}
