/* ==========================================================================
   Contratar (fieldbox.energy/contratar): pedido de proposta em 4 passos.
   Claro e escuro (html.dark), como o resto do site.
   ========================================================================== */
.ct-section { padding: 3rem 0 5rem; }
.ct {
    --ct-card: #ffffff; --ct-line: #e5e7eb; --ct-line-hover: #c7cdc4; --ct-fg: #111827; --ct-mute: #6b7280;
    --ct-lg: #87e64b; --ct-lg-ink: #3f8f17; --ct-sel: #f3fbec; --ct-input: #ffffff; --ct-off: #e5e7eb; --ct-off-fg: #9ca3af;
    max-width: 52rem; margin: 0 auto; color: var(--ct-fg);
}
html.dark .ct {
    --ct-card: #0b120f; --ct-line: #23302a; --ct-line-hover: #3c4a43; --ct-fg: #f3f4f6; --ct-mute: #9ca3af;
    --ct-lg-ink: #87e64b; --ct-sel: #101a08; --ct-input: #0b120f; --ct-off: #1f2723; --ct-off-fg: #6b7280;
}
.ct-title em { font-style: normal; color: #3f8f17; }
html.dark .ct-title em { color: #87e64b; }

.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.ct-prog { display: flex; gap: 0.5rem; margin: 0.5rem 0 0.6rem; }
.ct-prog i { flex: 1; height: 5px; border-radius: 3px; background: var(--ct-line); transition: background 0.4s ease; }
.ct-prog i.is-on { background: var(--ct-lg); }
.ct-stepno { color: var(--ct-mute); font-size: 0.875rem; font-weight: 600; margin: 0 0 1.75rem; }

.ct-step { display: none; }
.ct-step.is-on { display: block; animation: ct-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes ct-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.ct-h2 { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 0.5rem; padding: 0; }
.ct-hint { color: var(--ct-mute); margin: 0 0 1.5rem; font-size: 1rem; }

/* modalidades */
.ct-opts { display: grid; gap: 0.75rem; }
.ct-opt { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; border: 1.5px solid var(--ct-line); border-radius: 1.25rem; background: var(--ct-card); cursor: pointer; transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease; }
.ct-opt:hover { border-color: var(--ct-line-hover); }
.ct-opt input, .ct-chip input, .ct-help input { position: absolute; opacity: 0; pointer-events: none; }
.ct-opt b { display: block; font-size: 1.15rem; }
.ct-opt small { display: block; color: var(--ct-mute); font-size: 0.93rem; margin-top: 0.15rem; }
.ct-opt:has(input:checked) { border-color: var(--ct-lg); background: var(--ct-sel); }
.ct-opt:has(input:focus-visible), .ct-chip:has(input:focus-visible), .ct-help:has(input:focus-visible) { outline: 2px solid var(--ct-lg); outline-offset: 2px; }
.ct-dot { width: 1.35rem; height: 1.35rem; flex: none; border-radius: 50%; border: 2px solid var(--ct-line-hover); transition: 0.25s ease; }
.ct-opt:has(input:checked) .ct-dot, .ct-help:has(input:checked) .ct-dot { border-color: var(--ct-lg); background: var(--ct-lg); box-shadow: inset 0 0 0 4px var(--ct-sel); }
.ct-tag { margin-left: auto; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--ct-lg); color: #0b120f; font-size: 0.75rem; font-weight: 800; font-style: normal; white-space: nowrap; }

/* equipamentos */
.ct-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.ct-chip { position: relative; cursor: pointer; }
.ct-chip span { display: inline-block; padding: 0.8rem 1.3rem; border: 1.5px solid var(--ct-line); border-radius: 999px; background: var(--ct-card); font-weight: 600; transition: 0.25s ease; }
.ct-chip:hover span { border-color: var(--ct-line-hover); }
.ct-chip input:checked + span { background: var(--ct-lg); border-color: var(--ct-lg); color: #0b120f; }
.ct-sizing-off { transition: opacity 0.3s ease; }
.ct.is-sizing .ct-sizing-off { opacity: 0.3; pointer-events: none; }
.ct-help { position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.35rem; border: 1.5px dashed var(--ct-line-hover); border-radius: 1rem; cursor: pointer; font-weight: 600; margin-top: 0.25rem; }
.ct-help:has(input:checked) { border-color: var(--ct-lg); color: var(--ct-lg-ink); }

/* campos */
.ct-two { display: flex; flex-wrap: wrap; gap: 1rem; }
.ct-fld { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; flex: 1; min-width: 13rem; }
.ct-fld label, .ct-fld > span { font-size: 0.875rem; font-weight: 600; color: var(--ct-mute); }
.ct-fld label small { font-weight: 500; opacity: 0.8; }
.ct input:not([type=checkbox]):not([type=radio]), .ct select, .ct textarea {
    width: 100%; padding: 0.95rem 1.1rem; border: 1.5px solid var(--ct-line); border-radius: 0.9rem; background: var(--ct-input); color: var(--ct-fg);
    font: inherit; font-size: 1.05rem; outline: none; transition: border-color 0.2s ease;
}
.ct textarea { resize: vertical; min-height: 5.5rem; }
.ct input:focus, .ct select:focus, .ct textarea:focus { border-color: var(--ct-lg); }
.ct [aria-invalid="true"] { border-color: #ef4444 !important; }
html.dark .ct input[type=date] { color-scheme: dark; }
.ct-fixed { justify-content: center; padding: 0.9rem 1.1rem; border: 1.5px solid var(--ct-line); border-radius: 0.9rem; background: var(--ct-card); gap: 0.15rem; }
.ct-fixed b { font-size: 1.05rem; }
.ct-fixed small { color: var(--ct-mute); font-size: 0.82rem; }
[data-only] { display: none; }
[data-only].is-shown { display: flex; }

.ct-eta { border: 1.5px solid var(--ct-lg); background: var(--ct-sel); border-radius: 1.1rem; padding: 1.1rem 1.4rem; margin: 0.4rem 0 0.25rem; }
.ct-eta b { color: var(--ct-lg-ink); font-size: 1.1rem; }
.ct-eta p { color: var(--ct-mute); font-size: 0.93rem; margin: 0.25rem 0 0; }

/* resumo e consentimento */
.ct-sum { border: 1.5px solid var(--ct-line); background: var(--ct-card); border-radius: 1.25rem; padding: 0.3rem 1.4rem; margin: 0.5rem 0 1.1rem; }
.ct-sum div { display: flex; justify-content: space-between; gap: 1.25rem; padding: 0.8rem 0; border-bottom: 1px solid var(--ct-line); font-size: 0.98rem; }
.ct-sum div:last-child { border-bottom: 0; }
.ct-sum dt { color: var(--ct-mute); }
.ct-sum dd { margin: 0; font-weight: 700; text-align: right; }
.ct-consent { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.93rem; color: var(--ct-mute); cursor: pointer; }
.ct-consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: none; accent-color: #87e64b; }
.ct-consent a { color: var(--ct-lg-ink); text-decoration: underline; }

.ct-err { color: #ef4444; font-size: 0.85rem; font-weight: 600; margin: 0; min-height: 0; }
.ct-err:empty { display: none; }
.ct-err--box { margin-top: 1rem; padding: 0.8rem 1rem; border: 1px solid rgba(239, 68, 68, 0.4); border-radius: 0.75rem; background: rgba(239, 68, 68, 0.08); }

/* navegação */
.ct-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 2.25rem; }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 1rem 2rem; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.ct-go { background: var(--ct-lg); color: #0b120f; }
.ct-go:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(135, 230, 75, 0.3); }
.ct-go[disabled] { background: var(--ct-off); color: var(--ct-off-fg); cursor: not-allowed; }
.ct-go.is-busy { opacity: 0.7; cursor: progress; }
.ct-back { background: none; color: var(--ct-mute); padding-left: 0.4rem; }
.ct-back:hover { color: var(--ct-fg); }
.ct-note { color: var(--ct-mute); font-size: 0.875rem; margin-top: 1.4rem; text-align: center; }

.ct-done { text-align: center; padding: 2.5rem 0 1rem; }
.ct-done.is-on { display: block; }
.ct-ck { width: 5.5rem; height: 5.5rem; margin: 0 auto 1.4rem; color: var(--ct-lg); display: block; }
.ct-done__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }
.ct.is-done .ct-nav, .ct.is-done .ct-prog { display: none; }

@media (max-width: 560px) {
    .ct-opt { padding: 1rem; }
    .ct-tag { display: none; }
    .ct-btn { padding: 0.9rem 1.5rem; }
    .ct-sum div { flex-direction: column; gap: 0.15rem; }
    .ct-sum dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .ct-step.is-on { animation: none; } }

/* Mais espaço */
.ct-section { padding: 4rem 0 5rem; }
.ct-prog { margin-top: 0; }
.ct-stepno { margin-bottom: 2.25rem; }
.ct-hint { margin-bottom: 1.85rem; }
.ct-opts { gap: 1rem; }
.ct-chips { gap: 0.85rem 0.75rem; margin-bottom: 2rem; }
.ct-two { gap: 1.25rem; }
.ct-fld { margin-bottom: 1.4rem; }

/* Equipamentos acrescentados: botão na lista, já marcado, com × para retirar */
.ct-chip--extra span { display: inline-flex; align-items: center; gap: 0.55rem; padding-right: 0.7rem; }
.ct-chip__x { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border: 0; border-radius: 50%; background: rgba(11, 18, 15, 0.14); color: inherit; font: inherit; font-size: 0.95rem; line-height: 1; cursor: pointer; }
.ct-chip__x:hover { background: rgba(11, 18, 15, 0.28); }
.ct-chip--extra { animation: ct-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes ct-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ct-add { display: flex; gap: 0.6rem; }
.ct-add input { flex: 1; min-width: 0; }
.ct-add__btn { flex: none; padding: 0 1.2rem; border: 1.5px solid var(--ct-lg); border-radius: 0.9rem; background: transparent; color: var(--ct-lg-ink); font: inherit; font-weight: 700; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.ct-add__btn:hover:not([disabled]) { background: var(--ct-lg); color: #0b120f; }
.ct-add__btn[disabled] { opacity: 0.45; cursor: default; }

/* Local: pesquisa com sugestões e mapa */
.ct-loc__box { position: relative; }
.ct-loc__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 0.35rem); margin: 0; padding: 0.35rem; list-style: none; border: 1.5px solid var(--ct-line); border-radius: 0.9rem; background: var(--ct-card); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.35); max-height: 18rem; overflow-y: auto; }
.ct-loc__list li { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.65rem 0.8rem; border-radius: 0.6rem; cursor: pointer; }
.ct-loc__list li b { font-weight: 700; }
.ct-loc__list li small { color: var(--ct-mute); font-size: 0.82rem; }
.ct-loc__list li[aria-selected="true"], .ct-loc__list li:hover { background: var(--ct-sel); }
.ct-loc__list .ct-loc__empty { color: var(--ct-mute); cursor: default; }
.ct-loc__list .ct-loc__empty:hover { background: none; }
.ct-loc__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.15rem; }
.ct-loc__me { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; border: 1.5px solid var(--ct-line); border-radius: 999px; background: var(--ct-card); color: var(--ct-fg); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.ct-loc__me svg { width: 1rem; height: 1rem; color: var(--ct-lg-ink); }
.ct-loc__me:hover { border-color: var(--ct-lg); }
.ct-loc__me.is-busy { opacity: 0.6; cursor: progress; }
.ct-loc__hint { color: var(--ct-mute); font-size: 0.85rem; }
.ct-loc__hint.is-ok { color: var(--ct-lg-ink); font-weight: 600; }
.ct-map { height: 17rem; margin-top: 0.8rem; border: 1.5px solid var(--ct-line); border-radius: 1rem; overflow: hidden; z-index: 0; }
.ct-map[hidden] { display: none; }
html.dark .ct-map .leaflet-tile-pane { filter: brightness(0.82) contrast(1.05) saturate(0.85); }
.ct-map .leaflet-control-attribution { font-size: 10px; }

/* O formulário com a mesma largura do topo (alinhado com o título e os números) */
.ct { max-width: none; margin: 0; }
.ct-note { text-align: left; }

/* Cantos do formulário: 4px (os pontos de escolha e o × ficam redondos) */
.ct-opt, .ct-chip span, .ct-help, .ct-fixed, .ct-eta, .ct-sum, .ct-map, .ct-loc__list, .ct-loc__list li, .ct-loc__me,
.ct input:not([type=checkbox]):not([type=radio]), .ct select, .ct textarea,
.ct-add__btn, .ct-btn, .ct-tag, .ct-err--box, .ct-prog i { border-radius: 4px; }
/* o site impõe 6px a todos os botões e campos (landing.css, !important): no formulário mandam os 4px */
.ct .ct-btn, .ct .ct-add__btn, .ct .ct-loc__me, .ct input:not([type=checkbox]):not([type=radio]), .ct select, .ct textarea { border-radius: 4px !important; }
.ct-dot, .ct-chip__x { border-radius: 50%; }
.ct .ct-chip__x { border-radius: 50% !important; }

/* Chamada de qualificação, no ecrã "Pedido recebido" */
.ct-call { text-align: left; margin: 1.5rem auto 1.75rem; max-width: 40rem; padding: 1.4rem 1.5rem; border: 1.5px solid var(--ct-line); border-radius: 4px; background: var(--ct-card); }
.ct-call__title { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.35rem; }
.ct-call__days, .ct-call__times, .ct-call__how { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.ct-call__day, .ct-call__time { padding: 0.55rem 0.9rem; border: 1.5px solid var(--ct-line); border-radius: 4px !important; background: transparent; color: var(--ct-fg); font: inherit; font-weight: 600; cursor: pointer; }
.ct-call__day:hover, .ct-call__time:hover { border-color: var(--ct-line-hover); }
.ct-call__day.is-on, .ct-call__time.is-on { background: var(--ct-lg); border-color: var(--ct-lg); color: #0b120f; }
.ct-call__time { min-width: 4.6rem; font-variant-numeric: tabular-nums; }
.ct-call__ok { max-width: 40rem; margin: 1.5rem auto; text-align: left; }
.ct-fld--note { justify-content: center; }

/* Canal da chamada: o mesmo estilo dos dias e das horas */
.ct-call__ch { position: relative; cursor: pointer; }
.ct-call__ch input { position: absolute; opacity: 0; pointer-events: none; }
.ct-call__ch span { display: inline-block; padding: 0.55rem 0.9rem; border: 1.5px solid var(--ct-line); border-radius: 4px; color: var(--ct-fg); font-weight: 600; }
.ct-call__ch:hover span { border-color: var(--ct-line-hover); }
.ct-call__ch input:checked + span { background: var(--ct-lg); border-color: var(--ct-lg); color: #0b120f; }
.ct-call__ch input:focus-visible + span { outline: 2px solid var(--ct-lg); outline-offset: 2px; }

/* Indicação de parceiro (link fieldbox.energy/p/CÓDIGO) */
.ct-partner { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.5rem; padding: 0.95rem 1.2rem; border: 1.5px solid var(--ct-lg); border-radius: 1.1rem; background: var(--ct-sel); }
.ct-partner__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ct-lg); color: #0b120f; }
.ct-partner p { margin: 0; }
.ct-partner strong { display: block; font-size: 1.02rem; }
.ct-partner p span { display: block; margin-top: 0.1rem; color: var(--ct-mute); font-size: 0.9rem; }


/* Jornada A (pré-reserva) e implementação */
.ct-alt { margin: 0.6rem 0 0; font-size: 0.92rem; color: #4b5563; }
.dark .ct-alt { color: #9ca3af; }
.ct-alt a { color: #3f8f17; font-weight: 700; text-decoration: none; }
.dark .ct-alt a { color: #87e64b; }
.ct-alt a:hover { text-decoration: underline; }
.ct-journey { padding: 3rem 0 0.5rem; }
.ct-onb { padding: 3.5rem 0 4.5rem; border-top: 1px solid #e6efdf; background: #f7faf4; }
.dark .ct-onb { border-color: rgba(255, 255, 255, 0.05); background: #0b1511; }
.ct-journey__head { max-width: 46rem; margin-bottom: 1.6rem; }
.ct-journey__tag { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; background: #87e64b; color: #0b120f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.ct-journey__title { margin: 0.8rem 0 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #111827; }
.dark .ct-journey__title { color: #f3f4f6; }
.ct-journey__title em { font-style: normal; color: #3f8f17; }
.dark .ct-journey__title em { color: #9bcd74; }
.ct-journey__sub { margin: 0.7rem 0 0; color: #4b5563; }
.dark .ct-journey__sub { color: #9ca3af; }
.ct-journey__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; list-style: none; margin: 0; padding: 0; }
.ct-journey__steps li { display: flex; gap: 0.75rem; padding: 1rem 1.1rem; border: 1.5px solid #d7ebc9; border-radius: 14px; background: #ffffff; }
.dark .ct-journey__steps li { border-color: #2c3f2e; background: #0f1a14; }
.ct-journey__steps li.is-key { background: #eef8e6; border-color: #b9e19a; }
.dark .ct-journey__steps li.is-key { background: #142315; border-color: #3d5a2f; }
.ct-journey__steps b { display: grid; place-items: center; width: 2rem; height: 2.2rem; flex: none; background: #87e64b; color: #0b120f; font-weight: 800; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.ct-journey__steps strong { display: block; font-size: 0.95rem; color: #111827; }
.dark .ct-journey__steps strong { color: #f3f4f6; }
.ct-journey__steps span { display: block; margin-top: 0.15rem; font-size: 0.82rem; line-height: 1.45; color: #4b5563; }
.dark .ct-journey__steps span { color: #a9b5ad; }
@media (max-width: 1023px) { .ct-journey__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ct-journey__steps { grid-template-columns: 1fr; } }

/* Números das etapas com a forma do símbolo fieldbox (o contorno do logótipo, hexágono de cantos redondos) */
.ob-steps__n, .ct-journey__steps b {
    clip-path: none !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 207.64 186.54'%3E%3Cpath d='M203.49,80.24c-12.68-24.37-28.86-48.33-42.4-72.33-3.47-3.97-8.94-6.7-14.2-7.14-28.31-2.37-60.11,1.69-88.77.25-4.91,1.47-9.48,3.71-12.6,7.85l-14.87,25.69L2.17,83.78c-3.19,7.33-2.74,13.04.57,20.22,10.14,15.49,18.74,32.7,27.92,49.18,4.09,7.32,8.26,14.49,12.76,21.31,4.34,6.59,8.85,10.63,17.13,11.32,27.96-1.83,58.72,2.3,86.35,0,8.04-.66,12.44-4.46,16.78-10.77,15.54-22.63,27.59-50.68,42.51-74,2.93-8.33,1.14-13.42-2.7-20.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 207.64 186.54'%3E%3Cpath d='M203.49,80.24c-12.68-24.37-28.86-48.33-42.4-72.33-3.47-3.97-8.94-6.7-14.2-7.14-28.31-2.37-60.11,1.69-88.77.25-4.91,1.47-9.48,3.71-12.6,7.85l-14.87,25.69L2.17,83.78c-3.19,7.33-2.74,13.04.57,20.22,10.14,15.49,18.74,32.7,27.92,49.18,4.09,7.32,8.26,14.49,12.76,21.31,4.34,6.59,8.85,10.63,17.13,11.32,27.96-1.83,58.72,2.3,86.35,0,8.04-.66,12.44-4.46,16.78-10.77,15.54-22.63,27.59-50.68,42.51-74,2.93-8.33,1.14-13.42-2.7-20.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ob-steps__n { width: 2.6rem; height: 2.34rem; }
.ct-journey__steps b { width: 2.3rem; height: 2.07rem; }
