/* Explain: Styles for site header, decorative elements, cards, forms, and chat UI. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.9), rgba(250, 249, 246, 0.6));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.82), rgba(255, 255, 255, 0.52));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.media-arch {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    border-radius: 999px 999px 2.5rem 2.5rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.media-arch::after {
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(250, 249, 246, 0.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.media-soft {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem 999px 999px 2.5rem;
    box-shadow: var(--shadow-soft);
}

.floating-note {
    position: absolute;
    right: -1.25rem;
    bottom: 3rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.program-card {
    border-radius: 2.2rem;
    padding: 1.5rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.program-card:hover {
    border-color: rgba(88, 129, 87, 0.55);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.11);
    transform: translateY(-5px);
}

.badge-cat {
    display: inline-flex;
    border-radius: 999px;
    background: var(--sage-soft);
    padding: 0.45rem 0.9rem;
    color: var(--sage-dark);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.meta-chip {
    display: inline-flex;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.6);
    padding: 0.45rem 0.9rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(88, 129, 87, 0.4);
    border-radius: 999px;
    background: var(--sage-soft);
    padding: 0.32rem 0.75rem;
    color: var(--sage-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.discount-badge i {
    font-size: 0.7rem;
}

.filter-chip {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.6);
    padding: 0.5rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 300ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    border-color: var(--accent-color);
    background: var(--surface-color);
    color: var(--text-color);
}

.step-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.6);
    padding: 1.25rem;
}

.step-number {
    display: inline-flex;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.step-head .step-number {
    margin-bottom: 0;
}

.step-state {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.28rem 0.6rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.step-card.is-done {
    border-color: rgba(88, 129, 87, 0.5);
    background: rgba(233, 237, 223, 0.65);
}

.step-card.is-done .step-state {
    background: var(--sage-soft);
    color: var(--sage-dark);
}

.step-card.is-done .step-number {
    color: var(--accent-color);
}

.step-card.is-current {
    border-color: var(--accent-color);
    background: var(--surface-color);
    box-shadow: 0 18px 40px rgba(31, 46, 35, 0.12);
}

.step-card.is-current .step-state {
    background: var(--accent-color);
    color: #FFFFFF;
}

.step-card.is-current .step-number {
    color: var(--accent-color);
}

.step-card.is-pending {
    background: rgba(250, 249, 246, 0.4);
}

.step-card.is-pending .step-state {
    background: rgba(31, 46, 35, 0.07);
    color: var(--text-muted);
}

.step-card.is-pending .step-number {
    color: var(--text-muted);
}

.testimonial-card {
    border-radius: 2rem;
    padding: 1.75rem;
}

.avatar-initials {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border: 1px solid transparent;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.6;
}

.form-status:empty {
    display: none;
}

.form-status i {
    margin-top: 0.18rem;
    flex-shrink: 0;
}

.form-status.success {
    border-color: rgba(88, 129, 87, 0.4);
    background: rgba(233, 237, 223, 0.85);
    padding: 0.85rem 1.1rem;
    color: #3A5A40;
}

.form-status.notice {
    border-color: rgba(88, 129, 87, 0.32);
    background: rgba(240, 244, 230, 0.95);
    padding: 0.85rem 1.1rem;
    color: #3A5A40;
}

.form-status.error {
    border-color: rgba(155, 74, 61, 0.35);
    background: #F7E7E3;
    padding: 0.85rem 1.1rem;
    color: #7A382E;
}

.field-hint {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.6;
}

.field-hint.is-error {
    color: #9B4A3D;
    font-weight: 600;
}

.app-toast {
    pointer-events: auto;
    max-width: 26rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    background: var(--surface-color);
    padding: 0.85rem 1.25rem;
    color: var(--text-color);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.app-toast.is-error {
    border-color: rgba(155, 74, 61, 0.35);
    background: #F7E7E3;
    color: #7A382E;
}

.signature-pad {
    display: block;
    width: 100%;
    height: 200px;
    border: 1px dashed var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    touch-action: none;
}

.contract-terms {
    max-height: 22rem;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.55);
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.85;
}

.contract-terms h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.contract-terms p {
    margin: 0 0 0.75rem;
}

.curriculum-body {
    white-space: pre-line;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
}

.curriculum-body p {
    margin: 0 0 0.75rem;
}

.curriculum-body p:last-child {
    margin-bottom: 0;
}

.curriculum-body ul,
.curriculum-body ol {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding-left: 1.35rem;
}

.curriculum-body li {
    line-height: 1.8;
}

.curriculum-body li::marker {
    color: var(--accent-color);
}

.material-text {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.85;
}

.material-text p {
    margin: 0 0 0.7rem;
}

.material-text p:last-child {
    margin-bottom: 0;
}

.material-text ul,
.material-text ol {
    margin: 0 0 0.7rem;
    padding-left: 1.25rem;
}

.material-text li {
    line-height: 1.8;
}

.material-text h3 {
    margin: 0.9rem 0 0.5rem;
    color: var(--text-color);
    font-size: 0.98rem;
}

/* --- Chat da mascote Nexa --- */
.nexa-chat {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
    pointer-events: none;
}

