/* =========================================================
   PROMOTIONAL BAR
========================================================= */

:root {

    --promo-primary: #6d4aff;
    --promo-primary-dark: #5635dc;
    --promo-accent: #ffbd59;

    --promo-text: #172033;
    --promo-muted: #6f7788;

    --promo-border: rgba(18, 25, 40, 0.09);

    --promo-success: #19a974;
    --promo-danger: #dc3f51;

    --promo-shadow:
        0 18px 50px rgba(22, 27, 45, 0.15);

    --promo-radius: 18px;
}


/* =========================================================
   BAR
========================================================= */

.promotion-bar {

    position: relative;

    width: 100%;

    z-index: 9990;

     background: #ff0074;

    color: #ffffff;

    box-shadow:
        0 5px 22px rgba(0, 0, 0, 0.13);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        max-height 0.35s ease;

    overflow: hidden;
}


.promotion-bar.is-hidden {

    opacity: 0;

    transform:
        translateY(-100%);

    max-height: 0;

    pointer-events: none;
}


.promotion-bar__inner {

    width: min(
        1400px,
        calc(100% - 40px)
    );

    min-height: 70px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding: 10px 0;
}


.promotion-bar__content {

    display: flex;

    align-items: center;

    gap: 15px;

    min-width: 0;
}


.promotion-bar__icon {

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    color: #25185e;

    background:
        linear-gradient(
            135deg,
            #ffd985,
            #ffb94e
        );

    box-shadow:
        0 7px 22px
        rgba(255, 190, 87, 0.28);
}


.promotion-bar__title {

    font-size: 15px;

    font-weight: 800;

    letter-spacing: -0.01em;

    margin-bottom: 3px;
}


