/**
 * Alkalois Custom — Devis Form stylesheet
 * =======================================
 * 1. Wrap
 * 2. Mode choice (pills)
 * 3. Progress bar
 * 4. Steps & step titles
 * 5. Fields (inputs, textarea, select)
 * 6. Grid helper
 * 7. Choice pills
 * 8. Conditional blocks
 * 9. Offer pills
 * 10. Navigation buttons
 * 11. Success & error
 * 12. reCAPTCHA badge
 * 13. Responsive (media queries)
 */


/* =============================================
   1. Wrap
   ============================================= */

.adv-wrap {
    background: #111013;
    color: #fff;
    font-family: "Sora", sans-serif;
    max-width: 840px;
    margin: 0 auto;
    padding: 52px 36px;
    box-sizing: border-box;
}


/* =============================================
   2. Mode choice
   ============================================= */

.adv-mode-intro {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    line-height: 1.8;
    margin: 0 0 22px;
    text-align: center;
}

.adv-mode-intro strong {
    color: #fff;
    font-weight: 600;
}

.adv-mode-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.adv-mode-pill {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    cursor: pointer;
    font-family: "Sora", sans-serif;
    transition: .22s all;
    user-select: none;
}

.adv-mode-pill:hover {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.04);
}

.adv-mode-pill.is-selected {
    border-color: #e8600a;
    background: rgba(232,96,10,.07);
    box-shadow: 0 0 0 1px #e8600a;
}

.adv-mode-pill input[type=radio] { display: none; }

.adv-mode-pill-icon {
    font-size: 26px;
    flex-shrink: 0;
    line-height: 1;
}

.adv-mode-pill-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.adv-mode-pill-body strong {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.adv-mode-pill-body em {
    font-style: normal;
    font-size: 12px;
    color: rgba(255,255,255,.38);
    line-height: 1.35;
}

.adv-mode-pill.is-selected .adv-mode-pill-body em {
    color: rgba(232,96,10,.7);
}

#adv-mode-block { margin-bottom: 0; }

#adv-mode-block.has-selection {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}


/* =============================================
   3. Progress bar
   ============================================= */

.adv-progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 54px;
}

.adv-progress::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: rgba(255,255,255,.1);
    z-index: 0;
}

.adv-prog-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.adv-prog-dot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: #111013;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.28);
    transition: .3s all;
    margin-bottom: 8px;
}

.adv-prog-label {
    font-size: 10px;
    color: rgba(255,255,255,.28);
    text-align: center;
    line-height: 1.3;
    transition: .3s color;
    max-width: 64px;
}

.adv-prog-step.is-active .adv-prog-dot {
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(255,255,255,.06);
}

.adv-prog-step.is-active .adv-prog-label {
    color: rgba(255,255,255,.9);
}

.adv-prog-step.is-done .adv-prog-dot {
    border-color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
}

.adv-prog-step.is-done .adv-prog-label {
    color: rgba(255,255,255,.45);
}


/* =============================================
   4. Steps & step titles
   ============================================= */

.adv-step { display: none; }
.adv-step.is-active { display: block; }

.adv-step-title {
    font-family: "Sora", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}


/* =============================================
   5. Fields
   ============================================= */

.adv-field { margin-bottom: 22px; }

.adv-field > label:first-child {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 9px;
    letter-spacing: .015em;
}

.adv-field > label > em {
    font-style: normal;
    color: rgba(255,255,255,.38);
    margin-left: 2px;
}

.adv-field input[type=text],
.adv-field input[type=email],
.adv-field input[type=tel],
.adv-field input[type=date],
.adv-field select,
.adv-field textarea {
    width: 100%;
    background: #111013;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 999px;
    color: #fff;
    font-family: "Sora", sans-serif;
    font-size: 14px;
    padding: 12px 20px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none;
}

.adv-field textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 100px;
}

.adv-field input:focus,
.adv-field select:focus,
.adv-field textarea:focus {
    border-color: #e8600a;
}

.adv-field input::placeholder,
.adv-field textarea::placeholder {
    color: rgba(255,255,255,.22);
}

.adv-field input.adv-err,
.adv-field textarea.adv-err {
    border-color: rgba(255,80,80,.75) !important;
}

.adv-field select option {
    background: #1a191e;
    color: #fff;
}

.adv-field input[type=date]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: .45;
    cursor: pointer;
}


