@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

.dfp-survey-wrap,
.dfp-survey-wrap * {
    box-sizing: border-box;
}

.dfp-survey-wrap {
    --green: #087a43;
    --green-dark: #045b31;
    --gold: #c99a45;
    --cream: #fff7ea;
    --cream-2: #fffdf8;
    --text: #14221b;
    --muted: #6b6258;
    --line: rgba(144, 105, 51, .25);
    position: relative;
    font-family: 'Tajawal', Arial, sans-serif;
    color: var(--text);
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    overflow: hidden;
}

.dfp-bg-orb {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(8,122,67,.22), rgba(8,122,67,0) 68%);
    filter: blur(4px);
    pointer-events: none;
    animation: dfpFloatOrb 7s ease-in-out infinite;
}

.dfp-orb-one {
    top: 30px;
    right: -110px;
}

.dfp-orb-two {
    bottom: 60px;
    left: -130px;
    animation-delay: 1.5s;
}

.dfp-survey-card {
    position: relative;
    border: 1px solid rgba(8,122,67,.22);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(8,122,67,.11), transparent 35%),
        radial-gradient(circle at bottom left, rgba(201,154,69,.18), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,234,.95));
    box-shadow: 0 24px 70px rgba(24, 44, 31, .16);
    padding: clamp(22px, 3vw, 42px);
    overflow: hidden;
    isolation: isolate;
    animation: dfpEnter .8s ease both;
}

.dfp-survey-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(8,122,67,.18);
    border-radius: 26px;
    pointer-events: none;
    z-index: -1;
}

.dfp-top {
    display: grid;
    grid-template-columns: minmax(240px, .9fr) 1.25fr;
    align-items: center;
    gap: 34px;
    margin-bottom: 30px;
}

.dfp-brand {
    text-align: center;
    animation: dfpFadeUp .8s ease both .08s;
}

.dfp-logo {
    max-width: 245px;
    max-height: 145px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,.08));
}

.dfp-logo-placeholder {
    width: 250px;
    max-width: 100%;
    min-height: 115px;
    margin: 0 auto 20px;
    border-radius: 24px;
    display: grid;
    place-content: center;
    gap: 6px;
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(8,122,67,.25);
    box-shadow: inset 0 0 0 7px rgba(8,122,67,.04);
}

.dfp-logo-placeholder span {
    font-size: 42px;
    font-weight: 900;
    color: #111;
    line-height: 1;
}

.dfp-logo-placeholder small {
    color: var(--green);
    font-weight: 800;
}

.dfp-ribbon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    padding: 10px 34px;
    border-radius: 999px 22px 999px 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    font-weight: 900;
    font-size: clamp(20px, 2.8vw, 34px);
    box-shadow: 0 12px 28px rgba(8,122,67,.25);
    transform: rotate(-2deg);
}

.dfp-ribbon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    transform: translateX(-120%);
    animation: dfpShine 3.6s ease-in-out infinite;
}

.dfp-headline {
    text-align: center;
    animation: dfpFadeUp .8s ease both .16s;
}

.dfp-kicker {
    display: inline-flex;
    color: var(--green);
    background: rgba(8,122,67,.09);
    border: 1px solid rgba(8,122,67,.18);
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}

.dfp-headline h2 {
    margin: 0;
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--green);
    text-shadow: 0 10px 28px rgba(8,122,67,.15);
}

.dfp-headline p {
    margin: 16px auto 0;
    max-width: 620px;
    color: #202520;
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.75;
    font-weight: 600;
}

.dfp-questions {
    display: grid;
    gap: 14px;
}

.dfp-question-card {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(28, 24, 18, .055);
    animation: dfpFadeUp .7s ease both;
    animation-delay: var(--delay);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.dfp-question-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(8,122,67,.12);
    border-color: rgba(8,122,67,.35);
}

.dfp-question-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dfp-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(8,122,67,.24);
}

.dfp-question-title h3 {
    margin: 0;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.45;
    font-weight: 900;
    color: #171c18;
}

.dfp-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
}

.dfp-options-liked {
    grid-template-columns: repeat(6, minmax(105px, 1fr));
}

.dfp-options-recommend {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
}

.dfp-option {
    position: relative;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(8,122,67,.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,248,237,.82));
    padding: 12px 10px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.dfp-option::before {
    content: "";
    position: absolute;
    inset: auto -20% -60% -20%;
    height: 90%;
    background: radial-gradient(circle, rgba(8,122,67,.16), transparent 62%);
    opacity: 0;
    transition: opacity .25s ease;
}

.dfp-option:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(8,122,67,.35);
    box-shadow: 0 12px 22px rgba(8,122,67,.11);
}

.dfp-option:hover::before {
    opacity: 1;
}

.dfp-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dfp-option-face {
    position: relative;
    font-size: 28px;
    line-height: 1;
    transition: transform .25s ease;
}

