/* "Trazer meu roteiro do ChatGPT" (usuario Pro): botao da capa, pagina de importar (Import/Index), espera
   (Import/Wait, no estilo do Loading) e pre-importacao (Import/Preview). Cores do site: laranja #f36446, texto
   #0B1A2B e cinza #6b7c8c da barra da proxima viagem */

/* ---------- Capa ---------- */

/* Abaixo do "Voir mon planning", depois do "ou": segunda forma de comecar, branca com borda laranja */
.imp-home-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 376px;
    margin: 25px auto 0;
    padding: 9px 14px 9px 9px;
    background: #fff;
    border: 1.5px solid #f36446;
    border-radius: 18px;
    color: #0B1A2B;
    text-align: left;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
    -webkit-tap-highlight-color: transparent;
}

    .imp-home-btn:hover, .imp-home-btn:focus, .imp-home-btn:active {
        color: #0B1A2B;
        text-decoration: none;
    }

    .imp-home-btn:active {
        transform: scale(0.97);
    }

    .imp-home-btn:focus-visible {
        outline: 2px solid #f36446;
        outline-offset: 2px;
    }

@media (hover: hover) {
    .imp-home-btn:hover {
        box-shadow: 0 4px 14px rgba(243, 100, 70, 0.22);
    }
}

.imp-home-icon {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff1ec;
    color: #f36446;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.imp-home-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.imp-home-title {
    font-size: 14px;
    font-weight: bold;
}

.imp-home-sub {
    font-size: 12px;
    color: #6b7c8c;
}

.imp-home-btn .fa-angle-right {
    color: #f36446;
}

/* Barra da importacao em andamento ou pronta: a da proxima viagem (next-trip-card), com o selo da importacao */
.imp-home-pending .next-trip-badge i {
    margin-right: 5px;
}

/* A linha com o "ou" entre o "Ver meu roteiro" e o botao da importacao (25 + 20 + 25) */
.imp-home-or {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 376px;
    margin: 25px auto 0;
    height: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

    .imp-home-or::before,
    .imp-home-or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, .75);
    }

/* Capa do Pro: o "Ver meu roteiro" mais perto do formulario (10px, eram 26px do site.css) */
.div-back-home.has-import-btn #btn-show-planning {
    margin-top: 10px;
}

/* No celular o topo da capa tem altura fixa (ver .has-next-trip no site.css): o botao ocupa ~106px com a margem,
   menos os 16px que o "Ver meu roteiro" subiu */
@media (max-width: 991.98px) {
    .div-back-home.has-import-btn {
        height: 890px;
    }

    .div-back-home.has-next-trip.has-import-btn {
        height: 965px;
    }

    /* App do iPhone: o topo ganha 36px acima do menu (.div-back-home-iphone, site.css) dentro da mesma altura, e tudo
       descia menos as cartas, que ficam presas ao fim do topo: o botao da importacao ficava 36px mais perto delas do
       que no Android e no computador */
    .div-back-home.has-import-btn.div-back-home-iphone {
        height: 926px;
    }

    .div-back-home.has-next-trip.has-import-btn.div-back-home-iphone {
        height: 1001px;
    }
}

/* ---------- Pagina de importar e pre-importacao ---------- */

.imp-page {
    background: #f8f8f8;
    min-height: 100vh;
    padding: 24px 16px 64px;
}

.imp-wrap {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Selo da apresentacao do Premium (_ImportOffer): o lilas dos recursos Premium */
.imp-chip {
    align-self: flex-start;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .08em;
    color: #fff;
    background: #5146D8;
    padding: 3px 10px;
    border-radius: 99px;
}

/* Aviso antes de colar, para quem nao e Premium */
.imp-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: -6px;
    padding: 12px 14px;
    background: #F1EFFD;
    border-radius: 14px;
    color: #33299e;
    font-size: 14px;
    font-weight: 500;
}

    .imp-notice i {
        margin-top: 3px;
    }

/* Limite do mes gasto: as IAs ficam a vista, sem poder escolher (Import/Index) */
.imp-ais.is-blocked .imp-ai {
    opacity: .5;
    cursor: not-allowed;
}

.imp-box .imp-limit-cta {
    display: block;
    width: 100%;
    max-width: 376px;
    margin: 12px auto 2px;
    padding: 14px 25px;
    border-radius: 18px;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
}

