/* ============================================================
   GIVEAWAY SECTION
   ============================================================ */

.giveaway {
    position: relative;

    background: var(--parchment);
    color: var(--charcoal);

    padding: 120px 50px 115px;

    overflow: hidden;
}


/* ============================================================
   INNER LAYOUT
   ============================================================ */

.giveaway-inner {
    width: min(1280px, 100%);

    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);

    align-items: center;

    gap: 110px;
}


/* ============================================================
   RESOURCE PREVIEW AREA
   ============================================================ */

.giveaway-preview {
    position: relative;

    width: 100%;
    max-width: 570px;
    height: 610px;

    margin: 0 auto;
}


/* ============================================================
   DECORATIVE PAPER NOTE
   ============================================================ */

.giveaway-note {
    position: absolute;

    top: 5px;
    left: -5px;

    z-index: 7;

    padding: 17px 23px;

    background: #efe1ce;

    font-family: "Shortcake Strawberry Script", cursive;
    font-size: 1.45rem;
    line-height: 1.15;

    color: var(--charcoal);

    transform: rotate(-6deg);

    box-shadow: 3px 5px 0 rgba(67, 65, 64, 0.08);
}


/* ============================================================
   LITTLE PAPER ACCENTS BEHIND RESOURCE
   ============================================================ */

.preview-accent {
    position: absolute;

    width: 250px;
    height: 310px;
}

.preview-accent-one {
    top: 95px;
    left: 45px;

    background: var(--aubergine);

    transform: rotate(-7deg);

    opacity: 0.9;
}

.preview-accent-two {
    top: 105px;
    right: 35px;

    background: var(--dusty-olive);

    transform: rotate(5deg);

    opacity: 0.8;
}


/* ============================================================
   RESOURCE PAGES
   ============================================================ */

.resource-page {
    position: absolute;

    width: 330px;
    aspect-ratio: 8.5 / 11;

    background: #f8f2e9;

    padding: 8px;

    box-shadow: 8px 12px 20px rgba(67, 65, 64, 0.16);

    overflow: hidden;
}

.resource-page img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* BACK PAGE */

.resource-page-back {
    top: 115px;
    left: 35px;

    transform: rotate(-7deg);

    z-index: 2;
}


/* MIDDLE PAGE */

.resource-page-middle {
    top: 90px;
    right: 25px;

    transform: rotate(6deg);

    z-index: 3;
}


/* FRONT PAGE */

.resource-page-front {
    top: 75px;
    left: 50%;

    transform:
        translateX(-50%)
        rotate(-1.5deg);

    z-index: 5;
}


/* ============================================================
   PAPERCLIP
   ============================================================ */

.paperclip {
    position: absolute;

    top: 55px;
    left: 62%;

    z-index: 8;

    width: 22px;
    height: 62px;

    border: 3px solid var(--charcoal);
    border-radius: 12px;

    transform: rotate(10deg);

    opacity: 0.9;
}

.paperclip::after {
    content: "";

    position: absolute;

    top: 7px;
    left: 5px;

    width: 8px;
    height: 42px;

    border: 2px solid var(--charcoal);
    border-radius: 8px;
}


/* ============================================================
   HANDWRITTEN SCRIBBLE
   ============================================================ */

.preview-scribble {
    position: absolute;

    right: -5px;
    bottom: 15px;

    z-index: 8;

    padding: 16px 24px;

    background: #eee0cf;

    font-family: "Shortcake Strawberry Script", cursive;
    font-size: 1.3rem;
    line-height: 1.15;

    color: var(--aubergine);

    transform: rotate(-4deg);

    box-shadow: 4px 5px 0 rgba(67, 65, 64, 0.08);
}

.preview-scribble span {
    display: inline-block;

    margin-left: 8px;

    font-size: 1.7rem;
}


/* ============================================================
   CONTENT
   ============================================================ */

.giveaway-content {
    position: relative;

    max-width: 550px;
}


/* ============================================================
   EYEBROW
   ============================================================ */

.giveaway-eyebrow {
    margin: 0 0 24px;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--copper-ink);

    font-family: "Mono Journal", sans-serif;
    font-size: 1rem;

    letter-spacing: 0.18em;

    color: var(--copper-ink);
}


/* ============================================================
   TITLE
   ============================================================ */

.giveaway-title {
    margin: 0 0 24px;

    font-family: "Shortcake Strawberry", sans-serif;

    font-size: clamp(3.7rem, 5vw, 5.7rem);
    line-height: 0.88;

    color: var(--charcoal);
}

