/* ── REVIEWS MODULE ─────────────────────────────────────────────── */

/* ── CAROUSEL ───────────────────────────────────────────────────── */
.ar-carousel-wrap { position: relative; overflow: hidden; padding: 0 0 3rem; }
.ar-carousel { position: relative; overflow: hidden; }
.ar-track {
    display: flex;
    gap: 2.4rem;
    transition: transform 0.45s ease;
    will-change: transform;
}

/* ── CARD ────────────────────────────────────────────────────────── */
.ar-card {
    flex: 0 0 calc(33.333% - 1.6rem);
    background: #fff;
    border-radius: 10px;
    padding: 2.4rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: 220px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.ar-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
@media (max-width: 1023px) { .ar-card { flex: 0 0 calc(50% - 1.2rem); } }
@media (max-width: 639px)  { .ar-card { flex: 0 0 100%; } }

/* ── STARS ───────────────────────────────────────────────────────── */
.ar-stars { display: flex; gap: .2rem; }
.ar-star { color: var(--red); font-size: 2rem; }
.ar-star--empty { color: #ddd; }

/* ── CONTENT ─────────────────────────────────────────────────────── */
.ar-content { font-size: 1.5rem; color: #444; line-height: 1.7; flex: 1; text-align: left; }

/* ── AUTHOR ──────────────────────────────────────────────────────── */
.ar-author { display: flex; align-items: center; gap: 1.2rem; margin-top: auto; }
.ar-avatar {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ar-name { display: block; font-size: 1.5rem; font-weight: 700; color: var(--blue); }
.ar-country { font-size: 1.3rem; color: #888; }

/* ── NAV BUTTONS ─────────────────────────────────────────────────── */
.ar-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2;
    opacity: .85;
    transition: opacity .2s, background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ar-btn:hover { opacity: 1; background: var(--red); }
.ar-btn--prev { left: .4rem; }
.ar-btn--next { right: .4rem; }

/* ── DOTS ────────────────────────────────────────────────────────── */
.ar-dots { display: flex; justify-content: center; gap: .8rem; margin-top: 1.6rem; }
.ar-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.ar-dot--active { background: var(--red); transform: scale(1.3); }

/* ── FORM ────────────────────────────────────────────────────────── */
.ar-form-wrap {max-width: 640px;margin: 5rem auto;}
.ar-form { display: flex; flex-direction: column; gap: 1.6rem; }
.ar-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 540px) { .ar-form-row { grid-template-columns: 1fr; } }
.ar-form-field { display: flex; flex-direction: column; gap: .5rem; }
.ar-form-field label { font-size: 1.4rem; font-weight: 600; color: var(--blue); }
.ar-form-field input,
.ar-form-field select,
.ar-form-field textarea {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    font-size: 1.5rem;
    font-family: inherit;
    color: var(--blue);
    transition: border-color .2s;
}
.ar-form-field input:focus,
.ar-form-field select:focus,
.ar-form-field textarea:focus { outline: none; border-color: var(--blue); }

/* Rating stars input */
.ar-rating-input {display: flex;flex-direction: row;gap: .3rem;}
.ar-rating-input input { display: none; }
.ar-rating-input label {
    font-size: 2.8rem;
    color: #ddd;
    cursor: pointer;
    transition: color .15s;
    border: none;
    padding: 0;
    font-weight: normal;
}
.ar-rating-input input:checked ~ label,
.ar-rating-input label:hover,
.ar-rating-input label:hover ~ label { color: var(--red); }

.ar-submit {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: background .2s;
}
.ar-submit:hover { background: var(--blue); }

.ar-form-success {
    color: var(--blue);
    background: #e8f4fd;
    border-left: 3px solid var(--blue);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 1.5rem;
}
.ar-form-error {
    color: var(--red);
    background: #fde8e8;
    border-left: 3px solid var(--red);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 1.5rem;
}

/* ── LIGHTBOX ────────────────────────────────────────────────────── */
#ar-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1.6rem;
}
#ar-lightbox.ar-lb-open { display: flex; }
#ar-lightbox-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem 2.4rem 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    animation: ar-lb-in .2s ease;
}
@keyframes ar-lb-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
#ar-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color .15s;
}
#ar-lightbox-close:hover { color: var(--blue); }
.ar-lb-stars { font-size: 2.2rem; color: var(--red); letter-spacing: .1rem; }
.ar-lb-body { font-size: 1.6rem; color: #444; line-height: 1.8; text-align: left; }
.ar-lb-body p { margin-bottom: .8rem; }
.ar-lb-author { margin-top: .4rem; }

/* ── HOME SECTION ────────────────────────────────────────────────── */
.frontpage__reviews { padding: 6rem 0 4rem; }
.frontpage__reviews-header { text-align: center; margin-bottom: 3rem; }
.frontpage__reviews-eyebrow {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: .6rem;
}
.frontpage__reviews-title { font-size: 3rem; color: var(--blue); margin-bottom: 0; }
