/* ═══════════════════════════════════════════════════════
   Alpha Reviews Pro – Main Stylesheet v2.0
   RTL (Hebrew) layout
═══════════════════════════════════════════════════════ */

/* ── Global box-sizing reset for all plugin elements ── */
.arp-wrapper *,
.arp-wrapper *::before,
.arp-wrapper *::after {
    box-sizing: border-box;
}

/* ── Variables ── */
:root {
    --arp-primary:      #0c3b5d;
    --arp-primary-lt:   #1a5580;
    --arp-gold:         #ffb400;
    --arp-gold-empty:   #d9d9d9;
    --arp-card-bg:      #ffffff;
    --arp-text:         #222222;
    --arp-text-muted:   #666666;
    --arp-radius:       14px;
    --arp-shadow:       0 6px 28px rgba(0,0,0,0.10);
    --arp-shadow-hover: 0 12px 40px rgba(0,0,0,0.18);
}

/* ── Wrapper ── */
.arp-wrapper {
    direction: rtl;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--arp-text);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0 60px;
    /* NO overflow:hidden here — that was cutting the form */
}

/* ═══════════════════════════════════════════════════════
   HERO BANNER
═══════════════════════════════════════════════════════ */
.arp-wrapper .arp-hero {
    background: linear-gradient(135deg, #0c3b5d 0%, #1e6fa8 100%);
    border-radius: var(--arp-radius);
    padding: 56px 40px 52px;
    text-align: center;
    margin-bottom: 44px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.arp-wrapper .arp-hero::before {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 240px; height: 240px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}

.arp-wrapper .arp-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -40px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.arp-wrapper .arp-hero .arp-hero-inner {
    position: relative;
    z-index: 2;
}

/* ── Hero badge ── */
.arp-wrapper .arp-hero .arp-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border-radius: 50px;
    padding: 7px 22px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    /* Force white text – overrides any theme h/p color */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ── Hero title ── */
.arp-wrapper .arp-hero .arp-hero-inner .arp-hero-title,
.arp-wrapper .arp-hero .arp-hero-title,
.arp-hero-title {
    font-size: 42px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 0 16px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

/* ── Hero subtitle ── */
.arp-wrapper .arp-hero .arp-hero-inner .arp-hero-sub,
.arp-wrapper .arp-hero .arp-hero-sub,
.arp-hero-sub {
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 0.92 !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

/* ═══════════════════════════════════════════════════════
   MAIN SECTION – CSS Grid for true 50/50 split
═══════════════════════════════════════════════════════ */
.arp-main-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    width: 100%;
}

/* ── Form Side ── */
.arp-form-side {
    min-width: 0;
    background: var(--arp-card-bg);
    border-radius: var(--arp-radius);
    box-shadow: var(--arp-shadow);
    padding: 36px 32px 40px;
}

/* ── Stats Side ── */
.arp-stats-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ═══════════════════════════════════════════════════════
   FORM HEADER
═══════════════════════════════════════════════════════ */
.arp-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    border-bottom: 2px solid #eef2f7;
    padding-bottom: 18px;
}

.arp-form-icon { font-size: 26px; }

.arp-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--arp-primary);
    margin: 0;
}

/* ── Fields ── */
.arp-field { margin-bottom: 18px; }

.arp-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--arp-primary);
    margin-bottom: 7px;
}

.arp-required { color: #e53e3e; }

.arp-form input[type="text"],
.arp-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    direction: rtl;
    background: #fafbfc;
    color: #222;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: block;
}

.arp-form input[type="text"]:focus,
.arp-form textarea:focus {
    outline: none;
    border-color: var(--arp-primary);
    box-shadow: 0 0 0 3px rgba(12,59,93,0.12);
    background: #fff;
}

.arp-form textarea {
    resize: vertical;
    min-height: 110px;
}

/* ── Star Rating ── */
.arp-star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    justify-content: flex-end;
}

.arp-star-rating input[type="radio"] { display: none; }

.arp-star-rating label {
    font-size: 34px;
    color: var(--arp-gold-empty);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
    user-select: none;
}

.arp-star-rating input:checked ~ label,
.arp-star-rating label:hover,
.arp-star-rating label:hover ~ label {
    color: var(--arp-gold);
    transform: scale(1.12);
}

/* ── Anonymous Toggle ── */
.arp-anonymous-row { margin-bottom: 20px; }

.arp-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--arp-text);
    user-select: none;
}

.arp-toggle-label input[type="checkbox"] { display: none; }

.arp-toggle-slider {
    width: 44px;
    height: 24px;
    background: #cbd5e0;
    border-radius: 12px;
    position: relative;
    transition: background 0.25s;
    flex-shrink: 0;
}

.arp-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px; right: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: right 0.25s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.arp-toggle-label input:checked + .arp-toggle-slider { background: var(--arp-primary); }

