/* ========================================
   DDM CONCEPT — PEINTURE — ARTISAN BLEU
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #1e3a5f;
    --blue-light: #2d5a8e;
    --blue-pale: #e8eef5;
    --gold: #c9a96e;
    --gold-light: #f5eddc;
    --green-sage: #4a7c6f;
    --warm: #f5f0e8;
    --warm-dark: #ebe4d6;
    --brown: #8b6f4e;
    --black: #1a1a1a;
    --gray: #5a5a5a;
    --gray-light: #8a8a8a;
    --gray-border: #ddd5ca;
    --white: #ffffff;
    --terra: #b85c38;
    --terra-light: #f8ede6;
    --terra-pale: #fdf6f2;
    --radius: 14px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* REVEAL */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].show {
    opacity: 1;
    transform: none;
}

/* ========================================
   NAV
   ======================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray);
}
.nav-links a:hover { color: var(--blue); }

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue);
}

.dot-green {
    width: 7px; height: 7px;
    background: #34c759;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50% { opacity:0.5; transform:scale(0.8); }
}

/* ========================================
   HERO
   ======================================== */
.hero {
    background: var(--warm);
    overflow: hidden;
}

.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    font-weight: 400;
    line-height: 1.12;
    color: var(--blue);
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 440px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--blue);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}
.btn:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30,58,95,0.2);
}

.btn-full { width: 100%; }

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--blue);
    transform: translateY(-2px);
}

.btn-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gold);
}
.btn-text:hover { text-decoration: underline; }

/* HERO TRUST */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--gray);
}
.hero-trust strong { color: var(--blue); }
.hero-trust .sep {
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
}

/* HERO VISUAL — IMAGE */
.hero-visual { position: relative; }

.hero-img-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 60px rgba(30,58,95,0.18);
}

.hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.hero-img-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* COLOR STRIP */
.color-strip {
    display: flex;
    height: 6px;
}
.color-strip span {
    flex: 1;
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
    padding: 32px 24px;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.trust-items {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 44px; height: 44px;
    min-width: 44px;
    background: var(--blue-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-icon svg { stroke: var(--blue); }

.trust-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--black);
}
.trust-item span {
    font-size: 0.78rem;
    color: var(--gray-light);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 96px 0;
}

.section-blue {
    background: var(--blue);
    color: var(--white);
}

.section-warm {
    background: var(--warm);
}

.overline {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 12px;
    text-align: center;
}
.overline-light { color: var(--gold); }

.title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
    margin-bottom: 56px;
    color: var(--blue);
}
.title-light { color: var(--white); }
.title-left { text-align: left; }

/* ========================================
   SERVICES
   ======================================== */
/* Section labels (Peinture / Carrelage) */
.service-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}
.ssl-icon {
    font-size: 1.1rem;
}
.label-peinture {
    background: var(--blue-pale);
    color: var(--blue);
    border: 1.5px solid rgba(30,58,95,0.15);
}
.label-carrelage {
    background: var(--terra-light);
    color: var(--terra);
    border: 1.5px solid rgba(184,92,56,0.15);
}

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

.service {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1.5px solid transparent;
}
.service:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Carrelage cards — terracotta accents */
.services-grid--carrelage .service {
    background: var(--terra-pale);
    border-color: rgba(184,92,56,0.1);
}
.services-grid--carrelage .service:hover {
    border-color: rgba(184,92,56,0.2);
}
.services-grid--carrelage .service h3 {
    color: var(--terra);
}
.services-grid--carrelage .service li::before {
    background: var(--terra);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-body {
    padding: 32px 28px;
}

.service h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--blue);
    margin-bottom: 8px;
}

.service > .service-body > p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 14px;
}

.service ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.service li {
    font-size: 0.82rem;
    color: var(--gray-light);
    padding-left: 16px;
    position: relative;
}
.service li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

/* ========================================
   PROCESS
   ======================================== */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-step {
    text-align: center;
}

.p-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2.4rem;
    color: var(--gold);
    margin-bottom: 12px;
    line-height: 1;
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
}

/* ========================================
   STATS
   ======================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    color: var(--blue);
    line-height: 1;
}
.stat-suf {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--gold);
}
.stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--gray-light);
    margin-top: 4px;
}

/* ========================================
   TIMELINE GALLERY (Avant / Pendant / Après)
   ======================================== */
.timeline-gallery {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: center;
    margin-bottom: 32px;
}

.tl-step {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tl-step img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.tl-label {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--white);
    color: var(--gray);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 16px;
    border-radius: 50px;
}

.tl-label-blue {
    background: var(--blue);
    color: var(--white);
}

.tl-label-gold {
    background: var(--gold);
    color: var(--white);
}

.tl-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    margin: 0 -20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(30,58,95,0.2);
}

