/* Shared styles for home, info pages, rambursare_rca - do not change visually */

/* Partners carousel */
.partners-carousel {
    width: 100%;
    overflow: hidden;
}
.partners-carousel .swiper-wrapper {
    transition-timing-function: linear !important;
}
.partners-carousel .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
}
.partners-carousel .swiper-slide-active {
    transform: none !important;
    opacity: 1 !important;
}
.partners-carousel .swiper-slide img {
    border: none !important;
    outline: none;
    display: block;
    height: 28px;
    width: auto;
    object-fit: contain;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Testimonials carousel */
.testimonials-carousel {
    width: 100%;
    overflow: hidden;
}
.testimonials-carousel .swiper-wrapper {
    display: flex;
    align-items: stretch;
}
.testimonials-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}
.testimonials-carousel .testimonial-card {
    width: 100%;
    max-width: 100%;
    height: 100%;
}
.testimonials-carousel .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 12px;
    height: 12px;
}
.testimonials-carousel .swiper-pagination-bullet-active {
    background-color: #7bffd2;
    opacity: 1;
}

/* Articles carousel */
.articles-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.articles-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: auto;
}
.articles-carousel-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 24px auto 0 auto !important;
    text-align: center !important;
    padding: 0 !important;
}
.articles-carousel .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.articles-carousel-pagination .swiper-pagination-bullet {
    margin: 0 4px !important;
    position: relative !important;
}
.articles-carousel .swiper-pagination-bullet {
    background-color: rgba(3, 49, 32, 0.3);
    opacity: 1;
    width: 12px;
    height: 12px;
}
.articles-carousel .swiper-pagination-bullet-active {
    background-color: #218d68;
    opacity: 1;
}

/* Other service card hover */
.other-service-card:hover img {
    filter: brightness(1.3);
    transition: filter 0.3s ease;
}

/* Glowing circles */
.glowing-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(123, 255, 210, 0.4) 0%,
        rgba(123, 255, 210, 0.1) 50%,
        transparent 70%
    );
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}
.glowing-circle-top {
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
}
.glowing-circle-bottom-right {
    bottom: -100px;
    right: -100px;
}
.glowing-circle-top-left {
    top: 20%;
    left: -50px;
}
.glowing-circle-lower-right {
    bottom: 20%;
    right: -50px;
}
@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}
.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* FAQ accordion */
.faq-item {
    overflow: hidden;
}
.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease-out;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
}
.faq-question {
    user-select: none;
}
.faq-question:hover {
    opacity: 0.9;
}
.faq-item.active .faq-question {
    border-radius: 0.5rem 0.5rem 0 0;
}
.faq-item:not(.active) .faq-question {
    border-radius: 0.5rem;
}
.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}
.faq-arrow {
    transition: transform 0.3s ease;
}

/* Flatpickr datepicker */
.flatpickr-calendar {
    border: 1px solid rgba(3, 49, 32, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(3, 49, 32, 0.12);
    font-family: "Outfit", sans-serif;
}
.flatpickr-months .flatpickr-month {
    background: #043120;
    color: #ffffff;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #ffffff;
    fill: #ffffff;
}
.flatpickr-weekdays {
    background: #f7faf9;
}
.flatpickr-weekday {
    color: rgba(4, 49, 32, 0.7);
    font-weight: 600;
}
.flatpickr-day {
    border-radius: 10px;
    color: #043120;
}
.flatpickr-day.today {
    border-color: rgba(33, 141, 104, 0.6);
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #218d68;
    border-color: #218d68;
    color: #ffffff;
}
.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange {
    background: rgba(33, 141, 104, 0.12);
    border-color: transparent;
    color: #043120;
}
.flatpickr-day:hover {
    background: rgba(33, 141, 104, 0.12);
    border-color: rgba(33, 141, 104, 0.2);
}
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
    color: #043120;
}

/* Modal animations */
.modal-root {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.modal-root .modal-overlay {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.modal-root .modal-panel {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.modal-root.is-open {
    opacity: 1;
}
.modal-root.is-open .modal-overlay {
    opacity: 1;
}
.modal-root.is-open .modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}