.promotion-bar__text {

    font-size: 13px;

    color: rgba(255,255,255,.74);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   ACTIONS
========================================================= */

.promotion-bar__actions {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}


.grab-offer-button {

    border: 0;

    cursor: pointer;

    min-height: 44px;

    padding: 0 19px;

    border-radius: 12px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    font-size: 13px;

    font-weight: 800;

    color: #201650;

    background:
        linear-gradient(
            135deg,
            #ffdf9c,
            #ffb950
        );

    box-shadow:
        0 7px 20px
        rgba(255, 185, 80, .22);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.grab-offer-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 11px 28px
        rgba(255, 185, 80, .32);
}


.grab-offer-button:active {

    transform:
        translateY(0);
}


.promotion-dismiss {

    width: 40px;
    height: 40px;

    border: 0;

    border-radius: 11px;

    display: grid;

    place-items: center;

    cursor: pointer;

    color: rgba(255,255,255,.7);

    background:
        rgba(255,255,255,.08);

    transition:
        background .2s ease,
        color .2s ease;
}


.promotion-dismiss:hover {

    color: #ffffff;

    background:
        rgba(255,255,255,.15);
}


/* =========================================================
   MODAL
========================================================= */

.promotion-modal {

    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


.promotion-modal.is-open {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


.promotion-modal__overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(10, 13, 24, .63);

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);
}


/* =========================================================
   POPUP
========================================================= */

.promotion-popup {

    position: relative;

    z-index: 1;

    width: min(
        520px,
        92vw
    );

    /*
     * Approximately one-third of a typical desktop viewport.
     * It can grow when the form requires additional vertical room.
     */

    max-height: 88vh;

    overflow-y: auto;

    border-radius: 24px;

    background:
        rgba(255,255,255,.98);

    box-shadow:
        0 30px 90px
        rgba(0,0,0,.25);

    transform:
        translateY(20px)
        scale(.97);

    transition:
        transform .3s cubic-bezier(.2,.8,.2,1);
}


.promotion-modal.is-open
.promotion-popup {

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   HEADER
========================================================= */

.promotion-popup__header {

    position: relative;

    padding:
        28px 28px 21px;

    border-bottom:
        1px solid var(--promo-border);

    background:
        linear-gradient(
            135deg,
            rgba(109,74,255,.08),
            rgba(255,190,89,.08)
        );
}


.promotion-popup__eyebrow {

    display: inline-block;

    margin-bottom: 7px;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .13em;

    color:
        var(--promo-primary);
}


.promotion-popup__header h2 {

    margin: 0;

    color:
        var(--promo-text);

    font-size: 25px;

    line-height: 1.15;

    letter-spacing: -.035em;
}


.promotion-popup__header p {

    margin: 7px 42px 0 0;

    color:
        var(--promo-muted);

    font-size: 13px;

    line-height: 1.55;
}


.promotion-popup__close {

    position: absolute;

    top: 20px;

    right: 20px;

    width: 38px;
    height: 38px;

    border: 0;

    border-radius: 11px;

    cursor: pointer;

    display: grid;

    place-items: center;

    color:
        #646c7b;

    background:
        #ffffff;

    box-shadow:
        0 5px 18px
        rgba(20,25,40,.08);

    transition:
        color .2s ease,
        background .2s ease;
}


.promotion-popup__close:hover {

    color:
        var(--promo-danger);

    background:
        #fff3f5;
}


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

.promotion-form-wrapper {

    padding:
        23px 28px 25px;
}


.promotion-field {

    margin-bottom: 14px;
}


.promotion-field label {

    display: flex;

    align-items: center;

    gap: 4px;

    margin-bottom: 6px;

    color:
        #293144;

    font-size: 12px;

    font-weight: 800;
}


.promotion-field label span {

    color:
        var(--promo-danger);
}


.promotion-field label em {

    margin-left: 4px;

    font-style: normal;

    font-weight: 600;

    color:
        #9298a5;

    font-size: 10px;
}


.promotion-input-wrap {

    position: relative;
}


.promotion-input-wrap > i {

    position: absolute;

    left: 14px;

    top: 50%;

    transform:
        translateY(-50%);

    z-index: 1;

    color:
        #9198a8;

    font-size: 13px;

    pointer-events: none;
}


.promotion-input-wrap input,
.promotion-input-wrap select {

    width: 100%;

    height: 45px;

    border: 1px solid #e2e5eb;

    outline: none;

    border-radius: 11px;

    background:
        #ffffff;

    color:
        #252b38;

    font-size: 13px;

    padding:
        0 13px 0 39px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.promotion-input-wrap input::placeholder {

    color:
        #adb2bd;
}


.promotion-input-wrap input:focus,
.promotion-input-wrap select:focus {

    border-color:
        var(--promo-primary);

    box-shadow:
        0 0 0 4px
        rgba(109,74,255,.10);
}


.promotion-input-wrap select {

    appearance: none;

    -webkit-appearance: none;

    cursor: pointer;

    padding-right: 35px;

    background-image:
        linear-gradient(45deg, transparent 50%, #89909d 50%),
        linear-gradient(135deg, #89909d 50%, transparent 50%);

    background-position:
        calc(100% - 17px) 19px,
        calc(100% - 12px) 19px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}


.promotion-input-wrap select:disabled {

    cursor: not-allowed;

    color: #a3a8b3;

    background-color:
        #f6f7f9;
}


.promotion-location-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}


.promotion-error {

    display: block;

    min-height: 0;

    margin-top: 4px;

    color:
        var(--promo-danger);

    font-size: 10px;

    font-weight: 600;
}


.promotion-field.has-error
.promotion-input-wrap input,
.promotion-field.has-error
.promotion-input-wrap select {

    border-color:
        #e25568;

    background:
        #fffafb;
}


.promotion-field.has-error
.promotion-error {

    min-height: 14px;
}


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

.promotion-submit {

    width: 100%;

    height: 48px;

    border: 0;

    border-radius: 12px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    color:
        #ffffff;

    font-size: 13px;

    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--promo-primary),
            var(--promo-primary-dark)
        );

    box-shadow:
        0 10px 24px
        rgba(109,74,255,.22);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}


.promotion-submit:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 13px 29px
        rgba(109,74,255,.30);
}


.promotion-submit:disabled {

    opacity: .65;

    cursor:
        wait;

    transform: none;
}


.submit-loader {

    display: none;
}


.promotion-submit.is-loading
.submit-text {

    display: none;
}


.promotion-submit.is-loading
.submit-loader {

    display: inline-flex;

    align-items: center;

    gap: 8px;
}


.promotion-security-note {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    margin:
        12px 0 0;

    color:
        #969ca8;

    font-size: 10px;

    text-align: center;
}


/* =========================================================
   SUCCESS
========================================================= */

.promotion-success {

    position: relative;

    padding:
        42px 30px 30px;

    text-align: center;
}


.promotion-success__close {

    position: absolute;

    top: 16px;

    right: 16px;

    width: 34px;
    height: 34px;

    border: 0;

    border-radius: 10px;

    cursor: pointer;

    color: #777f8d;

    background: #f4f5f7;
}


.success-animation {

    display: flex;

    justify-content: center;

    margin-bottom: 17px;
}


.success-check {

    width: 68px;
    height: 68px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color:
        #ffffff;

    font-size: 25px;

    background:
        linear-gradient(
            135deg,
            #20bf83,
            #139c69
        );

    box-shadow:
        0 13px 30px
        rgba(25,169,116,.25);

    animation:
        successPop .45s
        cubic-bezier(.2,.8,.2,1);
}


@keyframes successPop {

    0% {

        opacity: 0;

        transform:
            scale(.5);
    }

    70% {

        transform:
            scale(1.1);
    }

    100% {

        opacity: 1;

        transform:
            scale(1);
    }
}


.promotion-success h3 {

    margin: 0;

    color:
        #202637;

    font-size: 22px;

    letter-spacing: -.03em;
}


.promotion-success > p {

    max-width: 390px;

    margin:
        9px auto 17px;

    color:
        #777f8d;

    font-size: 13px;

    line-height: 1.55;
}


.success-reference {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        12px 14px;

    margin-bottom: 18px;

    border:
        1px solid #e7e9ee;

    border-radius: 11px;

    background:
        #fafbfc;

    text-align: left;
}


.success-reference span {

    color:
        #8b92a0;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .05em;
}


.success-reference strong {

    color:
        var(--promo-primary);

    font-size: 13px;
}


/* =========================================================
   TOAST
========================================================= */

.promotion-toast {

    position: fixed;

    right: 22px;

    bottom: 22px;

    z-index: 11000;

    max-width: 390px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        13px 16px;

    border-radius: 13px;

    color: #ffffff;

    background:
        #222735;

    box-shadow:
        0 15px 40px
        rgba(0,0,0,.2);

    font-size: 12px;

    opacity: 0;

    transform:
        translateY(20px);

    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease;
}


.promotion-toast.show {

    opacity: 1;

    transform:
        translateY(0);
}


.promotion-toast.success {

    background:
        #159566;
}


.promotion-toast.error {

    background:
        #c83c4e;
}


.promotion-toast .toast-icon {

    width: 22px;
    height: 22px;

    display: grid;

    place-items: center;

    flex: 0 0 22px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .promotion-bar__inner {

        width:
            calc(100% - 24px);

        min-height:
            64px;

        gap:
            10px;
    }


    .promotion-bar__icon {

        width: 36px;
        height: 36px;

        flex-basis: 36px;
    }


    .promotion-bar__text {

        display: none;
    }


    .promotion-bar__title {

        font-size: 12px;
    }


    .grab-offer-button {

        min-height: 39px;

        padding:
            0 12px;

        font-size:
            11px;
    }


    .promotion-dismiss {

        width: 35px;
        height: 35px;
    }


    .promotion-modal {

        padding: 10px;
    }


    .promotion-popup {

        width:
            100%;

        max-height:
            94vh;

        border-radius:
            20px;
    }


    .promotion-popup__header {

        padding:
            23px 21px 18px;
    }


    .promotion-popup__header h2 {

        font-size:
            21px;
    }


    .promotion-form-wrapper {

        padding:
            20px 21px 22px;
    }


    .promotion-location-grid {

        grid-template-columns:
            1fr;
    }


    .promotion-success {

        padding:
            38px 21px 25px;
    }
}


@media (max-width: 420px) {

    .promotion-bar__inner {

        width:
            calc(100% - 16px);
    }


    .promotion-bar__actions {

        gap:
            6px;
    }


    .grab-offer-button span {

        display:
            none;
    }


    .grab-offer-button {

        width:
            39px;

        padding:
            0;
    }


    .promotion-popup__close {

        top:
            17px;

        right:
            17px;
    }
}