/* ===== Agenda: descoberta de profissionais e fluxo de agendamento ===== */

.ag_secao {
	grid-column: 1 / -1;
	min-width: 0;
}

.ag_secao_topo {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.ag_rotulo {
	display: block;
	margin-bottom: 8px;
	color: var(--mind-a);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.ag_titulo_secao {
	margin: 0;
	color: var(--foreground);
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	font-weight: 500;
	line-height: 1.1;
}

.ag_descricao_secao {
	max-width: 560px;
	margin-top: 9px;
	color: var(--muted-foreground);
	font-size: .88rem;
	line-height: 1.6;
}

.ag_acesso_rapido {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--muted-foreground);
	font-size: .78rem;
}

.ag_filtros {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 280px) auto;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.ag_busca {
	position: relative;
	display: block;
}

.ag_busca svg {
	position: absolute;
	top: 50%;
	left: 15px;
	width: 18px;
	height: 18px;
	color: var(--muted-foreground);
	transform: translateY(-50%);
	pointer-events: none;
}

.ag_busca input,
.ag_select {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--border);
	border-radius: 15px;
	background-color: #fff;
	color: var(--foreground);
	font-size: .84rem;
	outline: none;
	transition: .2s ease;
}

.ag_busca input {
	padding: 10px 15px 10px 44px;
}

.ag_select {
	padding: 10px 40px 10px 15px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}



/* =========================================
   AGENDA - ETAPA PACOTES
========================================= */

.ag_pacotes_lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px;
    margin: 20px 0;
}

.ag_pacote_card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
    transition: border-color .2s, box-shadow .2s;
    min-width: 0;
}

.ag_pacote_card:hover {
    border-color: #93b9a5;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .07);
}

.ag_pacote_topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ag_pacote_nome {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #1f2937;
    margin: 0;
}

.ag_pacote_quantidade {
    font-size: 13px;
    color: #64748b;
    margin: 5px 0 0;
}

.ag_pacote_valor {
    font-size: 20px;
    font-weight: 700;
    color: #24734d;
    white-space: nowrap;
}

.ag_pacote_descricao {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    flex: 1;
}

.ag_pacote_card .ag_btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.ag_pacote_compra {
    padding: 22px;
    margin-top: 18px;
    background: #f8fafc;
    border: 1px solid #dce5df;
    border-radius: 16px;
}

.ag_pacote_compra_titulo {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}

.ag_pacote_compra_acoes {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.ag_pacote_compra_acoes .ag_btn {
    flex: 1;
    min-width: 160px;
    justify-content: center;
}

.ag_pacotes_saldo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f3faf5;
    border: 1px solid #cfe8d7;
    border-radius: 14px;
}

.ag_pacotes_saldo p {
    margin: 0;
    color: #345444;
    line-height: 1.5;
}

.ag_pacotes_saldo .ag_btn {
    align-self: flex-start;
}

@media (max-width: 600px) {
    .ag_pacotes_lista {
        grid-template-columns: 1fr;
    }

    .ag_pacote_topo {
        flex-direction: column;
    }

    .ag_pacote_valor {
        font-size: 22px;
    }

    .ag_pacote_compra_acoes {
        flex-direction: column;
    }

    .ag_pacote_compra_acoes .ag_btn {
        width: 100%;
        min-width: 0;
    }
}


/* Descrição dos pacotes criada no Quill */

/* Corrigir quebra de palavras na descrição do Quill */


/* Descrição dos pacotes - correção de quebra de palavras */

.ag_pacote_card .ag_pacote_descricao.ql-editor {
    display: block !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    margin: 0;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;

    text-align: left;
    line-height: 1.7;
}

