
/* ==================================================
   ROK CORE - FREE INSTALLATION
   File: widgets/free-installation/style.css
   ================================================== */

.rok-fi {
    --fi-navy: #012871;
    --fi-orange: #FF5600;
    --fi-text: #2E2424;
    --fi-green: #08B943;
    --fi-blue: #0866F5;

    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 38px 28px 26px;
    overflow: hidden;
    border-radius: 16px;
    background-color: #FFFFFF;
    background-image:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(222, 237, 255, 0.55) 0,
            rgba(222, 237, 255, 0.55) 13%,
            transparent 13.2%
        ),
        radial-gradient(
            ellipse at 100% 100%,
            rgba(255, 235, 218, 0.4) 0,
            rgba(255, 235, 218, 0.4) 13%,
            transparent 13.2%
        );
    color: var(--fi-text);
    font-family: inherit;
    box-sizing: border-box;
}

.rok-fi *,
.rok-fi *::before,
.rok-fi *::after {
    box-sizing: border-box;
}

/* Eyebrow */
.rok-fi__eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 9px 16px;
    border-radius: 50px;
    background: #EAF2FF;
    color: var(--fi-blue);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 2px;
}

/* Heading */
.rok-fi .rok-fi__heading {
    margin: 0 0 16px;
    color: var(--fi-navy);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    overflow-wrap: anywhere;
}

.rok-fi__heading-before {
    color: var(--fi-navy);
}

.rok-fi .rok-fi__highlight {
    color: var(--fi-orange);
}