.giveaway-title span {
    display: block;

    margin-top: 8px;

    font-family: "Shortcake Strawberry Script", cursive;
    font-size: 1.05em;
    font-weight: normal;

    color: var(--copper-ink);
}


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

.giveaway-description {
    max-width: 520px;

    margin: 0 0 30px;

    font-family: "Mono Journal", sans-serif;
    font-size: 1.35rem;
    line-height: 1.45;
}


/* ============================================================
   FEATURES
   ============================================================ */

.giveaway-features {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px 25px;

    margin-bottom: 35px;

    font-family: "Mono Journal", sans-serif;
    font-size: 1.05rem;
}

.giveaway-feature {
    display: flex;

    align-items: center;

    gap: 10px;
}

.giveaway-feature span {
    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--dusty-olive);
    color: var(--parchment);

    font-size: 0.85rem;
}


/* ============================================================
   EMAIL FORM
   ============================================================ */

.giveaway-form {
    width: 100%;
}

.giveaway-email-wrap {
    position: relative;

    margin-bottom: 12px;
}

.email-icon {
    position: absolute;

    top: 50%;
    left: 20px;

    transform: translateY(-50%);

    font-size: 1.3rem;

    pointer-events: none;
}

.giveaway-email-wrap input {
    width: 100%;
    height: 66px;

    padding: 0 20px 0 58px;

    border: 2px solid var(--charcoal);
    border-radius: 6px;

    outline: none;

    background: rgba(255, 255, 255, 0.32);

    font-family: "Mono Journal", sans-serif;
    font-size: 1.15rem;

    color: var(--charcoal);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.giveaway-email-wrap input::placeholder {
    color: rgba(67, 65, 64, 0.6);
}

.giveaway-email-wrap input:focus {
    border-color: var(--aubergine);

    box-shadow: 0 0 0 4px rgba(91, 69, 86, 0.1);
}


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

.giveaway-button {
    width: 100%;
    min-height: 66px;

    padding: 15px 22px;

    border: 0;
    border-radius: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;

    background: var(--aubergine);
    color: var(--parchment);

    font-family: "Mono Journal", sans-serif;
    font-size: 1.15rem;

    letter-spacing: 0.08em;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.giveaway-button:hover {
    transform: translateY(-3px);
    opacity: 0.94;
}

.giveaway-arrow {
    font-size: 1.7rem;
    line-height: 1;
}


/* ============================================================
   DISCLAIMER
   ============================================================ */

.giveaway-disclaimer {
    max-width: 500px;

    margin: 16px 0 0;

    font-family: "Mono Journal", sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;

    opacity: 0.78;
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1050px) {

    .giveaway {
        padding-left: 35px;
        padding-right: 35px;
    }

    .giveaway-inner {
        grid-template-columns: 1fr 1fr;

        gap: 55px;
    }

    .giveaway-preview {
        transform: scale(0.88);
        transform-origin: center;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 800px) {

    .giveaway {
        padding: 85px 25px 90px;
    }

    .giveaway-inner {
        display: flex;
        flex-direction: column;

        gap: 45px;
    }

    .giveaway-preview {
        width: min(100%, 520px);
        height: 520px;

        transform: none;
    }

    .resource-page {
        width: 280px;
    }

    .resource-page-back {
        left: 7%;
    }

    .resource-page-middle {
        right: 7%;
    }

    .giveaway-content {
        width: min(100%, 560px);
    }

    .giveaway-title {
        font-size: clamp(3.4rem, 14vw, 5rem);
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 500px) {

    .giveaway {
        padding-left: 20px;
        padding-right: 20px;
    }

    .giveaway-preview {
        height: 430px;
    }

    .resource-page {
        width: 225px;
    }

    .resource-page-front {
        top: 70px;
    }

    .resource-page-middle {
        top: 90px;
        right: 0;
    }

    .resource-page-back {
        top: 105px;
        left: 0;
    }

    .giveaway-note {
        left: 0;

        font-size: 1.1rem;

        padding: 13px 17px;
    }

    .paperclip {
        top: 53px;
        left: 66%;

        transform: scale(0.8) rotate(10deg);
    }

    .preview-scribble {
        right: 0;
        bottom: 0;

        font-size: 1rem;

        padding: 12px 16px;
    }

    .giveaway-features {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .giveaway-description {
        font-size: 1.15rem;
    }

    .giveaway-email-wrap input,
    .giveaway-button {
        min-height: 60px;
    }
}