/* Preorder CTA styles - based on newsletter CTA styling */
.preorder-cta-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.preorder-cta-form:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(193, 0, 0, 0.7), transparent);
}

.preorder-cta-button {
    background: linear-gradient(135deg, #c10000 0%, #ff4d4d 100%);
    color: white;
    font-weight: 700;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(193, 0, 0, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.preorder-cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.preorder-cta-button:hover {
    background: linear-gradient(135deg, #a50000 0%, #e63e3e 100%);
    box-shadow: 0 6px 20px rgba(193, 0, 0, 0.4);
    transform: translateY(-2px);
}

.preorder-cta-button:hover:before {
    left: 100%;
}

/* Benefits preorder CTA */
.benefits-preorder-cta {
    text-align: center;
    margin: 25px auto 40px;
    padding: 30px;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.benefits-preorder-cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #c10000, #ff4d4d, #c10000);
}

.benefits-preorder-cta h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.benefits-preorder-cta h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 30%;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c10000, transparent);
}

.benefits-preorder-cta p {
    margin-bottom: 25px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero preorder specific styles */
.hero-preorder-cta {
    margin-top: 35px;
    position: relative;
}

/* Add pulsing effect to hero preorder */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(193, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(193, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(193, 0, 0, 0);
    }
}

.hero-preorder-cta .preorder-cta-button {
    animation: pulse 2s infinite;
}

/* Sticky preorder bar */
#sticky-preorder-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.95) 0%, rgba(34, 34, 34, 0.95) 100%);
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4), 0 -1px 0 rgba(193, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    backdrop-filter: blur(8px);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideUp 1s ease 1s forwards;
}

#sticky-preorder-bar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(193, 0, 0, 0.7), transparent);
}

#sticky-preorder-bar .preorder-label {
    font-weight: 600;
    margin-right: 15px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(193, 0, 0, 0.3);
}

#sticky-preorder-bar .preorder-cta-button {
    margin: 0 10px;
    padding: 10px 25px;
}

#sticky-preorder-bar .close-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    margin-left: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px; /* Increased for better mobile touch target */
    height: 44px; /* Increased for better mobile touch target */
    min-width: 44px; /* Ensure minimum touch target size */
    min-height: 44px; /* Ensure minimum touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0; /* Prevent shrinking */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
    touch-action: manipulation; /* Improve touch responsiveness */
}

#sticky-preorder-bar .close-button:hover,
#sticky-preorder-bar .close-button:focus,
#sticky-preorder-bar .close-button:active {
    color: #fff;
    background-color: rgba(193, 0, 0, 0.3);
    transform: rotate(90deg);
    outline: none;
}

.discount-tag {
    display: inline-block;
    background: #ff4d4d;
    color: white;
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 10px;
    transform: rotate(-3deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.limited-spots {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
}

.limited-spots i {
    color: #ff4d4d;
    margin-right: 5px;
}

/* Responsive styles */
@media (max-width: 768px) {
    #sticky-preorder-bar {
        flex-direction: column;
        padding: 15px 10px;
    }
    
    #sticky-preorder-bar .preorder-label {
        margin-bottom: 12px;
        margin-right: 0;
    }
    
    .benefits-preorder-cta {
        margin: 20px 15px 30px;
        padding: 20px 15px;
    }
    
    .preorder-cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}