/* Preservar palavras inteiras nos elementos internos */
.ag_pacote_card .ag_pacote_descricao.ql-editor p,
.ag_pacote_card .ag_pacote_descricao.ql-editor li,
.ag_pacote_card .ag_pacote_descricao.ql-editor span,
.ag_pacote_card .ag_pacote_descricao.ql-editor strong,
.ag_pacote_card .ag_pacote_descricao.ql-editor em {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* Evitar espaços indevidos no conteúdo */
.ag_pacote_card .ag_pacote_descricao.ql-editor p {
    margin: 0 0 12px;
    line-height: 1.7;
}


/* Container da descrição */
.ag_pacote_descricao {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
    line-height: 1.7;
}

/* Parágrafos do Quill */
.ag_pacote_descricao.ql-editor p {
    margin: 0 0 12px;
    line-height: 1.7;
}

/* Listas do Quill */
.ag_pacote_descricao.ql-editor ul,
.ag_pacote_descricao.ql-editor ol {
    margin: 10px 0;
}

/* Imagens inseridas no Quill */
.ag_pacote_descricao.ql-editor img {
    max-width: 100%;
    height: auto;
}

.ag_pacote_descricao.ql-editor a {
    color: #24734d;
    text-decoration: underline;
}

.ag_busca input:focus,
.ag_select:focus,
.ag_campo input:focus,
.ag_campo textarea:focus {
	border-color: color-mix(in oklab, var(--mind-b) 65%, transparent);
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--mind-b) 11%, transparent);
}

.ag_contagem {
	color: var(--muted-foreground);
	font-size: .74rem;
	font-weight: 500;
	white-space: nowrap;
}

.ag_grade {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 16px;
}

.ag_card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 10px 40px -30px color-mix(in oklab, var(--mind-a) 50%, transparent);
	cursor: pointer;
	transition: .2s ease;
}

.ag_card:hover {
	border-color: color-mix(in oklab, var(--mind-b) 45%, var(--border));
	box-shadow: 0 20px 45px -32px color-mix(in oklab, var(--mind-a) 60%, transparent);
	transform: translateY(-2px);
}

.ag_card:focus-visible {
	outline: 2px solid var(--mind-b);
	outline-offset: 2px;
}

.ag_card_topo {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ag_avatar {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border: 3px solid color-mix(in oklab, var(--mind-b) 15%, white);
	border-radius: 50%;
	background: color-mix(in oklab, var(--mind-b) 13%, var(--surface-2));
	color: var(--foreground);
	font-size: 1rem;
	font-weight: 600;
}

.ag_avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ag_avatar_grande {
	width: 96px;
	height: 96px;
	border-width: 4px;
	font-size: 1.3rem;
	box-shadow: 0 10px 28px -22px var(--foreground);
}

.ag_card_nome {
	margin: 0;
	color: var(--foreground);
	font-family: var(--font-display);
	font-size: 1.12rem;
	font-weight: 500;
	line-height: 1.2;
}

.ag_card_esp {
	margin-top: 3px;
	color: var(--mind-a);
	font-size: .76rem;
	font-weight: 600;
}

.ag_card_area {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--muted-foreground);
	font-size: .78rem;
	line-height: 1.55;
	/* -webkit-line-clamp: 2;
	-webkit-box-orient: vertical; */
}

.ag_tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ag_tag {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 10px;
	border: 1px solid color-mix(in oklab, var(--mind-b) 22%, var(--border));
	border-radius: 999px;
	background: color-mix(in oklab, var(--mind-b) 9%, white);
	color: var(--foreground);
	font-size: .68rem;
	font-weight: 550;
}

.ag_tag_neutra {
	border-color: var(--border);
	background: var(--surface-2);
	color: var(--muted-foreground);
}

.ag_card_rodape {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}

.ag_preco {
	color: var(--muted-foreground);
	font-size: .68rem;
}

.ag_preco strong {
	display: block;
	color: var(--foreground);
	font-size: .95rem;
	font-weight: 650;
}

.ag_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 650;
	white-space: nowrap;
	cursor: pointer;
	transition: .2s ease;
}

.ag_btn svg {
	width: 16px;
	height: 16px;
}

.ag_btn_principal {
	background: var(--foreground);
	color: var(--background);
}

.ag_btn_secundario {
	border: 1px solid var(--border);
	background: var(--surface-2);
	color: var(--foreground);
}

.ag_btn_pix {
	background: #16a34a;
	color: #fff;
}

.ag_btn_cartao {
	background: var(--foreground);
	color: #fff;
}

.ag_btn_pacote {
	background: var(--foreground);
	color: var(--background);
}