.dfp-option-label {
    position: relative;
    color: #1e2822;
    font-size: 15px;
    font-weight: 800;
}

.dfp-checkmark {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--green);
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    transform: scale(.7);
    transition: .22s ease;
}

.dfp-option input:checked ~ .dfp-option-face {
    transform: scale(1.14) rotate(-4deg);
}

.dfp-option:has(input:checked) {
    border-color: rgba(8,122,67,.72);
    background: linear-gradient(180deg, rgba(8,122,67,.12), rgba(255,255,255,.9));
    box-shadow: inset 0 0 0 2px rgba(8,122,67,.15), 0 14px 28px rgba(8,122,67,.14);
}

.dfp-option:has(input:checked) .dfp-checkmark {
    opacity: 1;
    transform: scale(1);
}

.dfp-question-card textarea,
.dfp-field input {
    width: 100%;
    border: 1px solid rgba(8,122,67,.24);
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    color: var(--text);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.dfp-question-card textarea:focus,
.dfp-field input:focus {
    border-color: rgba(8,122,67,.75);
    box-shadow: 0 0 0 4px rgba(8,122,67,.11);
}

.dfp-customer-box {
    margin: 22px 0 18px;
    padding: 20px;
    border: 1px solid rgba(8,122,67,.35);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(8,122,67,.08), rgba(255,255,255,.78));
    animation: dfpFadeUp .7s ease both .2s;
}

.dfp-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--green);
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 16px;
    text-align: center;
    justify-content: center;
}

.dfp-section-title span {
    width: 80px;
    height: 1px;
    background: rgba(8,122,67,.32);
}

.dfp-field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.dfp-field {
    display: grid;
    gap: 7px;
}

.dfp-field span {
    color: #19211b;
    font-weight: 900;
    font-size: 15px;
}

.dfp-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 20px;
    padding: 16px 20px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    font-family: inherit;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(8,122,67,.25);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.dfp-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px rgba(8,122,67,.32);
    filter: saturate(1.08);
}

.dfp-submit-btn span {
    transform: rotate(180deg);
}

.dfp-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 22px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px dashed rgba(8,122,67,.25);
}

.dfp-thanks strong {
    display: block;
    color: var(--green);
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 900;
    margin-bottom: 8px;
}

.dfp-thanks p {
    margin: 0;
    font-size: clamp(16px, 2vw, 21px);
    color: #202620;
    line-height: 1.6;
    font-weight: 600;
}

.dfp-food-img {
    max-width: 270px;
    width: 28vw;
    min-width: 190px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 22px rgba(0,0,0,.16));
    animation: dfpFoodFloat 4.5s ease-in-out infinite;
}

.dfp-success-box {
    text-align: center;
    padding: 45px 20px;
    border-radius: 28px;
    background: rgba(8,122,67,.08);
    border: 1px solid rgba(8,122,67,.20);
    animation: dfpPop .55s ease both;
}

.dfp-success-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    font-size: 42px;
    font-weight: 900;
    box-shadow: 0 20px 42px rgba(8,122,67,.25);
}

.dfp-success-box h3 {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 32px;
    font-weight: 900;
}

.dfp-success-box p {
    margin: 0;
    color: #1d241f;
    font-size: 19px;
    font-weight: 700;
}

@keyframes dfpEnter {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dfpFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dfpFloatOrb {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -18px, 0); }
}

@keyframes dfpFoodFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-8px) rotate(-1.5deg); }
}

@keyframes dfpShine {
    0%, 45% { transform: translateX(-120%); }
    70%, 100% { transform: translateX(120%); }
}

@keyframes dfpPop {
    0% { opacity: 0; transform: scale(.92); }
    70% { transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 860px) {
    .dfp-survey-wrap {
        padding: 12px;
        margin: 15px auto;
    }

    .dfp-top,
    .dfp-bottom,
    .dfp-field-grid {
        grid-template-columns: 1fr;
    }

    .dfp-headline h2 {
        font-size: clamp(40px, 12vw, 58px);
    }

    .dfp-options,
    .dfp-options-liked,
    .dfp-options-recommend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dfp-bottom {
        text-align: center;
    }

    .dfp-food-img {
        margin: 0 auto;
        width: 70vw;
        max-width: 260px;
    }
}

@media (max-width: 520px) {
    .dfp-survey-card {
        border-radius: 24px;
        padding: 18px;
    }

    .dfp-survey-card::before {
        inset: 9px;
        border-radius: 20px;
    }

    .dfp-ribbon {
        min-width: 210px;
        font-size: 22px;
    }

    .dfp-options,
    .dfp-options-liked,
    .dfp-options-recommend {
        grid-template-columns: 1fr;
    }

    .dfp-option {
        min-height: 78px;
        flex-direction: row;
    }

    .dfp-question-title {
        align-items: flex-start;
    }
}
