/* Basic styling for First Services cards */

.fs-services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.fs-service-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #020617);
    box-shadow: 0 22px 35px rgba(0, 0, 0, 0.4);
    direction: rtl;
    color: #fff;
}

.fs-service-card-inner {
    position: relative;
    height: 100%;
}

.fs-service-image {
    position: relative;
    overflow: hidden;
}

.fs-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fs-service-icon {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.fs-service-content {
    position: absolute;
    inset: 0;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 40%, transparent 100%);
}

.fs-service-card-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}

.fs-service-rating {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fs-stars .fs-star {
    font-size: 14px;
}

.fs-star-full {
    color: #fbbf24;
}
.fs-star-half {
    color: #facc15;
}
.fs-star-empty {
    color: rgba(255, 255, 255, 0.25);
}

.fs-service-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.fs-btn-details {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.fs-btn-details:hover {
    background: rgba(15, 23, 42, 1);
    border-color: #22c55e;
    color: #ffffff;
}

.fs-btn-order {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(34, 197, 94, 0.35);
}

.fs-btn-order:hover {
    background: #16a34a;
    box-shadow: 0 22px 40px rgba(22, 163, 74, 0.45);
}

.fs-btn-arrow {
    font-size: 16px;
    transform: translateX(0);
    transition: transform 0.25s ease;
}
.fs-btn-details:hover .fs-btn-arrow {
    transform: translateX(-3px);
}

.fs-btn-whatsapp {
    font-family: "Font Awesome 5 Brands", "Font Awesome 6 Brands", system-ui, sans-serif;
    font-weight: 900;
}

/* Layout variations (30 styles, تغييرات في حواف وخلفيات بسيطة) */
.fs-service-card.style1 .fs-service-card-inner { border-radius: 24px; }
.fs-service-card.style2 .fs-service-card-inner { border-radius: 24px 24px 40px 24px; }
.fs-service-card.style3 .fs-service-card-inner { border-radius: 40px 24px 24px 24px; }
.fs-service-card.style4 .fs-service-card-inner { border-radius: 30px; }
.fs-service-card.style5 .fs-service-card-inner { border-radius: 18px; }
.fs-service-card.style6 .fs-service-card-inner { border-radius: 18px 28px 18px 28px; }
.fs-service-card.style7 .fs-service-card-inner { border-radius: 26px 26px 10px 26px; }
.fs-service-card.style8 .fs-service-card-inner { border-radius: 10px 26px 26px 26px; }
.fs-service-card.style9 .fs-service-card-inner { border-radius: 36px 18px 36px 18px; }
.fs-service-card.style10 .fs-service-card-inner { border-radius: 18px 36px 18px 36px; }

.fs-service-card.style11 { box-shadow: 0 18px 40px rgba(34, 197, 94, 0.4); }
.fs-service-card.style12 { box-shadow: 0 18px 40px rgba(59, 130, 246, 0.4); }
.fs-service-card.style13 { box-shadow: 0 18px 40px rgba(251, 191, 36, 0.4); }
.fs-service-card.style14 { box-shadow: 0 18px 40px rgba(244, 63, 94, 0.4); }
.fs-service-card.style15 { box-shadow: 0 22px 50px rgba(8, 47, 73, 0.7); }

.fs-service-card.style16 .fs-service-card-inner { background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.5), transparent 55%), linear-gradient(to top, rgba(15,23,42,0.95), rgba(15,23,42,0.5), transparent); }
.fs-service-card.style17 .fs-service-card-inner { background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.5), transparent 55%), linear-gradient(to top, rgba(15,23,42,0.95), rgba(15,23,42,0.5), transparent); }
.fs-service-card.style18 .fs-service-card-inner { background: radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.6), transparent 60%), linear-gradient(to top, rgba(15,23,42,0.95), rgba(15,23,42,0.5), transparent); }
.fs-service-card.style19 .fs-service-card-inner { background: radial-gradient(circle at bottom right, rgba(244, 63, 94, 0.6), transparent 60%), linear-gradient(to top, rgba(15,23,42,0.95), rgba(15,23,42,0.5), transparent); }
.fs-service-card.style20 .fs-service-card-inner { background: linear-gradient(135deg, #0f172a, #111827 40%, #22c55e 120%); }

.fs-service-card.style21 .fs-service-content { padding: 30px; }
.fs-service-card.style22 .fs-service-content { padding: 20px 24px 26px; }
.fs-service-card.style23 .fs-service-content { padding: 26px 30px 30px; }
.fs-service-card.style24 .fs-service-content { padding: 24px 22px 24px; }
.fs-service-card.style25 .fs-service-content { padding: 28px 26px 28px; }

.fs-service-card.style26 .fs-service-buttons .fs-btn-order { border-radius: 16px; }
.fs-service-card.style27 .fs-service-buttons .fs-btn-details { border-radius: 12px; }
.fs-service-card.style28 .fs-service-buttons .fs-btn-order { box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3); }
.fs-service-card.style29 .fs-service-buttons .fs-btn-details { border-color: rgba(59,130,246,0.7); }
.fs-service-card.style30 .fs-service-buttons { flex-direction: row; }

/* Responsive */
@media (max-width: 768px) {
    .fs-service-card {
        width: 100%;
    }
    .fs-service-content {
        position: absolute;
        padding: 18px 16px;
    }
    .fs-service-card-title {
        font-size: 20px;
    }
}


.fs-service-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
}

