/* Waitlist modal – flip wizard, dideli laukai desktop */

#glWaitlistModal,
#glWaitlistModal .contact-email-modal-box.gl-waitlist-box {
    font-family: "Zilla Slab", Georgia, "Times New Roman", Times, serif;
}

#glWaitlistModal {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    padding: max(10px, env(safe-area-inset-top, 10px)) max(10px, env(safe-area-inset-right, 10px)) max(10px, env(safe-area-inset-bottom, 10px)) max(10px, env(safe-area-inset-left, 10px));
}

#glWaitlistModal .contact-email-modal-box.gl-waitlist-box {
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#glWaitlistModal .contact-email-modal-header {
    flex-shrink: 0;
}

#glWaitlistModal .gl-waitlist-body {
    flex: 1 1 auto;
    min-height: 0;
}

.gl-waitlist-message {
    margin: 0 0 8px;
    line-height: 1.45;
    font-size: 1.02rem;
    color: #e2e8f0;
}

.gl-waitlist-notice-details {
    margin: 0 0 8px;
}

.gl-waitlist-notice-details summary {
    cursor: pointer;
    font-size: 0.92rem;
    color: #94a3b8;
    list-style: none;
    user-select: none;
}

.gl-waitlist-notice-details summary::-webkit-details-marker {
    display: none;
}

.gl-waitlist-notice-details summary::before {
    content: '▸ ';
    color: #fbbf24;
}

.gl-waitlist-notice-details[open] summary::before {
    content: '▾ ';
}

.gl-waitlist-notice {
    margin-top: 8px;
    line-height: 1.45;
    font-size: 0.92rem;
    color: #cbd5e1;
}

.gl-waitlist-notice p {
    margin: 0 0 6px;
}

.gl-waitlist-notice p:last-child {
    margin-bottom: 0;
}

.gl-waitlist-notice strong {
    color: #fbbf24;
    font-weight: 700;
}

.gl-waitlist-recalc {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(249, 115, 22, 0.35);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(15, 23, 42, 0.45));
    text-align: center;
}

.gl-waitlist-recalc__label {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0 0 6px;
    line-height: 1.35;
}

.gl-waitlist-recalc__time {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
    font-family: "Zilla Slab", Georgia, "Times New Roman", Times, serif;
}

.gl-waitlist-recalc__hint {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 6px 0 0;
    line-height: 1.35;
}

/* —— Flip wizard —— */
.gl-wl-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#glWaitlistModal .gl-wl-step[hidden] {
    display: none !important;
}

#glWaitlistModal .contact-email-modal-body .gl-wl-field input:not([type="checkbox"]) {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    font-size: 1.12rem;
    line-height: 1.35;
    min-height: 54px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.65);
    color: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#glWaitlistModal .contact-email-modal-body .gl-wl-field input:not([type="checkbox"]):focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.75);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.gl-wl-field {
    margin-bottom: 14px;
}

.gl-wl-field:last-child {
    margin-bottom: 0;
}

.gl-wl-field label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.gl-wl-field input:not([type="checkbox"]) {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    font-size: 1.12rem;
    line-height: 1.35;
    min-height: 54px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.65);
    color: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gl-wl-field input:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.75);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.gl-wl-field--plan {
    margin-bottom: 24px;
    padding-bottom: 2px;
}

.gl-wl-field--plan label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.gl-wl-plan-summary {
    padding: 12px 14px;
    min-height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.35);
    color: #f2efe8;
}

.gl-wl-plan-summary__line {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}

.gl-wl-plan-summary__price {
    margin: 6px 0 0;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #cbd5e1;
}

.gl-wl-plan-summary__price--promo {
    color: #fcd34d;
    font-weight: 600;
}

.gl-wl-field--plan input {
    padding: 10px 14px;
    min-height: 42px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(249, 115, 22, 0.35);
    opacity: 1 !important;
    cursor: default !important;
    color: #f2efe8;
}

