/* "Voyage sur mesure" request page (page-voyage-sur-mesure.php). */

.hm-tailor__hero {
    text-align: center;
    background: var(--hm-navy, #082f3a);
    color: #FFFDF9;
    padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
}
.hm-tailor__hero .hm-eyebrow { color: var(--hm-sand, #e2c49a); }
.hm-tailor__hero h1 {
    margin: 10px 0 0;
    max-width: 20ch;
    margin-inline: auto;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -.03em;
    color: #fff;
}
.hm-tailor__lead {
    margin: 16px 0 0;
    max-width: 58ch;
    margin-inline: auto;
    color: rgba(255, 255, 255, .84);
    font-size: 1.02rem;
    line-height: 1.6;
}

.hm-tailor__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

/* --- Form --- */
.hm-tailor__form {
    background: #fff;
    border: 1px solid var(--hm-line, #e8e2d8);
    border-radius: 20px;
    padding: clamp(22px, 3vw, 34px);
    box-shadow: 0 18px 44px rgba(5, 35, 44, .07);
}

.hm-tailor__progress {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}
.hm-tailor__progress span {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: var(--hm-line, #e8e2d8);
    transition: background .2s ease;
}
.hm-tailor__progress span.is-active,
.hm-tailor__progress span.is-done { background: var(--hm-navy, #082f3a); }

.hm-tailor__step {
    display: none;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0; /* fieldset defaults to min-content, which breaks the grid */
}
.hm-tailor__step.is-active { display: block; }

.hm-tailor__step-label {
    margin: 0 0 6px;
    font: 700 .72rem var(--font-mono, monospace);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--hm-muted, #7a7062);
}
.hm-tailor__step legend {
    padding: 0;
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.2;
    color: var(--hm-navy, #082f3a);
}
.hm-tailor__hint {
    margin: 8px 0 18px;
    color: var(--hm-muted, #7a7062);
    font-size: .92rem;
}

.hm-tailor__choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}
.hm-tailor__choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border: 1.5px solid var(--hm-line, #e8e2d8);
    border-radius: 12px;
    cursor: pointer;
    font-size: .92rem;
    transition: border-color .15s ease, background .15s ease;
}
.hm-tailor__choice:hover { border-color: var(--hm-navy, #082f3a); }
.hm-tailor__choice input { accent-color: var(--hm-navy, #082f3a); width: 18px; height: 18px; }
.hm-tailor__choice:has(input:checked) {
    border-color: var(--hm-navy, #082f3a);
    background: rgba(8, 47, 58, .04);
}

.hm-tailor__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.hm-tailor__field { display: block; margin-bottom: 16px; }
.hm-tailor__field > span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .88rem;
    color: var(--hm-navy, #082f3a);
}
.hm-tailor__field input,
.hm-tailor__field select,
.hm-tailor__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--hm-line, #e8e2d8);
    border-radius: 12px;
    font: inherit;
    font-size: .95rem;
    color: var(--hm-ink, #16302F);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.hm-tailor__field input:focus,
.hm-tailor__field select:focus,
.hm-tailor__field textarea:focus {
    outline: none;
    border-color: var(--hm-navy, #082f3a);
    box-shadow: 0 0 0 3px rgba(8, 47, 58, .12);
}
.hm-tailor__field textarea { resize: vertical; }

.hm-tailor__error {
    margin: 0 0 14px;
    color: #b3261e;
    font-size: .9rem;
    font-weight: 600;
}

.hm-tailor__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.hm-tailor__back {
    border: 0;
    background: none;
    padding: 10px 4px;
    color: var(--hm-muted, #7a7062);
    font-weight: 600;
    cursor: pointer;
}
.hm-tailor__back:hover { color: var(--hm-navy, #082f3a); }
.hm-tailor__nav .hm-button { margin-left: auto; }

/* --- Sidebar --- */
.hm-tailor__side {
    position: sticky;
    top: 96px;
}
.hm-tailor__side h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
    color: var(--hm-navy, #082f3a);
}
.hm-tailor__steps {
    list-style: none;
    counter-reset: hm-tailor;
    margin: 0 0 26px;
    padding: 0;
}
.hm-tailor__steps li {
    counter-increment: hm-tailor;
    position: relative;
    padding-left: 44px;
    margin-bottom: 18px;
}
.hm-tailor__steps li::before {
    content: counter(hm-tailor);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--hm-navy, #082f3a);
    color: #fff;
    font: 700 .85rem var(--font-body, sans-serif);
}
.hm-tailor__steps strong { display: block; color: var(--hm-navy, #082f3a); font-size: .98rem; }
.hm-tailor__steps span { display: block; margin-top: 4px; color: var(--hm-muted, #7a7062); font-size: .9rem; line-height: 1.5; }

.hm-tailor__trust {
    list-style: none;
    margin: 0 0 22px;
    padding: 20px;
    border-radius: 16px;
    background: var(--hm-limestone, #f7f3ec);
}
.hm-tailor__trust li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: .91rem;
    line-height: 1.5;
}
.hm-tailor__trust li:last-child { margin-bottom: 0; }
.hm-tailor__trust li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--hm-dune, #C08A44);
}

.hm-tailor__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .92rem;
    color: var(--hm-navy, #082f3a);
    text-decoration: none;
    border-bottom: 2px solid var(--hm-dune, #C08A44);
    padding-bottom: 2px;
}
.hm-tailor__whatsapp:hover { color: var(--hm-dune, #C08A44); }

@media (max-width: 900px) {
    .hm-tailor__layout { grid-template-columns: 1fr; }
    .hm-tailor__side { position: static; }
}
