/* Order Popup Styles */
.order-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order-popup.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.popup-container {
    position: relative;
    width: 500px;
    max-width: 90vw;
    max-height: 90vh;
    background: rgba(9, 16, 26, 0.95);
    border: 1px solid rgba(31, 165, 253, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup-header {
    padding: 25px;
    border-bottom: 1px solid rgba(31, 165, 253, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(31, 165, 253, 0.1), rgba(13, 202, 240, 0.05));
}

.popup-header h3 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
    background: linear-gradient(90deg, #ffffff, #1fa5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.popup-close {
    background: none;
    border: none;
    color: #c1d1e9;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(31, 165, 253, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.popup-content {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.popup-content p {
    color: #c1d1e9;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popup-form-group {
    position: relative;
}

.popup-form-group input,
.popup-form-group textarea {
    width: 100%;
    padding: 15px 18px;
    background: rgba(31, 165, 253, 0.05);
    border: 1px solid rgba(31, 165, 253, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.popup-form-group input:focus,
.popup-form-group textarea:focus {
    outline: none;
    border-color: rgba(31, 165, 253, 0.4);
    background: rgba(31, 165, 253, 0.1);
    box-shadow: 0 0 0 3px rgba(31, 165, 253, 0.1);
}

.popup-form-group input::placeholder,
.popup-form-group textarea::placeholder {
    color: #8b9bb4;
}

.popup-btn {
    padding: 15px 30px;
    background: linear-gradient(90deg, #1fa5fd, #0dcaf0);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(31, 165, 253, 0.3);
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 165, 253, 0.4);
}

.popup-btn i {
    transition: transform 0.3s ease;
}

.popup-btn:hover i {
    transform: translateX(3px);
}

.popup-privacy {
    margin-top: 20px;
}

.popup-privacy .privacy-text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

.popup-privacy .privacy-text a {
    color: #1fa5fd;
    text-decoration: underline;
}

.popup-privacy .required-text {
    margin-top: 8px;
    text-align: center;
}

.popup-privacy .required-asterisk {
    color: #ff4757;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Blinking checkbox animation for attention */
.popup-privacy .checkmark {
    animation: blink-attention 1.5s ease-in-out infinite;
}

.popup-privacy .privacy-checkbox:checked + .checkmark {
    animation: none;
}

@keyframes blink-attention {
    0%, 50%, 100% {
        border-color: #8b9bb4;
        box-shadow: none;
        background: transparent;
    }
    25%, 75% {
        border-color: #1fa5fd;
        box-shadow: 0 0 15px rgba(31, 165, 253, 0.8), 0 0 25px rgba(31, 165, 253, 0.6);
        background: rgba(31, 165, 253, 0.1);
    }
}