.gl-wl-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.gl-wl-field-row .gl-wl-field {
    margin-bottom: 0;
}

.gl-wl-flip-scene {
    perspective: 1400px;
    width: 100%;
    min-height: 280px;
    margin-top: 22px;
}

.gl-wl-flip-inner {
    width: 100%;
    min-height: 280px;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.gl-wl-flip-panel {
    width: 100%;
    transform: rotateY(0deg);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.gl-wl-step-title {
    margin: 6px 0 8px;
    font-size: 1.28rem;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1.3;
}

.gl-wl-step-hint {
    margin: 0 0 18px;
    font-size: 1.02rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.gl-wl-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gl-wl-type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 18px 16px;
    border-radius: 14px;
    border: 2px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.55);
    color: #f1f5f9;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.gl-wl-type-btn:hover {
    border-color: rgba(249, 115, 22, 0.65);
    background: rgba(249, 115, 22, 0.12);
}

.gl-wl-type-btn:active {
    transform: scale(0.98);
}

.gl-wl-type-btn--company {
    border-color: rgba(56, 189, 248, 0.45);
}

.gl-wl-type-btn--company:hover {
    border-color: rgba(56, 189, 248, 0.75);
    background: rgba(56, 189, 248, 0.1);
}

.gl-wl-company-extra {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.gl-wl-company-extra-ask {
    margin-top: 18px;
}

.gl-wl-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.45;
    color: #e2e8f0;
    user-select: none;
}

.gl-wl-check input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-height: 24px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: #f97316;
    cursor: pointer;
}

.gl-wl-company-extra-title {
    margin: 0 0 12px;
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.gl-wl-inline-msg {
    margin: 8px 0 0;
    font-size: 0.88rem;
    line-height: 1.4;
}

.gl-wl-inline-msg.is-error {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.35), rgba(15, 23, 42, 0.55));
    color: #fecaca;
}

.gl-wl-inline-msg.is-error .gl-wl-msg-title {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #f87171;
    font-size: 0.92rem;
}

.gl-wl-inline-msg.is-error .gl-wl-msg-body {
    display: block;
    color: #fecaca;
}

.gl-wl-field-hint {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.45;
}

.gl-wl-inline-msg.is-ok {
    color: #4ade80;
}

.gl-wl-auto-hint {
    margin: 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.35);
    color: #fbbf24;
    font-size: 1.02rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-family: "Zilla Slab", Georgia, "Times New Roman", Times, serif;
}

.gl-wl-form-error {
    margin: 0;
}

.gl-wl-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.gl-wl-nav-btn {
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.2s, opacity 0.2s;
}

.gl-wl-nav-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.gl-wl-nav-btn--back {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #cbd5e1;
}

.gl-wl-nav-btn--back:hover:not(:disabled) {
    background: rgba(148, 163, 184, 0.12);
}

.gl-wl-nav-btn--next,
.gl-wl-nav-btn--submit {
    margin-left: auto;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.gl-wl-nav-btn--next:hover:not(:disabled),
.gl-wl-nav-btn--submit:hover:not(:disabled) {
    filter: brightness(1.06);
}

.gl-waitlist-extend-panel {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.gl-waitlist-extend-panel summary {
    cursor: pointer;
    font-size: 0.8rem;
    color: #94a3b8;
    list-style: none;
    user-select: none;
}

.gl-waitlist-extend-panel summary::-webkit-details-marker {
    display: none;
}

.gl-waitlist-extend-panel summary::before {
    content: '▸ ';
    color: #fbbf24;
}

.gl-waitlist-extend-panel[open] summary::before {
    content: '▾ ';
}

.gl-waitlist-extend-panel__inner {
    padding-top: 10px;
}

.gl-waitlist-extend-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0 0 8px;
    line-height: 1.4;
}

.gl-waitlist-extend-panel label {
    display: block;
    margin-bottom: 3px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.gl-waitlist-extend-panel input[type="email"] {
    width: 100%;
    margin-bottom: 8px;
    padding: 7px 10px;
    font-size: 0.88rem;
    box-sizing: border-box;
}

.gl-waitlist-extend-btn {
    display: inline-block;
    margin-top: 2px;
    padding: 8px 14px;
    border: 1px solid rgba(249, 115, 22, 0.55);
    border-radius: 8px;
    background: transparent;
    color: #fbbf24;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.gl-waitlist-extend-btn:hover {
    background: rgba(249, 115, 22, 0.15);
}

.gl-waitlist-extend-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.gl-waitlist-extend-msg {
    font-size: 0.82rem;
    margin-top: 8px;
    line-height: 1.35;
}

#glWaitlistSuccess {
    text-align: center;
    padding: 20px 0 8px;
}

#glWaitlistSuccessTitle {
    color: #4ade80;
    font-size: 1.15rem;
    margin: 0;
}

