/* ===============================
   WRAPPER
=============================== */

.gfcp-wrapper {
    margin-top: 20px;
    font-family: inherit;
}

.gfcp-field {
    margin-bottom: 15px;
}

.gfcp-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.gfcp-field input,
.gfcp-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* ===============================
   OFFERS CONTAINER
=============================== */

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

/* ===============================
   OFFER CARD
=============================== */

.gfcp-offer {
    position: relative;
    border-radius: 18px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gfcp-offer:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.gfcp-offer.active {
    border-color: #5b3df5;
    background: #f5f3ff;
}

/* ===============================
   TOP ROW
=============================== */

.offer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===============================
   PRICE
=============================== */

.offer-price {
    direction: ltr;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.old-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 14px;
    margin-right: 8px;
}

.new-price {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

/* ===============================
   TITLE + CHECK WRAPPER
=============================== */

.offer-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* TITLE */

.offer-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.gfcp-offer.active .offer-title {
    color: #5b3df5;
}

/* ===============================
   CHECKMARK (NO ABSOLUTE)
=============================== */

.checkmark {
    position: static;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #5b3df5;
    color: white;
    font-size: 13px;
    display: none;
    align-items: center;
    justify-content: center;
}

.gfcp-offer.active .checkmark {
    display: flex;
}

/* ===============================
   DESCRIPTION
=============================== */

.offer-desc {
    margin-top: 8px;
    font-size: 14px;
    color: #4b5563;
}

/* ===============================
   DISCOUNT BADGE
=============================== */

.badge {
    position: absolute;
    top: -12px;
    left: 14px;
    background: #16a34a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* ===============================
   MOST POPULAR BADGE (BUNDLE 2)
=============================== */

.gfcp-offer[data-qty="2"]::after {
    content: "🔥 الأكثر طلباً";
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(90deg,#ef4444,#dc2626);
    color: white;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

/* ===============================
   SUBMIT BUTTON
=============================== */

.gfcp-submit {
    width: 100%;
    margin-top: 22px;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg,#4f46e5,#7c3aed);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gfcp-submit:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* ===============================
   SUMMARY BOX
=============================== */

.gfcp-summary {
    margin-top: 22px;
    padding: 18px;
    border: 2px solid #5b3df5;
    border-radius: 14px;
    background: #f8f7ff;
}

.gfcp-summary .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.gfcp-summary .total {
    font-weight: bold;
    font-size: 18px;
}

/* FORCE BUTTON STYLE */

button.gfcp-submit,
.gfcp-submit,
.gfcp-form button.gfcp-submit {

    background: linear-gradient(90deg,#4f46e5,#7c3aed) !important;
    color: #ffffff !important;

    font-size: 18px !important;
    font-weight: 700 !important;

    border: none !important;
    border-radius: 14px !important;

    padding: 16px !important;
    width: 100% !important;

    display: block !important;
    text-align: center !important;
}

/* ===============================
   FORM WRAPPER
=============================== */

.gfcp-form {
    background: #ffffff;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.05);
}

/* ===============================
   FIELD CONTAINER
=============================== */

.gfcp-field {
    margin-bottom: 18px;
}

/* LABEL */

.gfcp-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

/* INPUT + SELECT */

.gfcp-field input,
.gfcp-field select {

    width: 100%;
    padding: 14px 16px;

    border-radius: 12px;
    border: 1.5px solid #e5e7eb;

    font-size: 15px;
    background: #f9fafb;

    transition: all 0.25s ease;
}

/* FOCUS EFFECT */

.gfcp-field input:focus,
.gfcp-field select:focus {

    outline: none;
    border-color: #5b3df5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(91,61,245,0.15);
}

/* PLACEHOLDER */

.gfcp-field input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* REQUIRED STAR */

.gfcp-field label::after {
    content: "";
}

.gfcp-field label:has(+ input[required])::after {
    content: " *";
    color: #ef4444;
    font-weight: 700;
}

/* MOBILE IMPROVEMENT */

@media (max-width: 768px) {
    .gfcp-form {
        padding: 18px;
    }
}