/* Veryplants Testimonial Flow v1.1.0
   Scoped to .vptf-* classes. */

.vptf-hidden { display: none !important; }

/* ---------- Banner ---------- */
.vptf-banner {
    position: relative;
    z-index: 9000;
    background: linear-gradient(90deg, #2d4a3e 0%, #3d6552 100%);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}
.vptf-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.vptf-banner__msg { flex: 1 1 auto; min-width: 240px; }
.vptf-banner__cta {
    background: #f4d35e;
    color: #1a1a1a;
    padding: 6px 14px;
    border: 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
}
.vptf-banner__cta:hover { background: #ffe082; color: #1a1a1a; }
.vptf-banner__close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
}

/* ---------- Popup ---------- */
.vptf-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.vptf-popup-overlay:not(.vptf-hidden) {
    animation: vptf-fadein 0.18s ease-out;
}
@keyframes vptf-fadein { from { opacity: 0; } to { opacity: 1; } }

.vptf-popup {
    position: relative;
    background: #fff;
    color: #1a1a1a;
    max-width: 520px;
    width: 100%;
    border-radius: 12px;
    padding: 28px 26px 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: auto;
}
.vptf-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 26px;
    cursor: pointer;
    color: #777;
    line-height: 1;
}
.vptf-popup__close:hover { color: #1a1a1a; }
.vptf-popup__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #2d4a3e;
}
.vptf-popup__lede {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}
.vptf-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.vptf-popup__success {
    text-align: center;
    padding: 10px 0 4px;
}
.vptf-popup__success h3 {
    color: #2d4a3e;
    margin: 0 0 10px;
}

.vptf-btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 0;
    text-decoration: none;
    transition: background 0.15s;
    font-family: inherit;
}
.vptf-btn--primary { background: #2d4a3e; color: #fff; }
.vptf-btn--primary:hover { background: #1f3429; color: #fff; }
.vptf-btn--primary:disabled { background: #888; cursor: not-allowed; }
.vptf-btn--ghost {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
}
.vptf-btn--ghost:hover { background: #f5f5f5; }

/* ---------- Forms (shared) ---------- */
.vptf-form { font-family: inherit; }
.vptf-form--compact .vptf-form__field { margin-bottom: 12px; }
.vptf-form__field { margin-bottom: 16px; }
.vptf-form__row {
    display: flex;
    gap: 10px;
}
.vptf-form__field--half { flex: 1 1 50%; }
.vptf-form__label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 13px;
    color: #1a1a1a;
}
.vptf-form__input,
.vptf-form__textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    color: #1a1a1a;
}
.vptf-form__textarea { min-height: 90px; resize: vertical; }
.vptf-form__hint { font-size: 12px; color: #777; margin: 4px 0 0; }
.vptf-form__checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.vptf-form__checkbox-row label { font-size: 12px; line-height: 1.4; color: #555; }
.vptf-form__submit {
    background: #2d4a3e;
    color: #fff;
    padding: 14px 24px;
    border: 0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
}
.vptf-form__submit:hover { background: #1f3429; }
.vptf-form__submit:disabled { background: #888; cursor: not-allowed; }
.vptf-form__notice {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 13px;
}
.vptf-form__notice--ok   { background: #e6f4ea; color: #1f4427; border: 1px solid #b6dec1; }
.vptf-form__notice--err  { background: #fbe9e7; color: #8a2a23; border: 1px solid #f1b9b3; }
.vptf-form__notice--info { background: #fff7e0; color: #6b5300; border: 1px solid #f2d77a; }
.vptf-required { color: #c00; }

.vptf-photo-preview {
    max-width: 180px;
    margin-top: 6px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* ---------- Star rating ---------- */
.vptf-stars {
    display: inline-flex;
    gap: 2px;
    line-height: 1;
}
.vptf-star {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    padding: 2px 4px;
    color: #d4d4d4;
    transition: color 0.1s;
}
.vptf-star:focus { outline: 2px solid #2d4a3e; outline-offset: 2px; border-radius: 2px; }
.vptf-star:hover,
.vptf-star--on { color: #f4b400; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .vptf-popup { padding: 22px 16px 16px; }
    .vptf-popup__title { font-size: 18px; }
    .vptf-popup__lede { font-size: 13px; }
    .vptf-banner__inner { padding: 8px 12px; }
    .vptf-form__row { flex-direction: column; gap: 0; }
    .vptf-form__field--half { flex: 1 1 100%; }
    .vptf-star { font-size: 34px; padding: 4px 6px; } /* easier tap target */
}

/* =========================================================================
   PUBLIC TESTIMONIAL DISPLAY (v1.3.0)
   Rendered by [vp_testimonials] shortcode on application/landing pages.
   ========================================================================= */

.vptf-pub {
    margin: 32px 0;
    font-family: inherit;
    color: #1f2a25;
}

.vptf-pub__heading {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #2d4a3e;
    margin: 0 0 20px;
    letter-spacing: 0.2px;
}

.vptf-pub__list {
    display: grid;
    gap: 20px;
}

/* Grid: responsive 1 -> 2 -> 3 cols */
.vptf-pub--grid .vptf-pub__list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Featured: single big horizontal card on desktop */
.vptf-pub--featured .vptf-pub__list {
    grid-template-columns: 1fr;
    max-width: 880px;
    margin: 0 auto;
}

/* Strip: horizontal scroll-snap row, great on mobile */
.vptf-pub--strip .vptf-pub__list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.vptf-pub--strip .vptf-card {
    flex: 0 0 86%;
    max-width: 360px;
    scroll-snap-align: start;
}

/* ---------- Card ---------- */
.vptf-card {
    background: #fff;
    border: 1px solid #e4e7e3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(45, 74, 62, 0.05);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.vptf-card:hover {
    box-shadow: 0 6px 16px rgba(45, 74, 62, 0.10);
    transform: translateY(-2px);
}

.vptf-card__media {
    background: #f3f5f2;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}
.vptf-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vptf-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.vptf-card__quote {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #2c3a33;
    position: relative;
    font-style: normal;
}
.vptf-card__quote::before {
    content: '\201C';
    position: absolute;
    top: -16px;
    left: -6px;
    font-size: 56px;
    line-height: 1;
    color: #2d4a3e;
    opacity: 0.18;
    font-family: Georgia, 'Times New Roman', serif;
}
.vptf-card__quote p { margin: 0 0 8px; }
.vptf-card__quote p:last-child { margin-bottom: 0; }

.vptf-card__attr {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef0ec;
    font-size: 13px;
    color: #4b5852;
}
.vptf-card__business {
    color: #2d4a3e;
    font-weight: 600;
}
.vptf-card__sep { margin: 0 2px; }
.vptf-card__location { color: #6a7670; }

/* ---------- Featured layout: photo left, content right ---------- */
@media (min-width: 760px) {
    .vptf-pub--featured .vptf-card--featured {
        flex-direction: row;
    }
    .vptf-pub--featured .vptf-card__media {
        flex: 0 0 45%;
        aspect-ratio: auto;
        min-height: 320px;
    }
    .vptf-pub--featured .vptf-card__body {
        padding: 28px 32px;
        justify-content: center;
    }
    .vptf-pub--featured .vptf-card__quote {
        font-size: 17px;
        line-height: 1.6;
    }
    .vptf-pub--featured .vptf-card__quote::before {
        font-size: 72px;
        top: -22px;
        left: -10px;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .vptf-pub { margin: 24px 0; }
    .vptf-pub__heading { font-size: 18px; margin-bottom: 16px; }
    .vptf-pub__list { gap: 16px; }
    .vptf-card__body { padding: 16px 18px 18px; }
    .vptf-card__quote { font-size: 14px; }
}

/* =========================================================================
   SLIDER LAYOUT (v1.4.0): one card visible at a time, scroll-snap + dots
   ========================================================================= */
.vptf-pub--slider .vptf-pub__list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.vptf-pub--slider .vptf-pub__list::-webkit-scrollbar { display: none; }

/* 3-up on desktop, 2-up on tablet, 1-up on mobile. */
.vptf-pub--slider .vptf-pub__list { gap: 16px; padding: 0 4px; }

.vptf-pub--slider .vptf-card {
    flex: 0 0 calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e4e7e3;
    box-shadow: 0 1px 3px rgba(45,74,62,0.05);
    flex-direction: column;
}
.vptf-pub--slider .vptf-card:hover { transform: none; box-shadow: 0 4px 14px rgba(45,74,62,0.10); }

.vptf-pub--slider .vptf-card .vptf-card__media {
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
}
.vptf-pub--slider .vptf-card .vptf-card__body {
    padding: 14px 16px 16px;
    justify-content: flex-start;
}
.vptf-pub--slider .vptf-card .vptf-card__quote {
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 960px) {
    .vptf-pub--slider .vptf-card {
        flex: 0 0 calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }
}
@media (max-width: 620px) {
    .vptf-pub--slider .vptf-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.vptf-pub--slider .vptf-pub__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}
.vptf-pub--slider .vptf-pub__nav {
    background: transparent;
    border: 1px solid #d0d4ce;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    color: #2d4a3e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.vptf-pub--slider .vptf-pub__nav:hover { background: #2d4a3e; color: #fff; border-color: #2d4a3e; }
.vptf-pub--slider .vptf-pub__nav:focus-visible { outline: 2px solid #2d4a3e; outline-offset: 2px; }

.vptf-pub--slider .vptf-pub__dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.vptf-pub--slider .vptf-pub__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4d4d4;
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.2s, border-radius 0.2s;
}
.vptf-pub--slider .vptf-pub__dot.is-active { background: #2d4a3e; width: 20px; border-radius: 4px; }
.vptf-pub--slider .vptf-pub__dot:focus-visible { outline: 2px solid #2d4a3e; outline-offset: 2px; }

@media (max-width: 720px) {
    .vptf-pub--slider .vptf-card--slider { flex-direction: column; }
    .vptf-pub--slider .vptf-card--slider .vptf-card__media { flex: 0 0 auto; aspect-ratio: 4 / 3; min-height: 0; }
    .vptf-pub--slider .vptf-card--slider .vptf-card__body { padding: 14px 16px; }
}

/* ---------- Star rating row on each testimonial card (v1.4.0) ---------- */
.vptf-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0 0 10px;
    color: #f4b400;
    line-height: 1;
}
.vptf-card__star {
    display: block;
    color: #e2e2e2;
}
.vptf-card__star--on {
    color: #f4b400;
}
