/* GKST Popup — Citytrip Alert Subscribe */

.gkst-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gkst-popup[hidden] {
    display: none !important;
}

.gkst-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 18, 0, 0.72);
    backdrop-filter: blur(4px);
    animation: gkst-fade-in 0.25s ease;
}

.gkst-popup__box {
    position: relative;
    background: #FFF8EE;
    border: 2.5px solid #1A1200;
    border-radius: 20px;
    box-shadow: 8px 8px 0 #1A1200;
    padding: 40px 36px 32px;
    max-width: 440px;
    width: 100%;
    animation: gkst-slide-up 0.3s cubic-bezier(.22,.68,0,1.2);
    text-align: center;
}

.gkst-popup__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: 2px solid #1A1200;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #1A1200;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.gkst-popup__close:hover { background: #1A1200; color: #fff; }

.gkst-popup__emoji {
    font-size: 48px;
    margin-bottom: 8px;
    line-height: 1;
    animation: gkst-bounce 2s ease infinite;
}

.gkst-popup__title {
    font-size: 26px;
    font-weight: 900;
    color: #1A1200;
    margin: 0 0 8px;
    line-height: 1.2;
    font-family: 'Fraunces', Georgia, serif;
}

.gkst-popup__sub {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px;
}

.gkst-popup__form {
    text-align: left;
}

.gkst-popup__field {
    margin-bottom: 16px;
}

.gkst-popup__field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1A1200;
    margin-bottom: 6px;
}

.gkst-popup__input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #1A1200;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.gkst-popup__input:focus {
    border-color: #0057FF;
    box-shadow: 0 0 0 3px rgba(0,87,255,0.15);
}

/* Destination autocomplete */
.gkst-popup__dest-wrap {
    position: relative;
}
.gkst-popup__dest-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #1A1200;
    border-radius: 10px;
    list-style: none;
    margin: 0;
    padding: 4px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 4px 4px 0 #1A1200;
}
.gkst-popup__dest-list li {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 7px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gkst-popup__dest-list li:hover,
.gkst-popup__dest-list li.is-active {
    background: #0057FF;
    color: #fff;
}

/* Budget chips */
.gkst-popup__budget-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.gkst-popup__chip {
    padding: 10px 4px;
    border: 2px solid #1A1200;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}
.gkst-popup__chip:hover { background: #f0f0f0; transform: translateY(-1px); }
.gkst-popup__chip.is-selected {
    background: #0057FF;
    color: #fff;
    border-color: #0057FF;
}

/* Submit button */
.gkst-popup__btn {
    width: 100%;
    padding: 16px;
    background: #FF5C3A;
    color: #fff;
    border: 2.5px solid #1A1200;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 4px 4px 0 #1A1200;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    margin-top: 8px;
    letter-spacing: -0.3px;
}
.gkst-popup__btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #1A1200;
    background: #e04a29;
}
.gkst-popup__btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #1A1200;
}

.gkst-popup__msg {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.gkst-popup__msg.js-form-msg--success { background: #d4edda; color: #155724; }
.gkst-popup__msg.js-form-msg--error   { background: #f8d7da; color: #721c24; }

.gkst-popup__fine {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin: 10px 0 0;
}

/* SUCCESS STATE */
.gkst-popup__box.is-success .gkst-popup__form { display: none; }
.gkst-popup__success {
    display: none;
    text-align: center;
    padding: 20px 0;
}
.gkst-popup__box.is-success .gkst-popup__success { display: block; }
.gkst-popup__success__emoji { font-size: 56px; margin-bottom: 16px; }
.gkst-popup__success h3 { font-size: 22px; font-weight: 900; color: #1A1200; margin: 0 0 8px; font-family: 'Fraunces', Georgia, serif; }
.gkst-popup__success p { font-size: 14px; color: #555; }

/* SCROLL TRIGGER BANNER (bottom bar teaser) */
.gkst-banner-teaser {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #0057FF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(.22,.68,0,1.2);
    border-top: 2.5px solid #1A1200;
    cursor: pointer;
}
.gkst-banner-teaser.is-visible {
    transform: translateY(0);
}
.gkst-banner-teaser__text {
    font-size: 15px;
    font-weight: 700;
}
.gkst-banner-teaser__btn {
    background: #FFD84D;
    color: #1A1200;
    border: 2px solid #1A1200;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 900;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.1s;
}
.gkst-banner-teaser__btn:hover { transform: translateY(-2px); }
.gkst-banner-teaser__close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 0 0 0 8px;
    line-height: 1;
}
.gkst-banner-teaser__close:hover { color: #fff; }

/* Animations */
@keyframes gkst-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes gkst-slide-up {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes gkst-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* Mobile */
@media (max-width: 480px) {
    .gkst-popup__box {
        padding: 32px 20px 24px;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: none;
        border-bottom: none;
        box-shadow: 0 -4px 0 #1A1200;
        animation: gkst-slide-up-mobile 0.35s cubic-bezier(.22,.68,0,1.2);
    }
    .gkst-popup__budget-chips { grid-template-columns: repeat(2, 1fr); }
    .gkst-banner-teaser__text { font-size: 13px; }
}

@keyframes gkst-slide-up-mobile {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