/* =============================================
   6. Grid helper
   ============================================= */

.adv-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}


/* =============================================
   7. Choice pills
   ============================================= */

.adv-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.adv-choice-group.adv-col { flex-direction: column; }

.adv-choice-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 30px;
    cursor: pointer;
    font-family: "Sora", sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,.65);
    transition: .2s all;
    user-select: none;
    line-height: 1.3;
    box-sizing: border-box;
}

.adv-choice-group.adv-col .adv-choice-pill { border-radius: 10px; }

.adv-choice-pill:hover {
    border-color: rgba(255,255,255,.65);
    color: #fff;
    background: rgba(255,255,255,.04);
}

.adv-choice-pill.is-selected {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,.08);
}

.adv-choice-pill.adv-err-pill {
    border-color: rgba(255,80,80,.55) !important;
}

.adv-choice-pill input[type=radio],
.adv-choice-pill input[type=checkbox] {
    display: none;
}


/* =============================================
   8. Conditional blocks
   ============================================= */

.adv-cond { display: none; }
.adv-cond.is-visible { display: block; }


/* =============================================
   9. Offer pills
   ============================================= */

.adv-offers-cat-label {
    font-family: "Sora", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255,255,255,.35);
    margin: 16px 0 6px;
}

.adv-offers-group { margin-bottom: 8px; }

.adv-offer-pill {
    border-radius: 12px !important;
    padding: 12px 16px !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
}

.adv-offer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.adv-offer-titre {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
}

.adv-offer-note {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adv-offer-price {
    flex-shrink: 0;
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
    line-height: 1.2;
}

.adv-offer-price em {
    display: block;
    font-style: normal;
    font-size: 10px;
    font-weight: 400;
    color: rgba(255,255,255,.35);
}

.adv-offer-pill.is-selected .adv-offer-price { color: #e8600a; }

.adv-no-offers {
    font-size: 13px;
    color: rgba(255,255,255,.35);
    font-style: italic;
    margin: 4px 0 0;
}


/* =============================================
   10. Navigation buttons
   ============================================= */

.adv-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.adv-btn {
    font-family: "Sora", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: .22s all;
    letter-spacing: .03em;
    outline: none;
}

.adv-btn-prev {
    background: transparent;
    color: rgba(255,255,255,.45);
    border: 1px solid rgba(255,255,255,.18);
}

.adv-btn-prev:hover {
    color: #fff;
    border-color: rgba(255,255,255,.55);
}

.adv-btn-next,
.adv-btn-submit {
    background: #fff;
    color: #111013;
    border: 1px solid #fff;
    margin-left: auto;
}

.adv-btn-next:hover,
.adv-btn-submit:hover {
    background: rgba(255,255,255,.87);
}


/* =============================================
   11. Success & error
   ============================================= */

.adv-success {
    background: #111013;
    color: #fff;
    text-align: center;
    padding: 80px 40px;
    font-family: "Sora", sans-serif;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
}

.adv-success-icon {
    display: block;
    font-size: 52px;
    margin-bottom: 20px;
}

.adv-success h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px;
}

.adv-success p {
    color: rgba(255,255,255,.58);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.adv-error {
    background: rgba(255,60,60,.08);
    border: 1px solid rgba(255,90,90,.3);
    color: #ff9090;
    padding: 12px 18px;
    border-radius: 10px;
    margin: 0 auto 20px;
    font-family: "Sora", sans-serif;
    font-size: 13px;
    max-width: 840px;
    box-sizing: border-box;
}


/* =============================================
   12. reCAPTCHA badge
   ============================================= */

.grecaptcha-badge {
    opacity: .4;
    transition: opacity .3s;
}

.grecaptcha-badge:hover {
    opacity: 1;
}


/* =============================================
   13. Responsive
   ============================================= */

@media(max-width:620px) {
    .adv-wrap { padding: 28px 16px; }
    .adv-grid-2 { grid-template-columns: 1fr; }
    .adv-mode-pills { grid-template-columns: 1fr; }
    .adv-mode-pill { padding: 16px 18px; }
    .adv-prog-label { display: none; }
    .adv-prog-dot { width: 28px; height: 28px; font-size: 11px; }
    .adv-progress::before { top: 14px; }
    .adv-step-title { font-size: 17px; }
    .adv-choice-pill { font-size: 12px; padding: 10px 14px; }
}