/* Description */
.rok-fi .rok-fi__description {
    max-width: 900px;
    margin: 0 0 28px;
    color: var(--fi-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

.rok-fi__description p {
    margin: 0;
    color: inherit;
}

/* Features */
.rok-fi__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.rok-fi .rok-fi__feature {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: var(--fi-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.rok-fi__icon {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFF0E5;
    color: var(--fi-orange);
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.rok-fi__icon i {
    font-size: 20px;
    line-height: 1;
}

.rok-fi__icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.rok-fi__feature:hover .rok-fi__icon {
    background: var(--fi-orange);
    color: #FFFFFF !important;
    transform: scale(1.06);
}

.rok-fi__feature-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

/* Action area */
.rok-fi__action {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 5px;
}

/* WhatsApp button */
.rok-fi .rok-fi__button {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 0;
    min-height: 64px;
    padding: 10px 28px;
    border: 0;
    border-radius: 10px;
    background: var(--fi-green);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(8, 185, 67, 0.18);
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.rok-fi .rok-fi__button:hover {
    background: #069E39;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(8, 185, 67, 0.25);
}

.rok-fi__button:focus-visible {
    outline: 3px solid rgba(8, 185, 67, 0.4);
    outline-offset: 4px;
}

.rok-fi__whatsapp {
    display: block;
    flex: 0 0 33px;
    width: 33px;
    height: 33px;
}

.rok-fi__arrow {
    display: block;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
}

/* WhatsApp side note */
.rok-fi__chat {
    display: flex;
    flex: 0 0 230px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--fi-navy);
    font-size: 19px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.5;
    transform: rotate(-4deg);
}

.rok-fi__chat-arrow {
    color: var(--fi-green);
    font-size: 62px;
    font-weight: 400;
    line-height: 1;
}

.rok-fi__notice {
    padding: 15px 20px;
    border: 1px solid #F0B5A2;
    border-radius: 8px;
    background: #FFF7F3;
    color: #9C351A;
    font-size: 14px;
}

/* Trust line */
.rok-fi .rok-fi__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    color: #69778D;
    font-size: 14px;
    line-height: 1.6;
}

.rok-fi__lock {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    color: #7D8DA4;
}

.rok-fi__lock svg {
    display: block;
    width: 22px;
    height: 22px;
}

/* WhatsApp chat annotation — screenshot-inspired */

.rok-fi .rok-fi__chat {
    position: relative;
    display: flex;
    flex: 0 0 280px;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 100px;
    color: #10294D;
    font-family: inherit;
    font-size: 22px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.45;
    transform: none;
}

.rok-fi__curved-arrow {
    display: block;
	flex: 0 0 100px;
	width: 100px;
	height: 68px;
    overflow: visible;
}

.rok-fi__chat-content {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    padding: 10px 0;
}

.rok-fi__chat-text {
    display: block;
    transform: rotate(-7deg);
    white-space: normal;
}

.rok-fi__chat-rays {
    position: absolute;
    top: -17px;
    right: -3px;
    width: 38px;
    height: 50px;
    overflow: visible;
    animation: rok-fi-rays-pulse 1.8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes rok-fi-rays-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(1.08);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .rok-fi .rok-fi__chat {
        flex-basis: 240px;
        gap: 6px;
        font-size: 17px;
    }

    .rok-fi__curved-arrow {
        flex-basis: 75px;
        width: 75px;
        height: 65px;
    }

    .rok-fi__chat-rays {
        width: 28px;
        height: 38px;
        top: -12px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .rok-fi .rok-fi__chat {
        flex: 0 0 auto;
        justify-content: center;
        gap: 10px;
        width: 100%;
        min-height: 75px;
        font-size: 18px;
    }

    .rok-fi__curved-arrow {
        flex: 0 0 90px;
        width: 90px;
        height: 65px;
    }

    .rok-fi__chat-content {
        flex: 0 1 190px;
    }

    .rok-fi__chat-rays {
        top: -12px;
        right: 0;
        width: 30px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rok-fi__chat-rays {
        animation: none;
    }
}


/* ==================================================
   ENTRANCE ANIMATIONS
   CSS-only; no JavaScript required.
   ================================================== */

@keyframes rok-fi-fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rok-fi-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes rok-fi-highlight-in {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Eyebrow */
.rok-fi__eyebrow {
    animation: rok-fi-fade-up 0.6s ease both;
}

/* Heading */
.rok-fi .rok-fi__heading {
    animation: rok-fi-fade-up 0.8s ease 0.1s both;
}

/* Highlight */
.rok-fi__highlight {
    animation: rok-fi-highlight-in 0.7s ease 0.3s both;
}

/* Description */
.rok-fi__description {
    animation: rok-fi-fade-up 0.7s ease 0.25s both;
}

/* Staggered feature animations */
.rok-fi__feature {
    animation: rok-fi-fade-up 0.55s ease both;
}

.rok-fi__feature:nth-child(1) {
    animation-delay: 0.35s;
}

.rok-fi__feature:nth-child(2) {
    animation-delay: 0.45s;
}

.rok-fi__feature:nth-child(3) {
    animation-delay: 0.55s;
}

.rok-fi__feature:nth-child(4) {
    animation-delay: 0.65s;
}

.rok-fi__feature:nth-child(5) {
    animation-delay: 0.75s;
}

.rok-fi__feature:nth-child(6) {
    animation-delay: 0.85s;
}

/* CTA and side note */
.rok-fi .rok-fi__button {
    animation: rok-fi-fade-up 0.7s ease 0.8s both;
}

.rok-fi__chat {
    animation: rok-fi-fade-in 0.7s ease 1s both;
}

/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1024px) {
    .rok-fi {
        padding: 32px 24px 24px;
    }

    .rok-fi .rok-fi__heading {
        font-size: 40px;
    }

    .rok-fi__features {
        gap: 16px 20px;
    }

    .rok-fi .rok-fi__feature {
        gap: 10px;
    }

    .rok-fi__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .rok-fi__action {
        gap: 12px;
    }

    .rok-fi .rok-fi__button {
        gap: 12px;
        min-height: 70px;
        padding: 16px;
        font-size: 17px;
    }

    .rok-fi__whatsapp {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .rok-fi__chat {
        flex-basis: 165px;
        font-size: 15px;
    }

    .rok-fi__chat-arrow {
        font-size: 40px;
    }
}

/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 767px) {
    .rok-fi {
        padding: 24px 18px 20px;
        border-radius: 12px;
    }

    .rok-fi__eyebrow {
        margin-bottom: 14px;
        padding: 8px 12px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .rok-fi .rok-fi__heading {
        margin-bottom: 14px;
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

    .rok-fi .rok-fi__description {
        margin-bottom: 22px;
        font-size: 16px;
        line-height: 1.65;
    }

    .rok-fi__features {
        grid-template-columns: 1fr;
        gap: 13px;
        margin-bottom: 25px;
    }

    .rok-fi .rok-fi__feature {
        gap: 12px;
        font-size: 16px;
    }

    .rok-fi__icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .rok-fi__icon i {
        font-size: 19px;
    }

    .rok-fi__icon svg {
        width: 20px;
        height: 20px;
    }

    .rok-fi__action {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .rok-fi .rok-fi__button {
        width: 100%;
        min-height: 64px;
        gap: 10px;
        padding: 14px 12px;
        border-radius: 10px;
        font-size: 16px;
    }

    .rok-fi__whatsapp {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .rok-fi__arrow {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .rok-fi__chat {
        flex-basis: auto;
        justify-content: center;
        font-size: 15px;
        transform: none;
    }

    .rok-fi__chat-arrow {
        font-size: 36px;
    }

    .rok-fi .rok-fi__trust {
        gap: 8px;
        margin-top: 18px;
        font-size: 12px;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .rok-fi {
        padding: 20px 14px;
    }

    .rok-fi .rok-fi__heading {
        font-size: 28px;
    }

    .rok-fi .rok-fi__button {
        gap: 8px;
        font-size: 14px;
    }
}

/* Accessibility: reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
    .rok-fi__eyebrow,
    .rok-fi .rok-fi__heading,
    .rok-fi__highlight,
    .rok-fi__description,
    .rok-fi__feature,
    .rok-fi .rok-fi__button,
    .rok-fi__chat {
        animation: none !important;
        transition: none !important;
    }
}