.nexa-chat > * {
    pointer-events: auto;
}

.nexa-chat-toggle {
    position: relative;
    display: inline-flex;
    height: 4.5rem;
    width: 4.5rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    border-radius: 999px;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.nexa-chat-toggle:hover {
    border-color: var(--accent-color);
    box-shadow: 0 24px 55px rgba(31, 46, 35, 0.2);
    transform: translateY(-3px);
}

.nexa-mascot-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center top;
}

.nexa-online-dot {
    position: absolute;
    right: 0.35rem;
    top: 0.6rem;
    height: 0.85rem;
    width: 0.85rem;
    border: 2px solid var(--background-color);
    border-radius: 999px;
    background: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

.nexa-chat-panel {
    display: flex;
    width: min(23rem, calc(100vw - 2rem));
    max-height: min(34rem, calc(100dvh - 8.5rem));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.75rem;
    background: var(--background-color);
    box-shadow: var(--shadow-soft);
}

.nexa-chat-panel[hidden] {
    display: none;
}

.nexa-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    background: var(--surface-color);
    padding: 0.85rem 1rem;
}

.nexa-avatar {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--background-color);
}

.nexa-icon-btn {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--background-color);
    color: var(--text-color);
    transition: all 300ms ease;
}

.nexa-icon-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.nexa-chat-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    padding: 1rem;
    background: linear-gradient(180deg, var(--surface-color), var(--background-color));
}

.nexa-msg {
    max-width: 86%;
    border-radius: 1.25rem;
    padding: 0.7rem 0.95rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.nexa-msg.is-bot {
    align-self: flex-start;
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

.nexa-msg.is-user {
    align-self: flex-end;
    border-bottom-right-radius: 0.4rem;
    background: var(--accent-color);
    color: #FFFFFF;
}

.nexa-msg.is-error {
    align-self: flex-start;
    border: 1px solid rgba(155, 74, 61, 0.35);
    background: #F7E7E3;
    color: #7A382E;
}

.nexa-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nexa-typing span {
    height: 0.4rem;
    width: 0.4rem;
    border-radius: 999px;
    background: var(--text-muted);
    animation: nexaBlink 1.1s infinite ease-in-out;
}

.nexa-typing span:nth-child(2) {
    animation-delay: 0.18s;
}

.nexa-typing span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes nexaBlink {
    0%,
    80%,
    100% {
        opacity: 0.25;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.nexa-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--glass-border);
    background: var(--background-color);
    padding: 0.75rem 1rem;
}

.nexa-chat-suggestions .filter-chip {
    padding: 0.4rem 0.8rem;
    font-size: 0.72rem;
}

.nexa-chat-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--glass-border);
    background: var(--surface-color);
    padding: 0.75rem 1rem;
}

.nexa-chat-input {
    flex: 1;
    min-height: 2.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-size: 0.875rem;
}

.nexa-chat-input::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

.nexa-send-btn {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--accent-color);
    color: #FFFFFF;
    box-shadow: var(--shadow-button);
    transition: transform 300ms ease, background-color 300ms ease;
}

.nexa-send-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.nexa-send-btn:disabled {
    opacity: 0.6;
    transform: none;
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -3rem auto 0;
    }
}

@media (max-width: 480px) {
    .nexa-chat {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .nexa-chat-toggle {
        height: 4rem;
        width: 4rem;
    }
}

/* --- Turmas e vagas --- */
.cohort-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: rgba(250, 249, 246, 0.72);
    box-shadow: var(--shadow-soft);
    padding: 1.4rem;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.cohort-card:hover {
    border-color: rgba(88, 129, 87, 0.55);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.11);
}

.cohort-status {
    display: inline-flex;
    align-self: flex-start;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cohort-status.is-open {
    background: var(--sage-soft);
    color: var(--sage-dark);
}

.cohort-status.is-upcoming {
    background: rgba(163, 177, 138, 0.24);
    color: var(--sage-dark);
}

.cohort-status.is-full,
.cohort-status.is-closed {
    background: rgba(155, 74, 61, 0.14);
    color: #7A382E;
}

.cohort-badge {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.1rem;
    background: rgba(250, 249, 246, 0.65);
    padding: 0.7rem 0.9rem;
}

.cohort-badge-status {
    color: var(--sage-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cohort-badge-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.cohort-badge.is-full .cohort-badge-status,
.cohort-badge.is-closed .cohort-badge-status {
    color: #7A382E;
}

.btn.is-disabled,
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- Aulas presenciais agrupadas por mês --- */
.month-heading {
    color: var(--sage-dark);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.class-next {
    border-color: rgba(88, 129, 87, 0.6);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.15);
}