/* Teach with RCA floating button + modal */
.rca-fab--teach {
    width: auto;
    min-width: 3.5rem;
    height: auto;
    min-height: 1.5rem;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    animation: rcaFabEnter 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s both;
}

.rca-fab--teach .rca-fab__icon {
    font-size: 1.25rem;
}

.rca-fab--teach .rca-fab__ring {
    opacity: 1;
    animation: rcaFabRingPulse 2.6s ease-out infinite;
}

.rca-fab--teach:hover,
.rca-fab--teach:focus-visible {
    transform: translateY(-4px) scale(1.04);
    box-shadow:
        0 14px 32px rgba(0, 31, 63, 0.45),
        0 6px 14px rgba(0, 0, 0, 0.14);
    outline: none;
}

.rca-fab--teach:active {
    transform: translateY(-1px) scale(0.97);
    transition-duration: 0.12s;
}

#teachWithRcaModal {
    position: fixed;
    inset: 0;
    z-index: 9996;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
}

#teachWithRcaModal.is-open {
    display: flex;
}

#teachWithRcaModal .teach-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 31, 63, 0.78);
    backdrop-filter: blur(4px);
}

#teachWithRcaModal .teach-modal-shell {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    margin: 1rem auto 2rem;
}

#teachWithRcaModal .teach-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    color: #001f3f;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

body.teach-with-rca-open {
    overflow: hidden;
}

body.teach-with-rca-open .rca-floating-actions {
    z-index: 9995;
}

@media (max-width: 640px) {
    .rca-fab--teach .rca-fab__label {
        display: none;
    }

    .rca-fab--teach {
        width: 3.375rem;
        height: 3.375rem;
        padding: 0;
        justify-content: center;
    }
}
