/* Apenas a página de agendamento; não alterar os estilos globais do site. */
#agendamento-page {
    --ag-ink: var(--green-dark-900, #001d1d);
    --ag-green: var(--green-light-500, #00dc00);
    --ag-paper: #f4f5f1;
    --ag-muted: #536761;
    --ag-line: #d6ded8;
    color: var(--ag-ink);
    background: var(--ag-paper);
}

#agendamento-page .ag-inner {
    width: calc(100% - 40px);
    max-width: 1280px;
    margin-inline: auto;
}

#agendamento-page *,
#agendamento-page *::before,
#agendamento-page *::after { box-sizing: border-box; }

#agendamento-page [hidden] { display: none !important; }

#agendamento-page button,
#agendamento-page input,
#agendamento-page select,
#agendamento-page textarea { font: inherit; }

#agendamento-page button { cursor: pointer; }
#agendamento-page button:disabled { cursor: default; }

#agendamento-page :is(button, input, select, textarea, summary):focus-visible {
    outline: 3px solid #428dff;
    outline-offset: 3px;
}

#agendamento-page .ag-hero {
    position: relative;
    isolation: isolate;
    min-height: 670px;
    background: var(--ag-ink);
    color: #fff;
    overflow: hidden;
}

#agendamento-page .ag-hero__image {
    position: absolute;
    inset: 0 0 0 38%;
    z-index: -1;
    background: linear-gradient(90deg, #001d1d, #001d1d26 65%),
        linear-gradient(0deg, #001d1d, transparent 55%),
        url('../agendamento/hero.webp') center / cover;
    opacity: .85;
}

#agendamento-page .ag-hero__content {
    max-width: 720px;
    padding: 60px 0 100px;
}

#agendamento-page .ag-hero__overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

#agendamento-page .ag-hero__caption {
    position: absolute;
    right: 0;
    bottom: 125px;
    max-width: 230px;
    font-size: 11px;
    line-height: 1.5;
}

#agendamento-page .ag-hero__caption span { color: #adc7ba; font-size: 9px; letter-spacing: 1.8px; }
#agendamento-page .ag-hero__caption p { margin: 8px 0 0; }

#agendamento-page .ag-hero__bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid #48665c;
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: 2px;
}

#agendamento-page .ag-hero__bottom a {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
}

#agendamento-page .ag-hero__bottom a:hover { color: var(--ag-green); }

#agendamento-page .ag-eyebrow {
    margin: 0 0 22px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 2px;
}

#agendamento-page .ag-hero .ag-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--green-light-100, #b0f4b0); }
#agendamento-page .ag-hero .ag-eyebrow::before { content: ''; flex: none; width: 24px; height: 2px; background: var(--ag-green); }

#agendamento-page .ag-hero h1 {
    margin: 0 0 25px;
    font-size: clamp(42px, 5.2vw, 78px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -3px;
}

#agendamento-page .ag-hero h1 span { color: var(--ag-green); }

#agendamento-page .ag-hero__content > p:not(.ag-eyebrow) {
    max-width: 485px;
    margin: 0 0 24px;
    color: #d8e5db;
    font-size: 18px;
    line-height: 1.6;
}

#agendamento-page .ag-hero__content > .ag-hero__note {
    margin-top: 15px !important;
    font-size: 12px !important;
}

#agendamento-page .ag-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 50px;
    padding: 13px 20px;
    border: 0;
    border-radius: 4px;
    background: var(--ag-green);
    color: var(--ag-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .5px;
    text-align: left;
}

#agendamento-page .ag-button:hover { background: var(--green-light-300, #54e854); }
#agendamento-page .ag-icon { display: inline-block; flex: none; width: 20px; height: 20px; }

#agendamento-page .ag-formats { padding: 88px 0 95px; scroll-margin-top: 120px; }

#agendamento-page .ag-formats__intro {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
    gap: 15px 9%;
}

#agendamento-page .ag-formats__intro .ag-eyebrow { grid-column: 1 / -1; color: var(--ag-muted); }

#agendamento-page .ag-formats__intro h2,
#agendamento-page .ag-closing h2 {
    margin: 0;
    font-size: clamp(30px, 3.3vw, 48px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1.8px;
}

#agendamento-page .ag-closing h2 { font-size: 38px; }

#agendamento-page .ag-formats__intro > p:last-child {
    max-width: 360px;
    margin: 0;
    color: var(--ag-muted);
    font-size: 15px;
    line-height: 1.7;
}

#agendamento-page .ag-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 42px;
    border: 1px solid var(--ag-line);
}

#agendamento-page .ag-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: 30px;
    border: 0;
    border-right: 1px solid var(--ag-line);
    background: transparent;
    color: var(--ag-ink);
    text-align: left;
    font-size: 14px;
    line-height: 1.65;
}