.arp-toggle-label input:checked + .arp-toggle-slider::after { right: calc(100% - 21px); }

.arp-toggle-text { font-weight: 500; }

/* ── Submit Button ── */
.arp-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #0c3b5d 0%, #1a5580 100%);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 15px 24px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(12,59,93,0.3);
}

.arp-submit-btn:hover {
    background: linear-gradient(135deg, #1a5580 0%, #0c3b5d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(12,59,93,0.4);
}

.arp-btn-arrow { font-size: 20px; }

/* ── Message Box ── */
.arp-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.arp-message.success {
    background: #e6f4ea;
    color: #276749 !important;
    -webkit-text-fill-color: #276749 !important;
    border: 1px solid #9ae6b4;
}

.arp-message.error {
    background: #fff5f5;
    color: #c53030 !important;
    -webkit-text-fill-color: #c53030 !important;
    border: 1px solid #feb2b2;
}

/* ═══════════════════════════════════════════════════════
   STATS BOX
═══════════════════════════════════════════════════════ */
.arp-stats-box {
    background: linear-gradient(135deg, #0c3b5d 0%, #1a5580 100%);
    border-radius: var(--arp-radius);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    box-shadow: 0 8px 28px rgba(12,59,93,0.3);
}

.arp-stat-item { text-align: center; flex: 1; }

.arp-stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.arp-stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.85) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.85) !important;
    margin-top: 6px;
    font-weight: 500;
}

.arp-stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.arp-avg-stars {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 3px;
}

/* ═══════════════════════════════════════════════════════
   STARS (shared)
═══════════════════════════════════════════════════════ */
.arp-star { font-size: 20px; line-height: 1; }
.arp-star.filled { color: var(--arp-gold) !important; -webkit-text-fill-color: var(--arp-gold) !important; }
.arp-star.half   { color: var(--arp-gold) !important; -webkit-text-fill-color: var(--arp-gold) !important; opacity: 0.6; }
.arp-star.empty  { color: var(--arp-gold-empty) !important; -webkit-text-fill-color: var(--arp-gold-empty) !important; }

/* ═══════════════════════════════════════════════════════
   CAROUSEL
═══════════════════════════════════════════════════════ */
.arp-carousel-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--arp-radius);
    width: 100%;
}

.arp-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Cards ── */
.arp-card {
    min-width: 100%;
    width: 100%;
    background: var(--arp-card-bg);
    border-radius: var(--arp-radius);
    padding: 28px;
    box-shadow: var(--arp-shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
}

.arp-card-stars { display: flex; gap: 4px; }

.arp-card .arp-star { font-size: 20px; }

.arp-card-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--arp-text);
    font-style: italic;
    margin: 0;
    flex: 1;
}

.arp-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}

.arp-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c3b5d 0%, #1a5580 100%);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(12,59,93,0.25);
}

.arp-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* ── Name & Role fonts ── */
.arp-card-name {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--arp-primary) !important;
    -webkit-text-fill-color: var(--arp-primary) !important;
    display: block;
    line-height: 1.2;
    margin: 0;
}

.arp-card-role {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--arp-text-muted) !important;
    -webkit-text-fill-color: var(--arp-text-muted) !important;
    display: block;
    margin: 0;
}

/* ── Carousel Nav ── */
.arp-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    padding: 4px 0;
}

.arp-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--arp-primary);
    background: #fff;
    color: var(--arp-primary) !important;
    -webkit-text-fill-color: var(--arp-primary) !important;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.arp-nav-btn:hover {
    background: var(--arp-primary);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    transform: scale(1.1);
}

.arp-dots { display: flex; gap: 7px; align-items: center; }

.arp-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
    padding: 0;
    display: block;
}

.arp-dot.active {
    background: var(--arp-primary);
    transform: scale(1.3);
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .arp-main-section {
        grid-template-columns: 1fr;
    }

    .arp-form-side,
    .arp-stats-side {
        width: 100%;
    }

    .arp-wrapper .arp-hero .arp-hero-inner .arp-hero-title,
    .arp-wrapper .arp-hero .arp-hero-title {
        font-size: 26px !important;
    }

    .arp-wrapper .arp-hero .arp-hero-sub {
        font-size: 16px !important;
    }

    .arp-stats-box { padding: 20px; }
    .arp-stat-number { font-size: 36px !important; }

    .arp-form-side { padding: 24px 20px 28px; }
    .arp-wrapper .arp-hero { padding: 36px 20px 32px; }
}

@media (max-width: 480px) {
    .arp-wrapper .arp-hero .arp-hero-title { font-size: 22px !important; }
    .arp-stat-number { font-size: 30px !important; }

    .arp-stats-box {
        flex-direction: column;
        gap: 16px;
    }

    .arp-stat-divider {
        width: 80px;
        height: 1px;
    }
}