.tl-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.tl-info strong {
    font-size: 1rem;
    color: var(--blue);
    display: block;
    margin-bottom: 4px;
}

.tl-info p {
    font-size: 0.88rem;
    color: var(--gray-light);
    line-height: 1.6;
}

/* ========================================
   REVIEWS
   ======================================== */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review {
    background: var(--warm);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform 0.3s ease;
}
.review:hover { transform: translateY(-3px); }

.review-stars {
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.review blockquote {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.65;
    margin-bottom: 20px;
    font-style: italic;
}

.review-who {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-who strong {
    display: block;
    font-size: 0.85rem;
    color: var(--black);
}
.review-who span {
    font-size: 0.75rem;
    color: var(--gray-light);
}

/* ========================================
   IMAGE BREAK
   ======================================== */
.img-break {
    width: 100%;
    height: 360px;
    overflow: hidden;
    position: relative;
}

.img-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   CTA BREAK
   ======================================== */
.cta-break {
    background: var(--blue);
    padding: 72px 24px;
    text-align: center;
}

.cta-break h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--white);
    margin-bottom: 8px;
}

.cta-break p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 28px;
    font-size: 1rem;
}

.cta-break-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
    max-width: 680px;
    margin: 0 auto;
}

.faq {
    border-bottom: 1px solid var(--gray-border);
}

.faq summary {
    padding: 20px 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--gray-light);
    transition: transform 0.3s ease;
}
.faq[open] summary::after { transform: rotate(45deg); color: var(--gold); }
.faq summary:hover { color: var(--blue); }

.faq p {
    padding-bottom: 20px;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.65;
}

/* ========================================
   FORM
   ======================================== */
.form-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.form-left .title { text-align: left; margin-bottom: 20px; }
.form-left .overline { text-align: left; }

.form-desc {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 28px;
}

.form-checks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.form-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray);
}

.form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 15px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--warm);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--black);
    outline: none;
    transition: 0.2s ease;
}
.form input::placeholder,
.form textarea::placeholder { color: var(--gray-light); }

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(30,58,95,0.08);
}

.form select {
    cursor: pointer;
    appearance: none;
    color: var(--gray-light);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a8a8a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form select:valid { color: var(--black); }

.form textarea { resize: vertical; min-height: 80px; }

.form .btn { margin-top: 4px; }

.form-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-top: 2px;
}

.form-success { display: none; text-align: center; padding: 40px; }
.form-success.show { display: block; }
.success-icon {
    width: 56px; height: 56px;
    background: var(--blue-pale);
    color: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
}
.form-success h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 6px;
}
.form-success p {
    color: var(--gray);
    margin-bottom: 20px;
}
.form.hidden { display: none; }

/* ========================================
   ZONES
   ======================================== */
.zones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.zone {
    background: var(--warm);
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue);
    border: 1px solid var(--gray-border);
    transition: 0.3s ease;
}
.zone:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--blue);
    color: rgba(255,255,255,0.6);
    padding: 48px 0 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    font-size: 1.05rem;
    color: var(--white);
    display: block;
    margin-bottom: 6px;
}

.footer-top p { font-size: 0.85rem; line-height: 1.5; }
.footer-siret { font-size: 0.75rem; opacity: 0.5; margin-top: 6px; }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}
.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}
.footer-links a:hover { color: var(--gold); }
.footer-hours { font-size: 0.8rem; opacity: 0.4; margin-top: 4px; }

.footer-bottom {
    padding: 18px 0;
    font-size: 0.75rem;
    opacity: 0.4;
    text-align: center;
}

/* ========================================
   FLOATING
   ======================================== */
.float-btn {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 90;
    width: 54px; height: 54px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(30,58,95,0.35);
    transition: 0.3s ease;
}
.float-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(30,58,95,0.45);
}

.mobile-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 10px 16px;
    gap: 10px;
}

.mb-phone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 2px solid var(--blue);
    border-radius: 50px;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.88rem;
}