#agendamento-page .ag-card:last-child { border-right: 0; }
#agendamento-page .ag-card:hover { background: #e8eee4; }
#agendamento-page .ag-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#agendamento-page .ag-card__top .ag-icon { width: 28px; height: 28px; }
#agendamento-page .ag-card__number { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
#agendamento-page .ag-card__title { margin-top: 15px; font-size: 24px; font-weight: 400; line-height: 1.25; }
#agendamento-page .ag-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--ag-line);
    font-size: 12px;
    font-weight: 700;
}

#agendamento-page .ag-card__link .ag-icon { width: 22px; height: 22px; }

#agendamento-page .ag-closing {
    padding: 55px 0;
    background: #dfe8db;
}

#agendamento-page .ag-closing__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}

#agendamento-page .ag-closing .ag-eyebrow { grid-column: 1 / -1; margin: 0; color: var(--ag-muted); }

#agendamento-page .ag-dialog {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(760px, 100%);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: #f8f9f5;
    color: var(--ag-ink);
    overflow: auto;
    overscroll-behavior: contain;
}

#agendamento-page .ag-dialog::backdrop { background: #001d1dbf; }

#agendamento-page .ag-dialog__head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 22px 36px;
    border-bottom: 1px solid var(--ag-line);
    background: #f8f9f5;
}

#agendamento-page .ag-dialog__brand { font-size: 20px; font-weight: 700; line-height: 1.2; }
#agendamento-page .ag-dialog__brand small { display: block; margin-top: 4px; font-size: 9px; letter-spacing: 2px; }

#agendamento-page .ag-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid var(--ag-line);
    background: transparent;
    color: var(--ag-ink);
    font-size: 26px;
    line-height: 1;
}

#agendamento-page .ag-icon-button:disabled { opacity: .3; }
#agendamento-page .ag-dialog__content { padding: 34px 36px 38px; }
#agendamento-page .ag-dialog__content > h2 { margin: 0; font-size: 40px; font-weight: 600; line-height: 1.2; }
#agendamento-page .ag-dialog__intro { margin: 15px 0; color: var(--ag-muted); font-size: 14px; line-height: 1.7; }

#agendamento-page .ag-steps {
    display: flex;
    margin: 26px 0;
    padding: 0;
    border-bottom: 1px solid var(--ag-line);
    list-style: none;
}

#agendamento-page .ag-steps li {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
    padding: 0 4px 16px;
    color: #60786c;
    font-size: 12px;
    line-height: 1.3;
}

#agendamento-page .ag-steps li.is-active { border-bottom: 2px solid var(--ag-ink); color: var(--ag-ink); font-weight: 700; }
#agendamento-page .ag-steps li span {
    display: grid;
    flex: none;
    place-items: center;
    width: 23px;
    height: 23px;
    border: 1px solid var(--ag-line);
    border-radius: 50%;
}

#agendamento-page .ag-steps li.is-active span { border-color: var(--ag-ink); background: var(--ag-ink); color: #fff; }

#agendamento-page .ag-step label:not(.ag-consent) {
    display: block;
    margin: 20px 0 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

#agendamento-page .ag-step label > span:not(.ag-optional) { color: #416054; }
#agendamento-page .ag-optional { color: var(--ag-muted); font-weight: 400; }

#agendamento-page .ag-step :is(input:not([type='checkbox']):not([type='hidden']), textarea, select) {
    display: block;
    width: 100%;
    min-height: 47px;
    padding: 11px 12px;
    border: 1px solid #b9c9bc;
    border-radius: 0;
    background: #fff;
    color: var(--ag-ink);
    font-size: 14px;
    line-height: 1.5;
}

#agendamento-page .ag-step textarea { min-height: 90px; resize: vertical; }
#agendamento-page .ag-step :is(input, textarea)::placeholder { color: #667c70; }
#agendamento-page .ag-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }

#agendamento-page .ag-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.65;
}

#agendamento-page .ag-consent input {
    flex: none;
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    accent-color: var(--ag-ink);
}

#agendamento-page .ag-consent span { color: var(--ag-ink) !important; }
#agendamento-page .ag-help { margin: 9px 0; color: var(--ag-muted); font-size: 12px; line-height: 1.6; }
#agendamento-page .ag-captcha { margin: 19px 0 8px; }
#agendamento-page .ag-required { margin: 20px 0; font-size: 11px; color: var(--ag-muted); }
#agendamento-page .ag-error { min-height: 1em; margin: 9px 0; color: #a12c20; font-size: 13px; line-height: 1.5; }

#agendamento-page .ag-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--ag-line);
}