/* ensure icon container background works nice for images */
.fs-service-icon {
    overflow: hidden;
}


/* حركة انتقالية ناعمة بين الكروت */
.fs-services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* ضمان أن أي تأثير جديد يندمج مع التصميم الحالي */
.fs-service-card {
    will-change: transform, box-shadow;
}


/* ===========================
   نموذج آراء العملاء - تصميم احترافي
   =========================== */

.fs-reviews-form-wrapper {
    position: relative;
    border-radius: 24px;
    background: linear-gradient(135deg, #f9fafb 0%, #eefdf5 40%, #ffffff 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(248, 250, 252, 0.9);
    padding: 24px 24px 20px;
    overflow: hidden;
}

.fs-reviews-form-header {
    margin-bottom: 18px;
}

.fs-reviews-form-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: #022c22;
}

.fs-reviews-form-subtitle {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

.fs-reviews-field {
    margin-bottom: 14px;
}

.fs-reviews-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
}

.fs-reviews-field-inner {
    position: relative;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 0 0 rgba(15, 23, 42, 0);
    transition: all 0.2s ease;
}

.fs-reviews-field-inner input,
.fs-reviews-field-inner textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 15px;
    color: #111827;
}

.fs-reviews-field-inner:focus-within {
    border-color: #22c55e;
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 10px 22px rgba(34, 197, 94, 0.18);
    transform: translateY(-1px);
}

.fs-reviews-field-hint {
    margin: 4px 0 0;
    font-size: 11px;
    color: #6b7280;
}

.fs-reviews-rating-field {
    margin-top: 4px;
}

.fs-reviews-rating-label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #0f172a;
    font-weight: 600;
}

.fs-reviews-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.fs-reviews-stars input {
    display: none;
}

.fs-reviews-stars label {
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.15s ease, text-shadow 0.15s ease;
}

.fs-reviews-stars label span {
    display: inline-block;
    color: #d1d5db;
    text-shadow: none;
}

