/* FAQs Section — Cafe Order Slip Theme */
.faqs-section {
    padding: 50px 20px 80px;
    background: transparent;
    position: relative;
}

/* FAQ pinned stickers */
.faq-sticker {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.faq-sticker img {
    width: 100%;
    display: block;
    filter: drop-shadow(1px 4px 8px rgba(0,0,0,0.28));
}

/* Tape strip */
.faq-sticker::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 18px;
    background: rgba(225, 212, 178, 0.65);
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    z-index: 3;
}

.faq-sticker-1::before { top: 12px; left: 55%; transform: translateX(-50%) rotate(-6deg); }
.faq-sticker-2::before { top: 10px; left: 50%; transform: translateX(-50%) rotate(4deg); }
.faq-sticker-3::before { transform: translateX(-50%) rotate(-2deg); }
.faq-sticker-4::before { transform: translateX(-50%) rotate(5deg); }
.faq-sticker-5::before { transform: translateX(-50%) rotate(-4deg); }
.faq-sticker-6::before { top: -6px; left: 62%; transform: translateX(-50%) rotate(6deg); }

/* Left column */
.faq-sticker-1 {
    width: 130px;
    left: calc(50% - 320px);
    top: 60px;
    transform: rotate(-9deg);
}
.faq-sticker-2 {
    width: 130px;
    left: calc(50% - 385px);
    top: 42%;
    transform: translateY(-50%) rotate(7deg);
}
.faq-sticker-3 {
    width: 150px;
    left: calc(50% - 330px);
    bottom: 60px;
    transform: rotate(-8deg);
}

/* Right column */
.faq-sticker-4 {
    width: 100px;
    right: calc(50% - 320px);
    top: 60px;
    transform: scaleX(-1) rotate(11deg);
}
.faq-sticker-5 {
    width: 120px;
    right: calc(50% - 385px);
    top: 38%;
    transform: translateY(-50%) rotate(-13deg);
}
.faq-sticker-6 {
    width: 150px;
    right: calc(50% - 325px);
    bottom: 55px;
    transform: rotate(10deg);
}

@media (max-width: 960px) {
    .faq-sticker { display: none; }
}

/* Wrapper carries the drop-shadow so it follows the torn clip shape */
.receipt-wrapper {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.16)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.08));
}

/* Thumbtack pin */
.receipt-pin {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 36% 32%, #F0D5A8, #C8912A 55%, #7A5410);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.45), inset 0 1px 3px rgba(255,255,255,0.45);
    z-index: 10;
}

.faqs-content {
    position: relative;
    padding: 0;
    background: #FFFFFF;
    transform: rotate(-0.4deg);
    /* Torn paper edges via clip-path */
    clip-path: polygon(
        0px 18px, 2% 6px, 5% 20px, 8% 8px, 11% 22px, 14% 4px, 17% 16px,
        20% 2px, 23% 18px, 26% 10px, 29% 24px, 32% 6px, 35% 18px, 38% 4px,
        41% 20px, 44% 8px, 47% 22px, 50% 2px, 53% 16px, 56% 26px, 59% 8px,
        62% 20px, 65% 4px, 68% 18px, 71% 24px, 74% 6px, 77% 20px, 80% 2px,
        83% 16px, 86% 24px, 89% 8px, 92% 20px, 95% 4px, 98% 14px, 100% 8px,
        100% calc(100% - 8px),
        98% calc(100% - 18px), 95% calc(100% - 4px), 92% calc(100% - 22px),
        89% calc(100% - 8px), 86% calc(100% - 20px), 83% calc(100% - 2px),
        80% calc(100% - 16px), 77% calc(100% - 24px), 74% calc(100% - 6px),
        71% calc(100% - 18px), 68% calc(100% - 26px), 65% calc(100% - 8px),
        62% calc(100% - 20px), 59% calc(100% - 4px), 56% calc(100% - 18px),
        53% calc(100% - 24px), 50% calc(100% - 6px), 47% calc(100% - 20px),
        44% calc(100% - 10px), 41% calc(100% - 24px), 38% calc(100% - 4px),
        35% calc(100% - 18px), 32% calc(100% - 8px), 29% calc(100% - 22px),
        26% calc(100% - 2px), 23% calc(100% - 16px), 20% calc(100% - 24px),
        17% calc(100% - 8px), 14% calc(100% - 20px), 11% calc(100% - 4px),
        8% calc(100% - 18px), 5% calc(100% - 24px), 2% calc(100% - 8px),
        0px calc(100% - 18px)
    );
}

.faqs-content::before,
.faqs-content::after {
    display: none;
}

/* Receipt header */
.receipt-header {
    padding: 18px 36px 12px;
    text-align: center;
}

.receipt-brand {
    font-family: 'Alex Brush', cursive;
    font-size: 2.4rem;
    color: #3D2B1F;
    line-height: 1.1;
    margin: 0;
}