#agendamento-page .ag-actions > span { color: var(--ag-muted); font-size: 12px; }
#agendamento-page .ag-back { display: inline-flex; align-items: center; gap: 7px; padding: 10px 0; border: 0; background: transparent; color: var(--ag-ink); font-size: 13px; }
#agendamento-page .ag-step h3 { margin: 18px 0 10px; font-size: 21px; font-weight: 600; line-height: 1.3; }
#agendamento-page .ag-calendar { margin-top: 22px; padding: 20px; border: 1px solid var(--ag-line); background: #fff; }
#agendamento-page .ag-calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
#agendamento-page .ag-calendar__head h4 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; text-transform: capitalize; }
#agendamento-page .ag-calendar__week,
#agendamento-page .ag-calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
#agendamento-page .ag-calendar__week { margin-bottom: 12px; color: var(--ag-muted); text-align: center; font-size: 10px; }
#agendamento-page .ag-calendar__days button { min-height: 42px; padding: 0; border: 0; background: transparent; color: var(--ag-ink); font-size: 13px; }
#agendamento-page .ag-calendar__days button:hover:enabled { background: #e2eedc; }
#agendamento-page .ag-calendar__days button:disabled { color: #a6b2aa; }
#agendamento-page .ag-calendar__days button.is-selected,
#agendamento-page .ag-times button.is-selected { background: var(--ag-ink); color: #fff; }
#agendamento-page .ag-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
#agendamento-page .ag-times button { min-height: 43px; border: 1px solid var(--ag-line); background: #fff; color: var(--ag-ink); font-size: 13px; }
#agendamento-page .ag-review { margin: 20px 0; padding: 6px 20px; border: 1px solid var(--ag-line); background: #fff; overflow-wrap: anywhere; }
#agendamento-page .ag-review dl { margin: 0; }
#agendamento-page .ag-review__row { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 15px; padding: 13px 0; border-bottom: 1px solid #e5eae1; font-size: 13px; line-height: 1.5; }
#agendamento-page .ag-review__row:last-child { border: 0; }
#agendamento-page .ag-review dt { color: var(--ag-muted); }
#agendamento-page .ag-review dd { margin: 0; }
#agendamento-page .ag-success h3 { margin: 32px 0 16px; font-size: 30px; font-weight: 600; line-height: 1.25; }
#agendamento-page .ag-success > p { margin: 0 0 20px; font-size: 14px; line-height: 1.7; }

@media (max-width: 800px) {
    #agendamento-page .ag-hero__caption { display: none; }
    #agendamento-page .ag-hero__image { left: 20%; opacity: .55; }
    #agendamento-page .ag-hero { min-height: 620px; }
    #agendamento-page .ag-hero__content { padding: 55px 0 100px; }
    #agendamento-page .ag-hero h1 { font-size: 58px; }
    #agendamento-page .ag-formats { padding: 60px 0; }
    #agendamento-page .ag-formats__intro { grid-template-columns: 1fr; gap: 15px; }
    #agendamento-page .ag-cards { grid-template-columns: 1fr; }
    #agendamento-page .ag-card { border-right: 0; border-bottom: 1px solid var(--ag-line); }
    #agendamento-page .ag-card:last-child { border-bottom: 0; }
    #agendamento-page .ag-closing { padding: 45px 0; }
    #agendamento-page .ag-closing h2 { font-size: 30px; }
}

@media (max-width: 480px) {
    #agendamento-page .ag-hero { min-height: 590px; }
    #agendamento-page .ag-hero__image { left: 0; opacity: .38; }
    #agendamento-page .ag-hero__content { padding: 45px 0 95px; }
    #agendamento-page .ag-hero h1 { font-size: 46px; letter-spacing: -2px; }
    #agendamento-page .ag-hero__content > p:not(.ag-eyebrow) { font-size: 15px; }
    #agendamento-page .ag-formats__intro h2 { font-size: 34px; }
    #agendamento-page .ag-closing__inner { grid-template-columns: 1fr; }
    #agendamento-page .ag-closing .ag-eyebrow { grid-column: 1; }
    #agendamento-page .ag-closing .ag-button { justify-self: start; }
    #agendamento-page .ag-dialog__head { padding: 17px 20px; }
    #agendamento-page .ag-dialog__content { padding: 24px 20px; }
    #agendamento-page .ag-dialog__content > h2 { font-size: 34px; }
    #agendamento-page .ag-fields { grid-template-columns: 1fr; }
    #agendamento-page .ag-steps li { gap: 4px; font-size: 10px; }
    #agendamento-page .ag-calendar { padding: 12px; }
    #agendamento-page .ag-calendar__days button { min-height: 38px; }
    #agendamento-page .ag-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #agendamento-page .ag-review { padding: 5px 13px; }
    #agendamento-page .ag-review__row { grid-template-columns: 85px minmax(0, 1fr); gap: 10px; font-size: 12px; }
    #agendamento-page .ag-actions .ag-button { gap: 8px; padding: 12px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    #agendamento-page * { scroll-behavior: auto !important; }
}