/* Apresentacao do Premium: de um trecho de texto para o dia pronto */
.imp-sample {
    padding: 12px 14px;
    background: #eef1f4;
    border-radius: 14px;
    color: #3d4b59;
    font-size: 14px;
}

.imp-sample-arrow {
    margin: -8px 0;
    text-align: center;
    color: #f36446;
    font-size: 13px;
    font-weight: bold;
}

.imp-photo.imp-photo-sample {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1ec;
    color: #f36446;
    font-size: 20px;
}

.imp-actions .imp-offer-cta {
    display: block;
    width: 100%;
    max-width: 376px;
    margin: 0;
    padding: 14px 25px;
    border-radius: 18px;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
}

.imp-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    color: #0B1A2B;
    margin: -8px 0 0;
    text-wrap: balance;
}

.imp-lead {
    font-size: 16px;
    color: #3d4b59;
    margin: -6px 0 0;
}

.imp-step {
    background: #fff;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(11, 26, 43, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .imp-step[hidden] {
        display: none;
    }

.imp-step-title {
    font-size: 18px;
    font-weight: bold;
    color: #0B1A2B;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.imp-num {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f36446;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Escolha da IA */
.imp-ais {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 576px) {
    .imp-ais {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.imp-ai {
    border: 1.5px solid #e3e6ea;
    background: #fff;
    border-radius: 16px;
    padding: 12px 14px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1px;
    color: #0B1A2B;
    transition: border-color .15s ease, background-color .15s ease;
    -webkit-tap-highlight-color: transparent;
}

    .imp-ai b {
        font-size: 15px;
    }

    .imp-ai span {
        font-size: 12px;
        color: #6b7c8c;
    }

    .imp-ai[aria-checked="true"] {
        border-color: #f36446;
        background: #fff1ec;
        box-shadow: inset 0 0 0 1px #f36446;
    }

    .imp-ai:focus-visible {
        outline: 2px solid #f36446;
        outline-offset: 2px;
    }

/* Como copiar */
.imp-how {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .imp-how[hidden] {
        display: none;
    }

.imp-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.imp-option-title {
    font-weight: bold;
    font-size: 15px;
    color: #0B1A2B;
}

.imp-option p {
    margin: 0;
    color: #3d4b59;
    font-size: 15px;
}

.imp-or {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7c8c;
}

    .imp-or::before, .imp-or::after {
        content: "";
        flex: 1;
        border-top: 1px solid #eceef1;
    }

/* Icone citado no texto ("toque em [copiar]") */
.imp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f1f2f4;
    color: #0B1A2B;
    font-size: 12px;
    vertical-align: -5px;
    margin: 0 2px;
}

/* Desenho dos botoes embaixo da resposta da IA, com o que tocar marcado */
.imp-demo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Cinco icones de 30px + a dica ("← Compartilhar") cabem numa linha em 375px */
.imp-bar {
    display: flex;
    gap: 2px;
    padding: 6px 8px;
    background: #f6f7f8;
    border-radius: 12px;
    color: #5d6873;
}

    .imp-bar span {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 14px;
    }

        .imp-bar span.on {
            background: #fff;
            color: #f36446;
            box-shadow: 0 0 0 2px #f36446;
        }

.imp-tip {
    font-size: 13px;
    font-weight: bold;
    color: #f36446;
}

    .imp-tip i {
        margin-right: 6px;
    }

.imp-link-sample {
    align-self: flex-start;
    max-width: 100%;
    font-size: 13px;
    color: #0B1A2B;
    background: #f6f7f8;
    border-radius: 10px;
    padding: 6px 10px;
    overflow-wrap: anywhere;
}

    .imp-link-sample i {
        color: #6b7c8c;
        margin-right: 6px;
    }

/* Colar */
.imp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.imp-textarea {
    width: 100%;
    min-height: 150px;
    border: 1.5px solid #dfe3e7;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 16px;
    color: #0B1A2B;
    resize: vertical;
}

    .imp-textarea:focus, .imp-input:focus {
        border-color: #f36446;
        outline: none;
        box-shadow: 0 0 0 3px rgba(243, 100, 70, 0.15);
    }

.imp-hint {
    font-size: 13px;
    font-weight: 600;
    color: #00873a;
    margin-top: -4px;
}

    .imp-hint.is-warn {
        color: #b4441f;
    }

    .imp-hint[hidden], .imp-error[hidden] {
        display: none;
    }

.imp-label {
    font-size: 13px;
    font-weight: 600;
    color: #0B1A2B;
    margin: 4px 0 -6px;
}

.imp-input {
    border: 1.5px solid #dfe3e7;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 16px;
    color: #0B1A2B;
    max-width: 220px;
    background: #fff;
}

.imp-error {
    background: #fdeceb;
    color: #a3271c;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
}

.imp-form .btn-home-0 {
    margin: 6px auto 0;
}

.imp-note {
    font-size: 13px;
    color: #6b7c8c;
    text-align: center;
    margin: 0;
}

.imp-error-link {
    color: #a3271c;
    font-weight: bold;
    text-decoration: underline;
    white-space: nowrap;
}

    .imp-error-link:hover, .imp-error-link:focus {
        color: #7d1c13;
    }

/* Cancelar: o botao da pagina com borda em vez de cor, do tamanho do "Ler meu roteiro" */
.imp-cancel {
    align-self: center;
    width: 100%;
    max-width: 376px;
    padding: 13px 25px;
    background: #fff;
    border: 1.5px solid #dfe3e7;
    border-radius: 18px;
    color: #3d4b59;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
}

    .imp-cancel:hover, .imp-cancel:focus, .imp-cancel:active {
        color: #0B1A2B;
        border-color: #b9c2cb;
        text-decoration: none;
    }

    .imp-cancel:focus-visible {
        outline: 2px solid #f36446;
        outline-offset: 2px;
    }

/* Importacao em andamento ou pronta, no alto da pagina de importar */
.imp-pending {
    align-self: stretch;
}

    .imp-pending .next-trip-card {
        width: 100%;
        max-width: none;
    }

/* Minhas Viagens: as importacoes que ainda pedem atencao, acima dos roteiros salvos (o cartao da capa, um embaixo do
   outro e da mesma largura, com o "Ver" na ponta) */
.mtrip-imports {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 560px;
    margin: 16px 15px 18px;
}

.mtrip-imports-title {
    font-size: 13px;
    font-weight: bold;
    color: #6b7c8c;
}

    .mtrip-imports .next-trip-card {
        width: 100%;
        margin: 0;
    }

    .mtrip-imports .next-trip-info {
        flex: 1;
    }

/* ---------- Pre-importacao ---------- */

.imp-eyebrow {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f36446;
}

.imp-name-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: -8px;
}

    .imp-name-field .imp-label {
        margin: 0;
    }

.imp-name {
    width: 100%;
    max-width: none;
}

.imp-summary {
    font-size: 15px;
    color: #3d4b59;
    margin: -6px 0 0;
}

.imp-box {
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 14px;
    color: #3d4b59;
}

    .imp-box b {
        color: #0B1A2B;
    }

    .imp-box ul {
        margin: 6px 0 0;
        padding-left: 18px;
    }

    .imp-box p {
        margin: 4px 0 0;
    }

.imp-box-warn {
    background: #fff6e5;
    border: 1px solid #f3dfb4;
}

.imp-box-note {
    background: #faf8f4;
    border: 1px solid #eee8dd;
}

/* Sugestoes que ficaram de fora, cada uma com "+ Adicionar" (sem o recuo das listas das caixas) */
.imp-box .imp-left {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.imp-left-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 0;
    border-top: 1px solid #eee8dd;
}

.imp-left-name {
    flex: 1 1 160px;
    min-width: 0;
    color: #0B1A2B;
}

    .imp-left-name small {
        display: block;
        font-size: 12px;
        color: #6b7c8c;
    }

.imp-left-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.imp-left-day {
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    padding: 5px 8px;
    font-size: 14px;
    background: #fff;
    color: #0B1A2B;
}

.imp-left-add {
    border: 1.5px solid #f36446;
    background: #fff;
    color: #f36446;
    font-weight: bold;
    font-size: 13px;
    border-radius: 99px;
    padding: 5px 12px;
    white-space: nowrap;
}

    .imp-left-add i {
        margin-right: 5px;
    }

    .imp-left-add:disabled {
        opacity: .6;
    }

.imp-left-added {
    flex: none;
    font-size: 13px;
    font-weight: 600;
    color: #00873a;
}

    .imp-left-added i {
        margin-right: 5px;
    }

#imp-left-error {
    margin-top: 8px;
}

.imp-day {
    background: #fff;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(11, 26, 43, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.imp-day-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    border-bottom: 1px solid #eef0f2;
    padding-bottom: 8px;
}

    .imp-day-head b {
        font-size: 22px;
        font-weight: 800;
        color: #0B1A2B;
        white-space: nowrap;
    }

    .imp-day-head span {
        font-size: 12px;
        font-weight: bold;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: #a0aab3;
        text-align: right;
    }

.imp-day-title {
    font-size: 14px;
    color: #6b7c8c;
    margin-top: -6px;
}

/* Descricao da viagem (os conselhos gerais da IA): os paragrafos como vieram */
.imp-text {
    white-space: pre-line;
}

/* Dicas do dia: a mesma caixa do comentario do dia no Planning (.day-comment) */
.imp-day-comment {
    background-color: #fff3f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #333;
    white-space: pre-line;
}

.imp-place {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

/* O que a IA diz do lugar (vira a nota da atividade) */
.imp-place-note {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
    color: #3d4b59;
}

.imp-photo {
    width: 76px;
    height: 64px;
    border-radius: 12px;
    background-color: #eef0f2;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.imp-time {
    font-size: 12px;
    font-weight: bold;
    color: #f36446;
    font-variant-numeric: tabular-nums;
}

.imp-place-name {
    font-weight: bold;
    color: #0B1A2B;
    line-height: 1.25;
}

.imp-place-sub {
    font-size: 12.5px;
    color: #6b7c8c;
    overflow-wrap: anywhere;
}

/* Sem Premium: o nome sem campo (nao ha o que salvar) e, do dia 2 em diante, so o titulo e o numero de lugares */
.imp-name-static {
    width: 100%;
    max-width: none;
    font-weight: 600;
}

.imp-cut {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #33299e;
    font-size: 15px;
    font-weight: bold;
}

    .imp-cut::before, .imp-cut::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #cfcbf3;
    }

.imp-locked {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(11, 26, 43, 0.06);
}

.imp-locked-title {
    color: #0B1A2B;
    font-size: 15px;
    font-weight: bold;
}

.imp-locked-sub {
    grid-column: 1;
    color: #6b7c8c;
    font-size: 13px;
}

.imp-locked i {
    grid-column: 2;
    grid-row: 1 / 3;
    color: #5146D8;
}

/* Salvar fica preso embaixo enquanto a pessoa rola o roteiro */
.imp-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 0 -16px -12px;
    padding: 18px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(rgba(248, 248, 248, 0), #f8f8f8 35%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

    .imp-actions .btn-home-0 {
        margin-top: 0;
    }

.imp-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

    .imp-end form {
        margin: 0;
    }

.imp-link-btn {
    background: none;
    border: 0;
    padding: 6px 10px;
    color: #6b7c8c;
    font-size: 14px;
    text-decoration: underline;
}

/* Erro da importacao */
.imp-failed {
    background: #fff;
    border-radius: 22px;
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(11, 26, 43, 0.06);
}

    .imp-failed > i {
        font-size: 34px;
        color: #f36446;
    }

    .imp-failed h1 {
        font-size: 22px;
        font-weight: 800;
        color: #0B1A2B;
        margin: 0;
    }

    .imp-failed p {
        margin: 0;
        color: #3d4b59;
    }

    .imp-failed form {
        width: 100%;
        margin: 0;
    }

/* ---------- Espera (estilo do Loading) ---------- */

.imp-wait-step {
    color: #fff;
    opacity: .9;
    font-size: 14px;
    margin-top: 10px;
    min-height: 21px;
}

.imp-wait-note {
    color: #fff;
    opacity: .85;
    font-size: 13px;
    max-width: 300px;
    margin: 22px auto 0;
    padding: 0 20px;
}

/* Icones dos cartoes do baralho em fonte (os do Loading sao SVG) */
.deck-icon > i {
    font-size: 34px;
}