.ag_btn:hover:not(:disabled) {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.ag_btn:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.ag_estado {
	display: grid;
	grid-column: 1 / -1;
	place-items: center;
	min-height: 220px;
	padding: 30px;
	border: 1px dashed var(--border);
	border-radius: 22px;
	color: var(--muted-foreground);
	font-size: .82rem;
	text-align: center;
}



/*
NOVO AG Observacoes
*/

.ag_observacoes {
    overflow: hidden;
}

.ag_observacoes_titulo {
    margin: 0 0 10px;
	font-family: var(--font-display);
	color: var(--muted-foreground);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;

}


.ag_observacoes_titulo::-webkit-details-marker {
    display: none;
}

.ag_observacoes_seta {
    width: 8px;
    height: 8px;
    border-right: 2px solid #777;
    border-bottom: 2px solid #777;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.ag_observacoes[open] .ag_observacoes_seta {
    transform: rotate(225deg);
}

.ag_observacoes_conteudo {
    padding-top: 14px;
}

.ag_observacoes_conteudo .ag_texto {
    margin: 0;
    line-height: 1.6;
}



.ag_estado strong {
	display: block;
	margin-bottom: 4px;
	color: var(--foreground);
	font-size: .9rem;
}

/* Modal do fluxo de agendamento */

body.ag_modal_aberto {
	overflow: hidden;
}

.ag_overlay {
	position: fixed;
	inset: 0;
	z-index: 9990;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 22px;
	background: color-mix(in oklab, var(--foreground) 42%, transparent);
	backdrop-filter: blur(7px);
}

.ag_overlay.ativo {
	display: flex;
}

.ag_caixa {
	display: flex;
	flex-direction: column;
	width: min(100%, 780px);
	max-height: calc(100vh - 44px);
	overflow: hidden;
	border: 1px solid color-mix(in oklab, var(--border) 82%, white);
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 35px 100px -40px color-mix(in oklab, var(--foreground) 45%, transparent);
	animation: modalCriarContaEntrada .22s ease;
}

.ag_topo {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--border);
}

.ag_icone_btn {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: #fff;
	color: var(--foreground);
	cursor: pointer;
	transition: .2s ease;
}

.ag_icone_btn:hover:not(:disabled) {
	background: var(--surface-2);
}

.ag_icone_btn:disabled {
	opacity: .35;
	cursor: default;
}

.ag_icone_btn.oculto {
	visibility: hidden;
}

.ag_icone_btn svg {
	width: 18px;
	height: 18px;
}

.ag_etapas {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag_etapa {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted-foreground);
	font-size: .68rem;
	font-weight: 600;
	white-space: nowrap;
}

.ag_etapa + .ag_etapa::before {
	content: '';
	width: 16px;
	height: 1px;
	margin-right: 2px;
	background: var(--border);
}

.ag_etapa_num {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 1px solid var(--border);
	border-radius: 50%;
	font-size: .66rem;
}

.ag_etapa.ativa {
	color: var(--foreground);
}

.ag_etapa.ativa .ag_etapa_num {
	border-color: var(--foreground);
	background: var(--foreground);
	color: var(--background);
}

.ag_etapa.feita .ag_etapa_num {
	border-color: transparent;
	background: color-mix(in oklab, var(--life) 35%, white);
	color: var(--foreground);
}

.ag_conteudo {
	flex: 1;
	overflow-y: auto;
	padding: 26px 28px;
}

.ag_rodape {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 22px;
	border-top: 1px solid var(--border);
	background: #fff;
	flex-wrap: wrap;
}

.ag_rodape:empty {
	display: none;
}

.ag_rodape_info {
	margin-right: auto;
	color: var(--muted-foreground);
	font-size: .76rem;
}

.ag_rodape_info strong {
	color: var(--foreground);
}

.ag_titulo_etapa {
	margin: 0;
	color: var(--foreground);
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 3.5vw, 1.75rem);
	font-weight: 500;
	line-height: 1.15;
}

.ag_subtitulo_etapa {
	margin-top: 6px;
	color: var(--muted-foreground);
	font-size: .8rem;
	line-height: 1.6;
}

.ag_perfil_topo {
	display: flex;
	align-items: center;
	gap: 20px;
}