.mb-devis {
    flex: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--blue);
    border-radius: 50px;
    color: var(--white);
    font-weight: 700;
    font-size: 0.88rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 24px 40px;
    }
    .hero-visual { max-width: 360px; margin: 0 auto; }
    .nav-links { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .process { grid-template-columns: repeat(2, 1fr); }
    .timeline-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 400px;
        margin: 0 auto 32px;
    }
    .tl-step img { height: 240px; }
    .tl-arrow {
        margin: 0 auto;
        transform: rotate(90deg);
    }
    .reviews { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .form-wrap {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .form-left .title,
    .form-left .overline {
        text-align: center;
    }
    .form-desc { text-align: center; }
    .form-checks { align-items: center; }
    .trust-items { grid-template-columns: repeat(2, 1fr); }
    .footer-top { flex-direction: column; gap: 20px; }
    .footer-links { align-items: flex-start; }
}

@media (max-width: 680px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-ctas { flex-direction: column; align-items: flex-start; gap: 12px; }
    .btn { width: 100%; }
    .hero-trust { flex-wrap: wrap; gap: 10px; }
    .process { grid-template-columns: 1fr 1fr; gap: 24px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form { padding: 24px; }
    .cta-break-actions { flex-direction: column; }
    .cta-break-actions .btn { width: 100%; max-width: 300px; }
    .float-btn { display: none; }
    .mobile-bar { display: flex; }
    body { padding-bottom: 68px; }
}

@media (max-width: 480px) {
    .trust-items { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .title { font-size: 1.7rem; }
    .palette-float { display: none; }
}

/* ========================================
   CHATBOT
   ======================================== */
.chatbot {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 95;
}

.chatbot-toggle {
    width: 56px;
    height: 56px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(30,58,95,0.35);
    transition: 0.3s ease;
    position: relative;
}
.chatbot-toggle::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #34c759;
    border-radius: 50%;
    border: 2px solid var(--white);
}
.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(30,58,95,0.45);
}
.chatbot-toggle.hide { display: none; }

.chatbot-window {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 370px;
    height: 520px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
    flex-direction: column;
    overflow: hidden;
}
.chatbot-window.open {
    display: flex;
    animation: chatIn 0.3s ease;
}

@keyframes chatIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: none; }
}

.chatbot-header {
    background: var(--blue);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.chatbot-header strong {
    display: block;
    font-size: 0.92rem;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    opacity: 0.7;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
    padding: 4px;
}
.chatbot-close:hover { opacity: 1; }

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chatbot-input {
    padding: 12px 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
    min-height: 56px;
    max-height: 45%;
    overflow-y: auto;
}

/* Messages */
.chat-msg {
    max-width: 85%;
    padding: 11px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: msgIn 0.3s ease;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.chat-msg.bot {
    background: var(--warm);
    color: var(--black);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: var(--blue);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 14px 20px;
}
.typing-indicator span {
    width: 7px;
    height: 7px;
    background: var(--gray-light);
    border-radius: 50%;
    animation: typeDot 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typeDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

/* Buttons */
.chat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chat-btn {
    background: var(--white);
    border: 1.5px solid var(--blue);
    color: var(--blue);
    padding: 9px 16px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}
.chat-btn:hover {
    background: var(--blue);
    color: var(--white);
}

/* Text input */
.chat-text-input {
    display: flex;
    gap: 8px;
}

.chat-text-input input {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid var(--gray-border);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: 0.2s;
}
.chat-text-input input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}

.chat-send {
    width: 42px;
    height: 42px;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}
.chat-send:hover { background: var(--blue-light); }

.chat-done {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #34c759;
    padding: 8px;
}

/* ========= FORM WIZARD (step-by-step) ========= */
.form-wizard {
    position: relative;
}

.form-wizard .fw-step {
    display: none;
    animation: fwIn 0.4s ease;
}
.form-wizard .fw-step.active {
    display: block;
}

@keyframes fwIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.fw-question {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--blue);
    margin-bottom: 18px;
    line-height: 1.4;
}

.fw-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fw-option {
    background: var(--white);
    border: 2px solid var(--blue);
    color: var(--blue);
    padding: 12px 22px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}
.fw-option:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,58,95,0.2);
}

.fw-text-row {
    display: flex;
    gap: 10px;
}

.fw-text-row input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gray-border);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
}
.fw-text-row input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}

.fw-text-row .fw-next-btn {
    width: 50px;
    height: 50px;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fw-text-row .fw-next-btn:hover {
    background: var(--blue-light);
}

.fw-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}

.fw-dot {
    width: 32px;
    height: 5px;
    background: var(--gray-border);
    border-radius: 10px;
    transition: 0.3s ease;
}
.fw-dot.done {
    background: var(--gold);
}
.fw-dot.current {
    background: var(--blue);
}

.fw-recap {
    background: var(--warm);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
}
.fw-recap p {
    font-size: 0.88rem;
    color: var(--gray);
    margin-bottom: 4px;
}
.fw-recap strong {
    color: var(--blue);
}

.fw-success {
    text-align: center;
    padding: 20px 0;
}
.fw-success .success-icon {
    width: 56px;
    height: 56px;
    background: #34c759;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    font-weight: 700;
}
.fw-success h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--blue);
    margin-bottom: 8px;
}
.fw-success p {
    color: var(--gray);
    font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 680px) {
    .chatbot { bottom: 78px; left: 12px; }
    .chatbot-window {
        width: calc(100vw - 24px);
        height: 70vh;
        bottom: 0;
        left: 0;
        border-radius: 20px 20px 0 0;
        position: fixed;
    }
    .chatbot-toggle { width: 48px; height: 48px; }
    .chatbot-toggle svg { width: 20px; height: 20px; }
}