.receipt-tagline {
    font-family: 'EB Garamond', serif;
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #8B7355;
    margin: 4px 0 10px;
}

.receipt-order {
    font-family: 'EB Garamond', serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #B0A090;
    margin: 0 0 14px;
}

.receipt-rule {
    font-family: 'EB Garamond', serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: rgba(139,115,85,0.4);
    margin: 10px 0;
    user-select: none;
}

.faqs-content h2 {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    color: #4A3728;
    margin: 8px 0;
}

/* Receipt footer */
.receipt-footer {
    padding: 16px 36px 20px;
    text-align: center;
}

.receipt-total {
    font-family: 'EB Garamond', serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #4A3728;
    margin: 10px 0 6px;
    font-weight: 600;
}

.receipt-thanks {
    font-family: 'Alex Brush', cursive;
    font-size: 1.6rem;
    color: #8B7355;
    margin: 4px 0 0;
}

.faq-item {
    background: transparent;
    padding: 16px 36px;
    margin-bottom: 0;
    border-bottom: 1px dashed rgba(139, 115, 85, 0.25);
    position: relative;
}

.faq-item::before,
.faq-item::after {
    display: none;
}

.faq-item:last-of-type {
    border-bottom: none;
    padding-bottom: 40px;
}

.faq-question h3 {
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #3D2B1F;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.faq-question h3::before {
    display: none;
}

.faq-answer p {
    font-family: 'EB Garamond', serif;
    font-size: 1.05rem;
    color: #5C4A3A;
    line-height: 1.7;
    margin-bottom: 8px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.upload-instructions {
    font-weight: 500;
    color: #5C4A3A;
}

.upload-instructions a {
    color: #4A6340;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.upload-instructions a:hover {
    color: #3D2B1F;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 14px 0;
}

.qr-gifts {
    gap: 16px;
}

.qr-gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qr-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #8B7355;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.qr-account {
    font-size: 0.72rem;
    color: #6B5D52;
    font-weight: 400;
    margin: 0 !important;
    letter-spacing: 0.3px;
    line-height: 1.2 !important;
}

.qr-code {
    max-width: 120px;
    width: 100%;
    height: auto;
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 6px;
    padding: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.qr-code:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    animation: subtlePulse 2s ease-in-out infinite;
}

.social-tag {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 14px;
    color: #8B7355;
}

.social-tag a {
    color: #4A6340;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-tag a:hover {
    color: #3D2B1F;
    text-decoration: underline;
}

.faq-closing {
    text-align: center;
    padding: 40px 40px 10px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.closing-flourish {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 15px auto;
    animation: subtlePulse 3s ease-in-out infinite;
    display: block;
    opacity: 0.7;
}

.thanks-text {
    font-family: 'Alex Brush', cursive;
    font-size: 2.8rem;
    color: var(--text-light);
    margin: 20px 0;
    font-weight: 400;
    display: inline-block;
    cursor: default;
    transition: color 0.3s ease;
    white-space: nowrap;
    opacity: 0;
}

.thanks-text.revealed {
    animation: revealText 1.3s ease-in-out forwards;
}

.thanks-text:hover {
    color: #8B7355;
}

.signature {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    margin: 15px 0;
    animation: fadeIn 1.5s ease-out 0.3s backwards;
}

/* Responsive for FAQs */
@media (max-width: 768px) {
    .faqs-section {
        padding: 50px 16px !important;
        background: transparent !important;
    }

    /* Receipt stays consistent — wrapper goes full width */
    .receipt-wrapper {
        max-width: 100% !important;
    }

    .receipt-header,
    .faq-item {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    /* Keep receipt text dark (on cream paper) */
    .faqs-content h2 {
        font-size: 1rem;
        color: #4A3728;
    }

    .faq-question h3 {
        font-size: 0.82rem;
        color: #3D2B1F;
    }

    .faq-answer p {
        font-size: 1rem;
        color: #5C4A3A;
    }

    .upload-instructions { color: #5C4A3A; }

    .upload-instructions a,
    .social-tag a {
        color: #4A6340;
    }

    .qr-code {
        max-width: 110px;
        border-color: rgba(139, 115, 85, 0.3);
    }

    .thanks-text {
        font-size: 2.2rem;
    }

    .faqs-section .thanks-text {
        color: #8B7355;
    }

    .faqs-section .thanks-text:hover {
        color: #A0826D;
    }

    .faqs-section .signature {
        color: rgba(74, 55, 40, 0.75);
    }

    .faqs-section .closing-flourish {
        font-size: 1rem;
        color: rgba(74, 55, 40, 0.6);
    }

    .signature {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .thanks-text {
        font-size: 1.8rem;
    }

    .signature {
        font-size: 0.75rem;
    }

    .closing-flourish {
        font-size: 0.9rem;
    }
}
