/* ==========================================================================
   RENIVO MICROINTERACTIONS — all interaction types
   ========================================================================== */

/* — Press / lift primitives — */
.renivo-interactive {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s var(--ease-premium, cubic-bezier(0.16, 1, 0.3, 1)),
                border-color 0.2s ease,
                background 0.2s ease;
    will-change: transform;
}

.renivo-interactive:hover:not(:disabled):not(.disabled) {
    transform: translateY(-2px);
}

.renivo-interactive:active:not(:disabled):not(.disabled) {
    transform: scale(0.97) translateY(0);
}

/* — Buttons — */
.btn-primary,
.btn-secondary,
.btn-text-skip,
.link-btn,
.vipps-swipe-action-btn,
.auth-tab,
.calendar-nav-btn,
.rating-star-btn,
.time-slot,
.calendar-day.available,
.mobile-menu-btn,
.back-to-top,
.footer-link-btn,
.cookie-banner button {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease,
                background 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
}

.btn-primary:active:not(:disabled),
.btn-secondary:active:not(:disabled),
.auth-tab:active,
.calendar-nav-btn:active,
.back-to-top:active {
    transform: scale(0.96);
}

.btn-text-skip:active,
.link-btn:active {
    transform: scale(0.98);
    opacity: 0.85;
}

/* — Form fields — */
.renivo-interactive-field input,
.renivo-interactive-field select,
.renivo-interactive-field textarea,
.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    transition: border-color 0.22s ease, box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s ease;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus,
.renivo-interactive-field input:focus,
.renivo-interactive-field select:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(255, 95, 162, 0.14);
}

.input-wrapper:focus-within label {
    color: var(--accent-primary-hover);
}

.input-wrapper.is-focused label {
    color: var(--accent-primary-hover);
    font-weight: 700;
}

/* — Links & nav — */
#desktop-nav-links a,
.mobile-nav a,
.breadcrumb-list a,
.footer-column a,
.audience-card,
.highlight-card,
.package-card,
.addon-item,
.service-package-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.2s ease,
                box-shadow 0.25s ease,
                border-color 0.2s ease;
}

#desktop-nav-links a:active,
.mobile-nav a:active,
.breadcrumb-list a:active {
    transform: scale(0.97);
}

/* — Calendar & time slots — */
.calendar-day.available:hover,
.time-slot:hover:not(.disabled):not(:disabled) {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(255, 95, 162, 0.18);
}

.calendar-day.selected,
.time-slot.selected {
    animation: renivoSelectPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes renivoSelectPop {
    0% { transform: scale(0.92); }
    60% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* — Rating stars — */
.rating-star-btn:hover {
    transform: scale(1.15) rotate(-6deg);
    color: #F59E0B;
}

.rating-star-btn.filled,
.rating-star-btn:active {
    transform: scale(1.1);
    color: #F59E0B;
}

/* — FAQ accordion — */
.faq-item summary {
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary {
    background: var(--pink-base);
}

.faq-item summary:active {
    transform: scale(0.99);
}

/* — Toast entrance — */
.renivo-toast-in,
.toast-message {
    animation: renivoToastIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes renivoToastIn {
    0% { opacity: 0; transform: translateY(12px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* — Slider thumb — */
.realtime-slider {
    transition: filter 0.2s ease;
}

.realtime-slider:active {
    filter: brightness(1.05);
}

.realtime-slider::-webkit-slider-thumb {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.realtime-slider:active::-webkit-slider-thumb {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(255, 95, 162, 0.2);
}

/* — Checkbox / cookie opts — */
.cookie-opt input {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-opt input:active {
    transform: scale(1.12);
}

/* — Drawer / modal — */
.mobile-drawer-panel {
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.onboarding-card {
    animation: renivoSheetUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes renivoSheetUp {
    0% { opacity: 0; transform: translateY(24px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* — Ripple on click (JS adds .renivo-ripple-active) — */
.renivo-ripple-host {
    position: relative;
    overflow: hidden;
}

.renivo-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 95, 162, 0.28);
    transform: scale(0);
    animation: renivoRipple 0.55s ease-out forwards;
    pointer-events: none;
}

@keyframes renivoRipple {
    to { transform: scale(2.8); opacity: 0; }
}

/* — Bounce (motion.js) — */
.renivo-bounce {
    animation: renivoBounce 0.45s var(--ease-premium, cubic-bezier(0.16, 1, 0.3, 1));
}

/* — Reduced motion — */
@media (prefers-reduced-motion: reduce) {
    .renivo-interactive,
    .btn-primary, .btn-secondary,
    .calendar-day, .time-slot,
    .input-wrapper input, .input-wrapper select {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }

    .renivo-ripple { display: none; }
}
