/* Launch Popup Styles */
.launch-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.5s;
}

/* When popup is active, use these flex properties */
.launch-popup.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.launch-popup-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s;
}

.launch-popup-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.popup-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.launch-popup-header h2 {
    color: #023E73;
    font-size: 24px;
    margin: 10px 0;
}

.launch-popup-body {
    text-align: center;
    margin-bottom: 20px;
}

.launch-popup-body p {
    color: #555;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.popup-countdown {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.popup-countdown div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    min-width: 60px;
}

.popup-countdown span:first-child {
    font-size: 30px;
    font-weight: 700;
    color: #023E73;
}

.popup-countdown span:last-child {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 400px;
    margin: 0 auto;
}

.popup-form input[type="email"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 5px;
}

.popup-form .button-main {
    background-color: #023E73;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
    padding: 12px;
}

.popup-form .button-main:hover {
    background-color: #22CCF2;
}

.launch-popup-footer {
    text-align: center;
    margin-top: 20px;
}

.popup-remind {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.launch-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.launch-popup-close:hover {
    color: #023E73;
}
.app-preview {
    margin: 15px auto;
    max-width: 180px;
    max-height: 300px;
    overflow: hidden;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}

.app-preview img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    display: block;
}

#waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 auto;
    padding: 0;
}

#waitlist-form input[type="email"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin: 0 0 10px 0; /* Only keep a small 10px bottom margin */
}

#waitlist-form button {
    margin-top: 0;
    padding: 12px 15px;
    border-radius: 50px;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-30px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* Mobile adjustments */
@media only screen and (max-width: 768px) {
    .launch-popup-content {
        margin: 15% auto;
        padding: 20px;
        width: 90%;
    }
    
    .popup-countdown div {
        min-width: 50px;
        margin: 0 5px;
    }
    
    .popup-countdown span:first-child {
        font-size: 24px;
    }

    .app-preview {
        max-width: 150px;
        max-height: 250px;
    }
    
    .app-preview img {
        height: 250px;
    }
}

@media only screen and (max-width: 480px) {
    .launch-popup-content {
        margin: 20% auto;
        padding: 15px;
    }
    
    .launch-popup-header h2 {
        font-size: 20px;
    }
    
    .popup-countdown span:first-child {
        font-size: 20px;
    }

    .app-preview {
        max-width: 120px;
        max-height: 200px;
    }
    
    .app-preview img {
        height: 200px;
    }
}

/* Extra small screens */
@media only screen and (max-width: 360px) {
    .app-preview {
        max-width: 100px;
        max-height: 160px;
    }
    
    .app-preview img {
        height: 160px;
    }
    
    .launch-popup-header h2 {
        font-size: 18px;
    }
}