.fs-reviews-stars input:checked ~ label span,
.fs-reviews-stars label:hover span,
.fs-reviews-stars label:hover ~ label span {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

.fs-reviews-submit.fs-btn {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    cursor: pointer;
    box-shadow:
        0 12px 26px rgba(22, 163, 74, 0.45),
        0 0 0 1px rgba(240, 253, 244, 0.9);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.fs-reviews-submit.fs-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 18px 40px rgba(22, 163, 74, 0.55),
        0 0 0 1px rgba(240, 253, 244, 0.9);
    filter: brightness(1.03);
}

.fs-reviews-submit.fs-btn.fs-loading {
    opacity: 0.75;
    cursor: wait;
}

.fs-reviews-form-message {
    margin-top: 10px;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    display: none;
}

.fs-reviews-form-message.fs-success {
    background: rgba(22, 163, 74, 0.08);
    color: #166534;
    border: 1px solid rgba(22, 163, 74, 0.35);
}

.fs-reviews-form-message.fs-error {
    background: rgba(239, 68, 68, 0.06);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ===========================
   سلايدر آراء العملاء - كروت بيضاء كبيرة + نقاط أسفل
   =========================== */

.fs-reviews-carousel {
    position: relative;
    overflow: hidden;
}

.fs-reviews-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.fs-review-slide {
    flex: 0 0 100%;
    max-width: 100%;
}

.fs-review-cards-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* تكبير الكروت */
.fs-review-card {
    position: relative;
    margin: 0;
    padding: 18px 18px 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.10),
        0 0 0 1px rgba(248, 250, 252, 0.9);
    color: #0f172a;
    overflow: hidden;
}

.fs-review-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.10), transparent 60%);
    opacity: 1;
    pointer-events: none;
}

.fs-review-card-inner {
    position: relative;
    z-index: 1;
}

.fs-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.fs-review-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #bbf7d0, #22c55e);
    box-shadow:
        0 10px 18px rgba(22, 163, 74, 0.45),
        0 0 0 1px rgba(240, 253, 244, 0.9);
    overflow: hidden;
}

.fs-review-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-review-icon-fallback {
    font-size: 18px;
    color: #ffffff;
}

.fs-review-rating .fs-review-stars {
    font-size: 14px;
    color: #fbbf24;
}

.fs-review-message {
    font-size: 13px;
    line-height: 1.7;
    color: #111827;
    margin-bottom: 10px;
}

.fs-review-voice {
    margin-bottom: 8px;
}

.fs-review-voice audio {
    width: 100%;
    border-radius: 999px;
    outline: none;
    background: #f1f5f9;
}

.fs-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed rgba(203, 213, 225, 0.98);
    padding-top: 8px;
    margin-top: 4px;
}

.fs-review-name {
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
}

.fs-review-footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* أيقونة علم السعودية */
.fs-review-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.06),
        0 4px 8px rgba(15, 23, 42, 0.18);
}

/* النقاط أسفل السلايدر */
.fs-reviews-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.fs-reviews-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
    padding: 0;
    cursor: pointer;
    transition: all 0.18s ease;
}

.fs-reviews-dot.is-active {
    width: 18px;
    background: #22c55e;
    border-color: #16a34a;
    box-shadow:
        0 0 0 1px rgba(240, 253, 244, 0.95),
        0 6px 12px rgba(22, 163, 74, 0.50);
}

/* استجابة لشاشات أصغر */
@media (max-width: 992px) {
    .fs-review-cards-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fs-review-cards-row {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .fs-reviews-form-wrapper {
        padding: 18px 16px 16px;
    }
}


/* إزالة الخلفية / الظل الكبير خلف كروت آراء العملاء */
.fs-review-card {
    box-shadow: none !important;
}

.fs-review-card::before {
    display: none !important;
}


/* ===========================
   Tajawal font override for First Services plugin
   =========================== */

.fs-service-card,
.fs-service-card *,
.fs-reviews-form-wrapper,
.fs-reviews-form-wrapper *,
.fs-review-card,
.fs-review-card * {
    font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* إزالة الإطار الأخضر والظل عند التركيز على حقول النموذج */
.fs-reviews-field-inner:focus-within {
    border-color: rgba(209, 213, 219, 0.9);
    box-shadow: none;
    transform: none;
}