.ag_perfil_nome {
	margin: 0;
	color: var(--foreground);
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 4vw, 1.9rem);
	font-weight: 500;
	line-height: 1.15;
}

.ag_perfil_esp {
	margin-top: 4px;
	color: var(--mind-a);
	font-size: .82rem;
	font-weight: 650;
}

.ag_bloco {
	margin-top: 22px;
}

.ag_bloco_titulo {
	margin: 0 0 10px;
	
	color: var(--muted-foreground);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ag_texto {
    margin: 0;
    color: var(--foreground);
    font-size: .84rem;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: break-word;
    word-break: normal;
}
.ag_info_grade {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
}

.ag_info {
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface-2);
}

.ag_info span {
	display: block;
	margin-bottom: 4px;
	color: var(--muted-foreground);
	font-size: .64rem;
	font-weight: 650;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ag_info strong {
	display: block;
	color: var(--foreground);
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.ag_opcoes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 10px;
}

.ag_opcao {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid var(--border);
	border-radius: 16px;
	background: #fff;
	color: var(--foreground);
	text-align: left;
	cursor: pointer;
	transition: .2s ease;
}

.ag_opcao:hover {
	border-color: color-mix(in oklab, var(--mind-b) 50%, var(--border));
}

.ag_opcao.selecionada {
	border-color: var(--foreground);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--mind-b) 15%, transparent);
}

.ag_opcao_check {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 1.5px solid var(--border);
	border-radius: 50%;
	color: transparent;
}

.ag_opcao_check svg {
	width: 12px;
	height: 12px;
}

.ag_opcao.selecionada .ag_opcao_check {
	border-color: var(--foreground);
	background: var(--foreground);
	color: #fff;
}

.ag_opcao_nome {
	flex: 1;
	font-size: .82rem;
	font-weight: 600;
}

.ag_opcao_valor {
	color: var(--mind-a);
	font-size: .8rem;
	font-weight: 650;
	white-space: nowrap;
}

.ag_resumo {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: color-mix(in oklab, var(--surface-2) 70%, white);
}

.ag_resumo .ag_avatar {
	width: 52px;
	height: 52px;
	font-size: .9rem;
}

.ag_resumo_info {
	flex: 1;
	min-width: 0;
}

.ag_resumo_info strong {
	display: block;
	color: var(--foreground);
	font-size: .88rem;
}

.ag_resumo_info small {
	display: block;
	margin-top: 2px;
	color: var(--muted-foreground);
	font-size: .74rem;
	line-height: 1.5;
}

.ag_link_btn {
	padding: 4px;
	border: 0;
	background: none;
	color: var(--mind-a);
	font-size: .74rem;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Calendário */

.ag_agenda_grade {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: start;
	gap: 18px;
	margin-top: 20px;
}

.ag_cal,
.ag_horarios {
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: 20px;
}

.ag_horarios {
	background: color-mix(in oklab, var(--surface-2) 60%, white);
}

.ag_cal_topo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.ag_cal_topo strong {
	color: var(--foreground);
	font-size: .88rem;
}

.ag_cal_semana,
.ag_cal_dias {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 5px;
}

.ag_cal_semana span {
	padding: 4px 0;
	color: var(--muted-foreground);
	font-size: .62rem;
	font-weight: 650;
	text-align: center;
	text-transform: uppercase;
}

.ag_dia {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	min-height: 34px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 11px;
	background: transparent;
	color: var(--foreground);
	font-size: .78rem;
	font-weight: 600;
	transition: .15s ease;
}

.ag_dia_livre {
	border-color: #86efac;
	background: #dcfce7;
	color: #166534;
	cursor: pointer;
}

.ag_dia_livre:hover {
	background: #bbf7d0;
	transform: translateY(-1px);
}

.ag_dia_livre.selecionado {
	border-color: #16a34a;
	background: #16a34a;
	color: #fff;
	box-shadow: 0 6px 16px -8px #16a34a;
}

.ag_dia_ponto {
	position: absolute;
	bottom: 4px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
}

.ag_dia_bloqueado {
	border-color: #fecaca;
	background: #fef2f2;
	color: #b91c1c;
	cursor: not-allowed;
}

.ag_dia_bloqueado .ag_dia_num {
	opacity: .6;
}

.ag_dia_x {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 11px;
	height: 11px;
	color: #dc2626;
}

.ag_dia_passado {
	color: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
	cursor: default;
}

.ag_dia_carregando {
	background: var(--surface-2);
	color: transparent;
	animation: agPulso 1.2s ease-in-out infinite;
}

.ag_dia_vazio {
	visibility: hidden;
}

.ag_cal_aviso {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--surface-2);
	color: var(--muted-foreground);
	font-size: .72rem;
	line-height: 1.5;
}

