.ymgf-giveaway-wrap {
    max-width: 720px;
    margin: 40px auto;
    padding: 20px 42px 42px;
}

.ymgf-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    padding: 20px 42px 42px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
    
}

.ymgf-header {
    text-align: center;
    padding: 0 0 10px;
    margin: 0;
}

.ymgf-code-field input[readonly] {
    background: #fff7fb;
    cursor: default;
}

.ymgf-header .ymgf-logo {
    display: block !important;
    width: 130px !important;
    max-width: 130px !important;
    height: auto !important;
    margin: 0 auto 14px !important;

}

.ymgf-giveaway-name {
    margin: 8px 0 4px;
    color: #e5007d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ymgf-cookie {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 15px;
}

.ymgf-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.65;
    margin-bottom: 10px;
}

.ymgf-header h1 {
    margin: 0 0 15px;
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1.1;
}

.ymgf-description {
    max-width: 540px;
    margin: 0 auto 20px;
    font-size: 17px;
    line-height: 1.6;
}

.ymgf-closing {
    display: inline-flex;
    gap: 5px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 14px;
}

.ymgf-entry-form {
    display: grid;
    gap: 20px;
}

.ymgf-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

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

.ymgf-field label {
    font-weight: 600;
}

.ymgf-field input[type="text"],
.ymgf-field input[type="email"],
.ymgf-field input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    line-height: 1.3;
    box-sizing: border-box;
}

.ymgf-field input:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.ymgf-code-field input {
    text-transform: uppercase;
    font-size: 22px !important;
    letter-spacing: 2px;
    font-weight: 700;
    text-align: center;
    padding: 18px 16px !important;
    border: 2px solid #d81b72 !important;
    border-radius: 10px;
}

.ymgf-code-field input::placeholder {
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.45;
}

.ymgf-code-field input:focus {
    border-color: #c01766 !important;
    box-shadow: 0 0 0 4px rgba(216, 27, 114, 0.12);
}

.ymgf-checkbox label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
}

.ymgf-checkbox input {
    margin-top: 4px;
}

.ymgf-submit {
    width: 100%;
    padding: 19px 24px;
    border: 0;
    border-radius: 14px;
    background: #e5007d;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.ymgf-submit:hover {
    background: #cf0070;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(229, 0, 125, 0.22);
}

.ymgf-submit:active {
    transform: translateY(0);
}

.ymgf-message {
    margin: 0 0 28px;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
}

.ymgf-success {
    background: #edf8ed;
    border: 1px solid #9ac99a;
}

.ymgf-success-icon {
    font-size: 45px;
}

.ymgf-success h2 {
    margin: 8px 0;
}

.ymgf-error {
    background: #fff1f1;
    border: 1px solid #e2a1a1;
}

.ymgf-smallprint {
    text-align: center;
    opacity: 0.6;
    font-size: 13px;
    margin: -5px 0 0;
}

.ymgf-no-giveaway {
    text-align: center;
}

/* Standalone giveaway page */
.ymgf-standalone-page {
    margin: 0;
    min-height: 100vh;
    background: #e4abab;
}

.ymgf-public-page {
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.ymgf-standalone-page .ymgf-giveaway-wrap {
    margin-top: 0;
}

/* Successful entry */

.ymgf-success-page {
    max-width: 560px;
    margin: 10px auto 0;
    text-align: center;
    padding: 10px 0 20px;
}

.ymgf-success-icon {
    font-size: 58px;
    line-height: 1;
    margin-bottom: 14px;
}

.ymgf-success-label {
    color: #e5007d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.ymgf-success-page h2 {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.1;
}

.ymgf-success-intro {
    margin: 0 auto 25px;
    max-width: 470px;
    font-size: 17px;
    line-height: 1.6;
}

.ymgf-success-ticket {
    max-width: 390px;
    margin: 25px auto;
    padding: 22px;
    background: #fff7fb;
    border: 2px dashed #e5007d;
    border-radius: 16px;
}

.ymgf-success-ticket span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.65;
}

.ymgf-success-ticket strong {
    display: block;
    color: #e5007d;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 3px;
}

.ymgf-ticket-status {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

.ymgf-success-thanks {
    margin: 25px 0 8px;
    font-size: 17px;
    font-weight: 600;
}

.ymgf-success-contact {
    max-width: 480px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.7;
}

.ymgf-good-luck {
    margin: 25px 0;
    font-size: 22px;
    font-weight: 700;
}

.ymgf-home-button {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 12px;
    background: #e5007d;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.ymgf-home-button:hover {
    background: #cf0070;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(229, 0, 125, 0.20);
}

/* Instant-win confirmation */
.ymgf-instant-win {
    max-width: 580px;
    margin: 10px auto 0;
    padding: 28px;
    border: 5px solid #8b173f;
    border-radius: 20px;
    background: #fff4c7;
    text-align: center;
    box-shadow: 0 12px 30px rgba(139, 23, 63, 0.2);
}

.ymgf-instant-win-icon {
    font-size: 64px;
    line-height: 1;
}

.ymgf-instant-win-label {
    margin-top: 12px;
    color: #8b173f;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
}

.ymgf-instant-win h2 {
    margin: 8px 0;
    color: #5d0f2a;
    font-size: 46px;
}

.ymgf-instant-win-prize {
    margin: 12px 0 22px;
    color: #8b173f;
    font-size: 30px;
    font-weight: 900;
}

.ymgf-staff-instruction,
.ymgf-attendant-instruction {
    margin: 20px 0;
    padding: 18px;
    border-radius: 12px;
    font-size: 17px;
    line-height: 1.5;
}

.ymgf-staff-instruction {
    background: #ffffff;
    border: 2px solid #8b173f;
}

.ymgf-attendant-instruction {
    background: #8b173f;
    color: #ffffff;
}

.ymgf-attendant-instruction > strong:first-child {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 1.5px;
}


/* Mobile */
@media (max-width: 600px) {

    .ymgf-public-page {
        padding: 10px;
    }

    .ymgf-giveaway-wrap {
        margin: 10px auto;
        padding: 0;
    }

    .ymgf-card {
        padding: 20px 18px 28px;
        border-radius: 16px;
    }

    .ymgf-header .ymgf-logo {
        width: 95px !important;
        max-width: 95px !important;
        margin-bottom: 10px !important;
    }

    .ymgf-header h1 {
        font-size: 34px;
    }

    .ymgf-description {
        font-size: 16px;
    }

    .ymgf-name-grid {
        grid-template-columns: 1fr;
    }

    .ymgf-entry-form {
        gap: 18px;
    }

    .ymgf-field input[type="text"],
    .ymgf-field input[type="email"],
    .ymgf-field input[type="tel"] {
        padding: 13px 14px;
        font-size: 16px;
    }

    .ymgf-code-field input {
        font-size: 20px !important;
        letter-spacing: 1.5px;
        padding: 16px 14px !important;
    }

    .ymgf-success-page h2 {
    font-size: 34px;
}

.ymgf-success-icon {
    font-size: 50px;
}

.ymgf-success-ticket {
    padding: 18px 14px;
}

.ymgf-success-ticket strong {
    font-size: 23px;
    letter-spacing: 2px;
}

    .ymgf-submit {
        padding: 17px 20px;
        font-size: 18px;
    }

    .ymgf-closing {
        font-size: 13px;
        padding: 8px 12px;
    }

    .ymgf-instant-win {
        padding: 22px 14px;
    }

    .ymgf-instant-win h2 {
        font-size: 36px;
    }

    .ymgf-instant-win-prize {
        font-size: 25px;
    }
}
