:root {
    --bg: #f3f5fa;
    --card: #ffffff;
    --line: #dde5f0;
    --primary: #a22121;
    --primary-dark: #8b1717;
    --text: #202938;
    --muted: #8c97ab;
    --price: #690b0a;
    --green: #2bb673;
    --green-soft: rgba(43, 182, 115, .15);
    --yellow: #f6d24a;
    --yellow-text: #2e2500;
    --shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

* {
    font-family: 'Tajawal', Arial, sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    background: var(--bg);
    margin: 0;
    color: var(--text);
    padding: 0;
}

.page-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.countdown-container {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #540404, #a61a1a);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    box-shadow: 0 10px 24px rgba(139, 23, 23, .22);
    gap: 12px;
}

.countdown-text-wrap {
    min-width: 0;
    flex: 1;
    color: #fff;
    text-align: right;
}

.countdown-title {
    margin: 0 0 4px;
    font-size: 19px;
    line-height: 1.2;
    color: #fff;
}

.countdown-sub {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .88);
    line-height: 1.2;
}

.countdown-timer {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    min-width: 130px;
    text-align: center;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, .08);
}

.order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, #f7db63, #f1c93d);
    color: var(--yellow-text);
    min-width: 148px;
    padding: 13px 18px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(246, 210, 74, .32);
    white-space: nowrap;
    transition: .25s ease;
}

.order-btn:hover {
    color: var(--yellow-text);
    text-decoration: none;
    transform: translateY(-1px);
}

.hero-banner {
    width: 100%;
    display: block;
}

.main-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-top: 18px;
    margin-bottom: 20px;
}

.group {
    margin-bottom: 16px;
}

.form-label-ui {
    display: block;
    margin-bottom: 6px;
    margin-right: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
    text-align: right;
}

input[type=text],
input[type=tel],
textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border: 1px solid #d2dbe7;
    border-radius: 16px;
    outline: none;
    background: #f9fafc;
    color: #1f2937;
    transition: .2s ease;
    direction: rtl;
    text-align: right;
}

select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 14px;
    border: 1px solid #d2dbe7;
    border-radius: 16px;
    outline: none;
    background: #f9fafc;
    color: #1f2937;
    transition: .2s ease;
    direction: rtl;
    text-align: right;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #7f8a9d 50%),
        linear-gradient(135deg, #7f8a9d 50%, transparent 50%);
    background-position:
        16px calc(50% - 3px),
        22px calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-left: 40px;
}

select:focus {
    border-color: #cc6f6f;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(162, 33, 33, .08);
}

input::placeholder,
textarea::placeholder {
    color: #9aa4b6;
    font-size: 14px;
    text-align: right;
}

input:focus,
textarea:focus {
    border-color: #cc6f6f;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(162, 33, 33, .08);
}

textarea {
    min-height: 110px;
    resize: none;
}

input[type=text]:focus,
input[type=tel]:focus,
select:focus,
textarea:focus {
    border-color: #cc6f6f;
    box-shadow: 0 0 0 4px rgba(162, 33, 33, .08);
}