.ag_cal_legenda {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 12px;
	color: var(--muted-foreground);
	font-size: .68rem;
}

.ag_legenda_cor {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 5px;
	border-radius: 4px;
	vertical-align: -2px;
}

.ag_legenda_livre {
	border: 1px solid #86efac;
	background: #dcfce7;
}

.ag_legenda_bloqueado {
	border: 1px solid #fecaca;
	background: #fef2f2;
}

.ag_horarios_topo {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 12px;
}

.ag_horarios_topo strong {
	color: var(--foreground);
	font-size: .84rem;
}

.ag_horarios_topo span {
	color: var(--muted-foreground);
	font-size: .72rem;
}

.ag_horarios_grade {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
	gap: 8px;
}

.ag_horario {
	min-height: 40px;
	border: 1px solid color-mix(in oklab, var(--mind-b) 30%, var(--border));
	border-radius: 11px;
	background: #fff;
	color: var(--foreground);
	font-size: .76rem;
	font-weight: 650;
	cursor: pointer;
	transition: .15s ease;
}

.ag_horario:hover,
.ag_horario.selecionado {
	border-color: var(--foreground);
	background: var(--foreground);
	color: var(--background);
}

.ag_vazio_pequeno {
	padding: 22px 8px;
	color: var(--muted-foreground);
	font-size: .76rem;
	line-height: 1.55;
	text-align: center;
}

/* Formulários do fluxo */

.ag_abas {
	display: inline-flex;
	gap: 4px;
	margin-bottom: 18px;
	padding: 5px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface-2);
}

.ag_aba {
	min-height: 38px;
	padding: 8px 16px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--muted-foreground);
	font-size: .78rem;
	font-weight: 600;
	cursor: pointer;
}

.ag_aba.ativa {
	background: var(--foreground);
	color: var(--background);
}

.ag_form_grade {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 13px;
}

.ag_campo {
	min-width: 0;
}

.ag_campo_100 {
	grid-column: 1 / -1;
}

.ag_campo label {
	display: block;
	margin-bottom: 7px;
	color: var(--foreground);
	font-size: .72rem;
	font-weight: 650;
}

.ag_opcional {
	color: var(--muted-foreground);
	font-weight: 500;
}

.ag_campo input,
.ag_campo textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
	color: var(--foreground);
	font-size: .8rem;
	outline: none;
	transition: .2s ease;
}

.ag_campo textarea {
	min-height: 84px;
	resize: vertical;
}

.ag_form_links {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
	font-size: .74rem;
}

.ag_feedback {
	display: none;
	margin-top: 14px;
	padding: 11px 13px;
	border-radius: 13px;
	font-size: .75rem;
	line-height: 1.5;
}

.ag_feedback.visivel {
	display: block;
}

.ag_feedback.erro {
	background: color-mix(in oklab, var(--destructive) 10%, transparent);
	color: var(--destructive);
}

.ag_feedback.sucesso {
	background: color-mix(in oklab, var(--life) 18%, transparent);
	color: var(--foreground);
}

.ag_feedback a {
	font-weight: 650;
	text-decoration: underline;
}

.ag_sucesso_icone {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: color-mix(in oklab, var(--life) 30%, white);
	color: #166534;
}

.ag_sucesso_icone svg {
	width: 26px;
	height: 26px;
}

.ag_carregando {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 14px;
	min-height: 260px;
	color: var(--muted-foreground);
	font-size: .82rem;
	text-align: center;
}

.ag_spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--border);
	border-top-color: var(--mind-a);
	border-radius: 50%;
	animation: agGirar .8s linear infinite;
}