#glWaitlistSuccessExtendBtn,
#glWaitlistExtendSuccessMsg {
    display: none !important;
}

#glWaitlistSuccessMsg {
    color: #ccc;
    margin: 10px 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (min-width: 641px) {
    #glWaitlistModal {
        align-items: center;
        padding: 16px;
    }

    #glWaitlistModal .contact-email-modal-box.gl-waitlist-box {
        max-width: 720px;
        max-height: none;
        overflow: visible;
        border-radius: 20px;
    }

    #glWaitlistModal .contact-email-modal-header {
        padding: 12px 22px;
    }

    #glWaitlistModal .contact-email-modal-title {
        font-size: 1.15rem;
    }

    #glWaitlistModal .gl-waitlist-body {
        padding: 14px 22px 18px;
        overflow: visible;
    }

    .gl-waitlist-top {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 12px;
    }

    .gl-waitlist-intro {
        flex: 1;
        min-width: 0;
    }

    .gl-waitlist-message {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }

    .gl-waitlist-notice-details {
        margin-bottom: 0;
    }

    .gl-waitlist-recalc {
        flex: 0 0 180px;
        margin: 0;
        padding: 10px 12px;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .gl-waitlist-recalc__label {
        font-size: 0.88rem;
    }

    .gl-waitlist-recalc__time {
        font-size: 1.55rem;
    }

    .gl-waitlist-recalc__hint {
        display: none;
    }

    .gl-wl-field input:not([type="checkbox"]),
    #glWaitlistModal .contact-email-modal-body .gl-wl-field input:not([type="checkbox"]) {
        padding: 18px 20px;
        font-size: 1.18rem;
        min-height: 58px;
    }

    .gl-wl-check {
        font-size: 1.05rem;
    }

    .gl-wl-check input[type="checkbox"] {
        width: 26px;
        height: 26px;
        min-height: 26px;
    }

    .gl-wl-step-title {
        font-size: 1.34rem;
    }

    .gl-wl-step-hint {
        font-size: 1.06rem;
    }

    .gl-wl-type-btn {
        min-height: 100px;
        font-size: 1.16rem;
    }

    .gl-wl-flip-scene,
    .gl-wl-flip-inner {
        min-height: 300px;
    }

    .gl-wl-nav-btn {
        padding: 15px 26px;
        font-size: 1.05rem;
    }
}

@media (max-width: 640px) {
    #glWaitlistModal .contact-email-modal-box.gl-waitlist-box {
        max-width: 100%;
        max-height: min(94vh, 94dvh);
        border-radius: 16px;
    }

    #glWaitlistModal .gl-waitlist-body {
        padding: 12px 14px 14px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .gl-wl-type-grid {
        grid-template-columns: 1fr;
    }

    .gl-wl-field-row {
        grid-template-columns: 1fr;
    }

    .gl-wl-nav {
        flex-wrap: wrap;
    }

    .gl-wl-nav-btn--next,
    .gl-wl-nav-btn--submit {
        flex: 1 1 100%;
        margin-left: 0;
    }
}