.btn {
    padding: 18px 22px;
    font-size: 24px;
    background: linear-gradient(135deg, #28a745, #1f8a39);
    color: #fff;
    border: 0;
    border-radius: 18px;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 10px 22px rgba(31, 138, 57, .22);
}

.btn:hover {
    background: linear-gradient(135deg, #23913c, #1c7c33);
    color: #fff;
    transform: translateY(-1px);
}

.offers {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.offer-card {
    position: relative;
    display: block;
    border-radius: 24px;
    cursor: pointer;
}

.offer-card input {
    display: none;
}

.offer-card .card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid #dbe4ee;
    border-radius: 24px;
    transition: .25s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
    padding: 0;
}

.offer-card.active .card,
.offer-card input:checked+.card {
    border-color: #770946;
    box-shadow: 0 0 0 4px var(--green-soft);
    background: #fefce5;
}

.offer-card .top {
    background: linear-gradient(135deg, #4b0000, #c62424);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.offer-title {
    font-size: 18px;
}

.badge-discount {
    background: #b93b3b;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

.offer-card .body {
    padding: 18px 16px;
    display: grid;
    grid-template-columns: 110px 1fr 140px;
    align-items: center;
    gap: 14px;
}

.offer-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-card .body img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e3eaf3;
    padding: 8px;
}

.offer-middle {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.desc {
    display: inline-block;
    width: max-content;
    font-size: 15px;
    color: #ff0000;
    padding: 8px 14px;
    border: 1px solid #ff0000;
    border-radius: 5px;
    font-weight: 600;
    white-space: nowrap;
}

.offer-text {
    font-size: 16px;
    color: #7f8a9d;
    line-height: 1.8;
    min-width: 0;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.old {
    font-size: 16px;
    color: #9aa4b6;
    text-decoration: line-through;
    font-weight: 700;
    text-decoration-color: darkred;
}

.price {
    font-size: 28px;
    font-weight: 600;
    color: var(--price);
    line-height: 1;

}




.selected-badge {
    display: none;
    position: absolute;
    bottom: 8px;
    background: #038e4b;
    color: #fff;
    padding: 8px 12px;
    border-radius: 300px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(43, 182, 115, .25);
    z-index: 3;
}

.badge-1st {
    position: absolute;
    bottom: 8px;
    background: #ffca00;
    color: #6b0000;
    padding: 5px 30px;
    border-radius: 300px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(43, 182, 115, .25);
    z-index: 3;
}

.offer-card.active .badge-1st {
    display: none;
}

.offer-card.active .selected-badge {
    display: block;
}

.muted {
    color: #6c757d;
    font-size: 18px;
    margin-top: 10px;
    text-align: center;
    background: #fff;
    padding: 14px;
    border-radius: 16px;
    border: 1px dashed #d8dee9;
}

.footer-image {
    width: 100%;
    display: block;
}

@media (max-width: 768px) {


    .countdown-title {
        font-size: 16px;
    }

    .countdown-sub {
        font-size: 11px;
    }

    .countdown-timer {
        min-width: 92px;
        padding: 8px 10px;
        font-size: 18px;
    }

    .order-btn {
        min-width: auto;
        padding: 10px 14px;
        border-radius: 14px;
        font-size: 15px;
    }

    .main-card {
        padding: 12px;
        border-radius: 18px;
    }

    .form-label-ui {
        font-size: 15px;
    }

    input[type=text],
    input[type=tel],
    select,
    textarea {
        font-size: 15px;
        padding: 13px 12px;
        border-radius: 14px;
    }

    textarea {
        min-height: 100px;
        padding: 22px 18px;
    }

    .btn {
        font-size: 20px;
        padding: 16px;
        border-radius: 16px;
    }

    .offer-card .card {
        border-radius: 20px;
    }

    .offer-card .top {
        padding: 5px 14px;
        font-size: 15px;
    }

    .offer-title {
        font-size: 20px;
        margin-right: 20px;
    }

    .badge-discount {
        font-size: 11px;
        padding: 5px 9px;
    }

    .offer-card .body {
        padding: 14px 12px;
        grid-template-columns: 90px 1fr 150px;
        gap: 10px;
    }

    .offer-card .body img {
        width: 74px;
        height: 74px;
        border-radius: 14px;
    }

    .offer-text {
        font-size: 12px;
        font-weight: 900;
        line-height: 1.5;
    }

    .desc {
        font-size: 13px;
        padding: 6px 9px;
    }

    .price-container {
        min-width: 80px;
        margin-bottom: auto;
    }

    .old {
        font-size: 17px;
    }

    .price {
        font-size: 27px;
    }

    .selected-badge {
        bottom: 8px;
        font-size: 12px;
        padding: 6px 9px;
    }

    .muted {
        font-size: 15px;
    }
}



.thanks-box {
    background: #fff;
    width: 100%;
    max-width: 600px;
    padding: 40px 25px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.thanks-box img {
    width: 100%;
}

.thanks-title {
    font-size: 38px;
    font-weight: 800;
    color: #1e7e34;
    margin-bottom: 20px;
}

.thanks-text {
    font-size: 24px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #333;
}

.order-number {
    background: #f1f8f4;
    border: 2px dashed #28a745;
    padding: 18px;
    border-radius: 15px;
    font-size: 28px;
    font-weight: 700;
    color: #155724;
    margin-bottom: 30px;
}

.whatsapp-btn {
    display: block;
    width: 100%;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-size: 26px;
    font-weight: 700;
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 25px;
    transition: .2s;
}

.whatsapp-btn:hover {
    background: #1ebe5d;
}

.note {
    font-size: 20px;
    color: #666;
}

@media(max-width:480px) {
    .thanks-title {
        font-size: 32px;
    }

    .thanks-text {
        font-size: 22px;
    }

    .order-number {
        font-size: 24px;
    }

    .whatsapp-btn {
        font-size: 22px;
    }
}


.offer-banner-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
    direction: rtl;
}

.offer-banner {
    --red1: #b70303;
    --red2: #7f1010;
    --red3: #540303;

    position: relative;
    width: min(100%, 760px);
    color: #fff;
    text-align: center;
    padding: 26px 95px 34px;
    background: linear-gradient(to bottom, var(--red1) 0%, var(--red2) 45%, var(--red3) 100%);
    border-radius: 0 0 14px 14px;
    box-shadow:
        inset 0 8px 18px rgba(255, 255, 255, .28),
        inset 0 -8px 14px rgba(0, 0, 0, .14),
        0 8px 20px rgba(0, 0, 0, .12);
    overflow: visible;
}

/* اللمعة اللي فوق */
.offer-banner::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 22px;
    right: 22px;
    height: 26px;
    border-radius: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* الجزء اللي نازل لتحت */
.offer-banner::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 180px solid transparent;
    border-right: 180px solid transparent;
    border-top: 28px solid #b93b3b;
    filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .08));
}



.offer-banner .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.offer-banner .side-arrows {
    width: 90px;
    min-width: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.offer-banner .content {
    flex: 1;
}

.offer-banner .title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
}

.offer-banner .subtitle {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
}

/* الأسهم */
.arrow-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    animation: bounceArrows 1.3s infinite ease-in-out;
}

.arrow-stack span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 6px solid #fff;
    border-bottom: 6px solid #fff;
    transform: rotate(45deg);
    opacity: .95;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .15));
}

@keyframes bounceArrows {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

.offer-banner.pulse {
    animation: bannerPulse .7s ease;
}

@keyframes bannerPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.015);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .offer-banner {
        padding: 22px 20px 30px;
    }

    .offer-banner::after {
        border-left: 110px solid transparent;
        border-right: 110px solid transparent;
        border-top: 22px solid #b93b3b;
        ;
        bottom: -22px;
    }

    .offer-banner .inner {
        gap: 10px;
    }

    .offer-banner .side-arrows {
        width: 55px;
        min-width: 55px;
    }

    .offer-banner .title {
        font-size: 21px;
    }

    .offer-banner .subtitle {
        font-size: 15px;
    }

    .arrow-stack span {
        width: 18px;
        height: 18px;
        border-right: 5px solid #fff;
        border-bottom: 5px solid #fff;
    }
}