/* Order Popup Modal Styles */
.order-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-popup.active {
    display: flex;
}

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

.order-popup-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease-out;
}

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

.order-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 1.8rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.order-popup-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

.order-popup-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.order-popup-header h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 8px;
}

.order-popup-header p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.order-popup-form {
    padding: 30px 40px;
}

/* Order Summary */
.order-summary {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.order-summary-item span {
    color: #6b7280;
    font-size: 0.95rem;
}

.order-summary-item strong {
    color: #1f2937;
    font-weight: 600;
}

.order-summary-item .price-highlight {
    color: #22c55e;
    font-size: 1.3rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #22c55e;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 20px;
}

.payment-methods > label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.payment-options {
    display: flex;
    gap: 15px;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #22c55e;
}

.payment-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #22c55e;
}

.payment-option span {
    font-size: 0.95rem;
    color: #1f2937;
}

/* Consent Checkbox */
.form-group.consent {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #22c55e;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.checkbox-label a {
    color: #22c55e;
    text-decoration: underline;
}

/* Submit Button */
.btn-submit-order {
    width: 100%;
    margin-bottom: 15px;
    font-size: 1.1rem;
    padding: 16px;
}

.popup-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .order-popup-content {
        border-radius: 15px;
        max-height: 95vh;
    }
    
    .order-popup-header {
        padding: 30px 25px 15px;
    }
    
    .order-popup-header h2 {
        font-size: 1.5rem;
    }
    
    .order-popup-form {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .payment-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-summary {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .order-popup {
        padding: 10px;
    }
    
    .order-popup-header {
        padding: 25px 20px 12px;
    }
    
    .order-popup-form {
        padding: 20px;
    }
    
    .order-popup-close {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
        top: 15px;
        right: 15px;
    }
}