@keyframes agGirar {
	to {
		transform: rotate(360deg);
	}
}

@keyframes agPulso {
	50% {
		opacity: .45;
	}
}

@media (max-width: 760px) {
	.ag_filtros {
		grid-template-columns: 1fr;
	}

	.ag_agenda_grade {
		grid-template-columns: 1fr;
	}

	.ag_etapa_texto {
		display: none;
	}

	.ag_etapa.ativa .ag_etapa_texto {
		display: inline;
	}
}

@media (max-width: 560px) {
	.ag_overlay {
		align-items: flex-end;
		padding: 0;
	}

	.ag_caixa {
		width: 100%;
		max-height: 94vh;
		border-radius: 24px 24px 0 0;
	}

	.ag_conteudo {
		padding: 22px 18px;
	}

	.ag_perfil_topo {
		flex-direction: column;
		align-items: flex-start;
	}

	.ag_form_grade {
		grid-template-columns: 1fr;
	}

	.ag_rodape_info {
		width: 100%;
	}

	.ag_rodape .ag_btn {
		flex: 1;
	}
}


/* =========================================
   ETAPA PAGAMENTO / CONFIRMAÇÃO / MODAL DE PACOTES
========================================= */

.ag_btn_destaque {
	min-height: 50px;
	padding: 12px 26px;
	background: linear-gradient(180deg, #134a7c 0%, #0c355d 100%);
	color: #fff;
	font-size: .86rem;
	font-weight: 700;
	letter-spacing: .01em;
	box-shadow: 0 12px 26px -12px rgba(12, 53, 93, .75);
}

.ag_btn_destaque:hover:not(:disabled) {
	filter: brightness(1.12);
	box-shadow: 0 16px 30px -12px rgba(12, 53, 93, .85);
}

.ag_btn_destaque svg {
	width: 18px;
	height: 18px;
}

.ag_btn_grande {
	min-height: 48px;
	padding: 11px 22px;
	font-size: .82rem;
	font-weight: 700;
}

.ag_spinner_pequeno {
	width: 20px;
	height: 20px;
	border-width: 2px;
	flex-shrink: 0;
}

/* Cabeçalho da etapa */

.ag_pg_cabecalho {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.ag_pg_cabecalho_icone {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: #e6f4f1;
	color: #1d7a70;
}

.ag_pg_cabecalho_icone svg {
	width: 28px;
	height: 28px;
}

/* Resumo detalhado (profissional, data, horário, valor) */

.ag_resumo_det {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	align-items: center;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 30px -26px rgba(15, 40, 70, .6);
}

.ag_resumo_det > div {
	min-width: 0;
	padding: 16px 18px;
}

.ag_resumo_det > div + div {
	border-left: 1px solid var(--border);
}

.ag_resumo_det_prof {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ag_resumo_det_prof .ag_avatar {
	width: 60px;
	height: 60px;
}

.ag_resumo_det_prof strong {
	display: block;
	color: #0f2f52;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.ag_resumo_det_prof small {
	display: block;
	margin-top: 3px;
	color: var(--muted-foreground);
	font-size: .76rem;
}

.ag_resumo_det_item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.ag_resumo_det_item > svg {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	color: #1f5d93;
}

.ag_resumo_det_item span {
	display: block;
	margin-bottom: 3px;
	color: var(--muted-foreground);
	font-size: .7rem;
}

.ag_resumo_det_item strong {
	display: block;
	color: #0f2f52;
	font-size: .8rem;
	font-weight: 700;
	line-height: 1.35;
}

.ag_resumo_det_valor {
	display: inline-block !important;
	padding: 4px 10px;
	border-radius: 10px;
	background: #e3f5ec;
	color: #11613d !important;
	font-size: .95rem !important;
	white-space: nowrap;
}

/* Seção "Suas consultas disponíveis" */

.ag_pg_secao_topo {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.ag_pg_secao_icone {
	flex-shrink: 0;
	color: #0f3b63;
}

.ag_pg_secao_icone svg {
	width: 26px;
	height: 26px;
}

.ag_pg_secao_titulo {
	margin: 0;
	color: #0f2f52;
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.25;
}

.ag_pg_secao_texto {
	margin: 3px 0 0;
	color: var(--muted-foreground);
	font-size: .78rem;
	line-height: 1.5;
}

.ag_pg_aviso,
.ag_pg_forma {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 15px 18px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface-2);
}

.ag_pg_aviso_alerta {
	border-color: #f3dcae;
	background: #fff8ea;
}

.ag_pg_aviso_alerta .ag_pg_aviso_icone {
	color: #d99a06;
}

.ag_pg_aviso_ok,
.ag_pg_forma_ok {
	border-color: #bfe3cf;
	background: #effaf3;
}

.ag_pg_aviso_ok .ag_pg_aviso_icone,
.ag_pg_forma_ok .ag_pg_aviso_icone {
	color: #16824f;
}

.ag_pg_aviso_icone {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	color: #1f5d93;
}

.ag_pg_aviso_icone svg {
	width: 26px;
	height: 26px;
}

.ag_pg_aviso_texto {
	flex: 1;
	min-width: 0;
}

.ag_pg_aviso_texto strong {
	display: block;
	color: #0f2f52;
	font-size: .84rem;
	font-weight: 700;
	line-height: 1.4;
}

.ag_pg_aviso_texto span {
	display: block;
	margin-top: 2px;
	color: var(--muted-foreground);
	font-size: .76rem;
	line-height: 1.5;
}

.ag_pg_aviso_lado {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
}

.ag_pg_selo {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border: 1px solid #d9dee5;
	border-radius: 999px;
	background: #f1f3f6;
	color: #3d4b5c;
	font-size: .72rem;
	font-weight: 650;
	white-space: nowrap;
}

.ag_pg_selo_ok {
	border-color: #9fd6b7;
	background: #d8f2e3;
	color: #11613d;
}

/* Opções: usar consulta disponível x pagar individual */

.ag_pg_opcoes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.ag_pg_opcao {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid var(--border);
	border-radius: 16px;
	background: #fff;
	color: var(--foreground);
	text-align: left;
	cursor: pointer;
	transition: .2s ease;
}

.ag_pg_opcao:hover {
	border-color: #8fb3d6;
}

.ag_pg_opcao.selecionada {
	border-color: #0f3b63;
	box-shadow: 0 0 0 3px rgba(19, 74, 124, .13);
}

.ag_pg_opcao.selecionada .ag_opcao_check {
	border-color: #0f3b63;
	background: #0f3b63;
	color: #fff;
}

.ag_pg_opcao_info {
	flex: 1;
	min-width: 0;
}

.ag_pg_opcao_info strong {
	display: block;
	color: #0f2f52;
	font-size: .82rem;
}

.ag_pg_opcao_info small {
	display: block;
	margin-top: 2px;
	color: var(--muted-foreground);
	font-size: .72rem;
	line-height: 1.45;
}

.ag_pg_opcao_valor {
	color: #0f2f52;
	font-size: .82rem;
	font-weight: 700;
	white-space: nowrap;
}

.ag_pg_opcao_valor_ok {
	color: #11613d;
}

/* Botão de pacotes + dica */

.ag_pg_pacotes {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 14px;
	margin-top: 18px;
}

.ag_pg_btn_pacotes {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 60px;
	padding: 12px 18px;
	border: 1.5px solid #0f3b63;
	border-radius: 16px;
	background: #fff;
	color: #0f3b63;
	font-size: .92rem;
	font-weight: 700;
	cursor: pointer;
	transition: .2s ease;
}

.ag_pg_btn_pacotes svg {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.ag_pg_btn_pacotes:hover:not(:disabled) {
	background: #f1f6fb;
	transform: translateY(-1px);
}

.ag_pg_btn_pacotes:disabled {
	border-color: var(--border);
	color: var(--muted-foreground);
	cursor: not-allowed;
}

.ag_pg_dica {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 18px;
	border-radius: 16px;
	background: #e7f4ef;
	color: #23443a;
	font-size: .78rem;
	line-height: 1.5;
}

.ag_pg_dica > svg {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	color: #1f4f45;
}

/* Rodapé informativo */

.ag_pg_rodape_info {
	display: flex;
	flex: 1 1 260px;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.5;
}

.ag_pg_rodape_info > svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: #3d4b5c;
}

.ag_pg_pagar_depois {
	margin-right: auto;
	color: var(--muted-foreground);
}

/* Confirmação */

.ag_pg_forma_rotulo {
	margin: 0 0 2px !important;
	color: var(--muted-foreground) !important;
	font-size: .66rem !important;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ag_pg_nota {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 16px 0 0;
	color: var(--muted-foreground);
	font-size: .74rem;
	line-height: 1.55;
}

.ag_pg_nota svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 1px;
}

/* Modal de pacotes (fica por cima do agendamento) */

.ag_pacotes_overlay {
	z-index: 9995;
}

.ag_pacotes_caixa {
	width: min(100%, 860px);
}

.ag_pacotes_topo {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 22px 24px 18px;
	border-bottom: 1px solid var(--border);
}

.ag_pg_opcional {
	display: inline-block;
	margin-bottom: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #e7f4ef;
	color: #1f6a4c;
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ag_pacotes_caixa .ag_pacotes_lista {
	margin: 0;
}

.ag_pacote_economia {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 12px;
	background: #e3f5ec;
	color: #11613d;
	font-size: .76rem;
	line-height: 1.4;
}

.ag_pacote_economia svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.ag_pacote_economia_neutra {
	background: var(--surface-2);
	color: var(--muted-foreground);
}

.ag_pacote_card.aberto {
	border-color: #0f3b63;
	box-shadow: 0 0 0 3px rgba(19, 74, 124, .1);
}

.ag_pacote_card.aberto [data-ag-pacote] {
	display: none;
}

.ag_pacote_card .ag_pacote_compra {
	margin-top: 0;
	padding: 16px;
}

.ag_pacote_card .ag_pacote_compra_acoes .ag_btn {
	width: auto;
	min-width: 0;
	margin-top: 0;
}

.ag_pacote_compra .ag_texto {
	white-space: normal;
}

@media (max-width: 760px) {
	.ag_resumo_det {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ag_resumo_det_prof {
		grid-column: 1 / -1;
		border-bottom: 1px solid var(--border);
	}

	.ag_resumo_det > div + div {
		border-left: 0;
	}

	.ag_resumo_det_item + .ag_resumo_det_item {
		border-left: 1px solid var(--border) !important;
	}

	.ag_pg_pacotes,
	.ag_pg_opcoes {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.ag_pg_cabecalho_icone {
		width: 42px;
		height: 42px;
		border-radius: 13px;
	}

	.ag_pg_cabecalho_icone svg {
		width: 22px;
		height: 22px;
	}

	.ag_resumo_det {
		grid-template-columns: 1fr;
	}

	.ag_resumo_det_item + .ag_resumo_det_item {
		border-left: 0 !important;
	}

	.ag_resumo_det > div + div {
		border-top: 1px solid var(--border);
	}

	.ag_resumo_det_prof {
		border-bottom: 0;
	}

	.ag_resumo_det > div {
		padding: 12px 16px;
	}

	.ag_pg_aviso {
		flex-wrap: wrap;
	}

	.ag_pg_aviso_lado {
		flex-direction: row;
		align-items: center;
		width: 100%;
		justify-content: space-between;
	}

	.ag_pacotes_topo {
		padding: 18px;
	}

	.ag_rodape .ag_btn_destaque,
	.ag_rodape .ag_btn_grande {
		width: 100%;
	}

	.ag_pg_pagar_depois {
		order: 3;
		width: 100%;
		margin: 0;
		text-align: center;
	}
}


/* Aviso de parcelamento do pacote (PIX só à vista) */
.ag_pacote_parcelas_aviso {
	display: flex;
	gap: 8px;
	margin: 10px 0 0;
	padding: 9px 12px;
	border-radius: 12px;
	background: #eef4fb;
	color: #1f4a73;
	font-size: .74rem;
	line-height: 1.5;
}

.ag_pacote_parcelas_aviso[hidden] {
	display: none;
}

.ag_pacote_compra_acoes .ag_btn_pix:disabled {
	border: 1px dashed #b9c3cf;
	background: #f1f3f6;
	color: #6b7785;
	opacity: 1;
}
